Subversion Repositories SmartDukaan

Rev

Rev 22385 | Rev 22447 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22385 Rev 22446
Line 28... Line 28...
28
	private static final String SITE_CONTENT = "siteContent";
28
	private static final String SITE_CONTENT = "siteContent";
29
	private static final String CATALOG_DB = "Catalog";
29
	private static final String CATALOG_DB = "Catalog";
30
	private static final String MASTER_DATA = "MasterData";
30
	private static final String MASTER_DATA = "MasterData";
31
	private static final String FOFO_DB = "Fofo";
31
	private static final String FOFO_DB = "Fofo";
32
	private static final String FOFO_BRANDS = "brands";
32
	private static final String FOFO_BRANDS = "brands";
-
 
33
	private static final String PROFITMANDI_BANNERS = "banners";
33
	private static final String FOFO_FORM_COLLECTION = "RegistrationForm";
34
	private static final String FOFO_FORM_COLLECTION = "RegistrationForm";
34
	private static final int MONGO_PORT = 27017;
35
	private static final int MONGO_PORT = 27017;
35
 
36
 
36
	private MongoClient mongoClient;
37
	private MongoClient mongoClient;
37
	private MongoClient contentMongoClient;
38
	private MongoClient contentMongoClient;
Line 214... Line 215...
214
		DB db = mongoClient.getDB(FOFO_DB);
215
		DB db = mongoClient.getDB(FOFO_DB);
215
		BasicDBObject filter = new BasicDBObject();
216
		BasicDBObject filter = new BasicDBObject();
216
		filter.append("active", true);
217
		filter.append("active", true);
217
		return db.getCollection(FOFO_BRANDS).find(filter).toArray();
218
		return db.getCollection(FOFO_BRANDS).find(filter).toArray();
218
	}
219
	}
-
 
220
	
-
 
221
	public List<DBObject> getBannersToDisplay(String bannerType) {
-
 
222
		DB db = mongoClient.getDB(CATALOG_DB);
-
 
223
		BasicDBObject filter = new BasicDBObject();
-
 
224
		filter.append("bannerType", bannerType);
-
 
225
		return db.getCollection(PROFITMANDI_BANNERS).find(filter).toArray();
-
 
226
	}
219
 
227
 
220
}
228
}