Subversion Repositories SmartDukaan

Rev

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

Rev 26181 Rev 26309
Line 283... Line 283...
283
		if (categoryId != 0) {
283
		if (categoryId != 0) {
284
			filter.append("categoryId", categoryId);
284
			filter.append("categoryId", categoryId);
285
		}
285
		}
286
		return db.getCollection(FOFO_BRANDS).find(filter).toArray();
286
		return db.getCollection(FOFO_BRANDS).find(filter).toArray();
287
	}
287
	}
-
 
288
	public List<DBObject> getAllBrandsToDisplay(int categoryId) {
-
 
289
		DB db = mongoClient.getDB(FOFO_DB);
-
 
290
		BasicDBObject filter = new BasicDBObject();
-
 
291
		if (categoryId != 0) {
-
 
292
			filter.append("categoryId", categoryId);
-
 
293
		}
-
 
294
		return db.getCollection(FOFO_BRANDS).find(filter).toArray();
-
 
295
	}
288
 
296
 
289
	public List<DBObject> getBannersByType(String bannerType) {
297
	public List<DBObject> getBannersByType(String bannerType) {
290
		DB db = mongoClient.getDB(CATALOG_DB);
298
		DB db = mongoClient.getDB(CATALOG_DB);
291
		BasicDBObject filter = new BasicDBObject();
299
		BasicDBObject filter = new BasicDBObject();
292
		filter.append("type", bannerType);
300
		filter.append("type", bannerType);