Subversion Repositories SmartDukaan

Rev

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

Rev 26459 Rev 26480
Line 100... Line 100...
100
		obj.append("_id", id);
100
		obj.append("_id", id);
101
		DBObject result = collection.findOne(obj);
101
		DBObject result = collection.findOne(obj);
102
		if (result == null) {
102
		if (result == null) {
103
			throw new Exception();
103
			throw new Exception();
104
		}
104
		}
105
		return gson.fromJson(new BasicDBObject(result.toMap()).toJson(), ContentPojo.class);
105
		ContentPojo cp = gson.fromJson(new BasicDBObject(result.toMap()).toJson(), ContentPojo.class);
-
 
106
		cp.getDefaultImageUrl().replaceAll("saholic", "smartdukaan");
-
 
107
		return cp;
106
	}
108
	}
107
 
109
 
108
	public List<DBObject> getMongoBrands(int fofoId, String email, int categoryId) {
110
	public List<DBObject> getMongoBrands(int fofoId, String email, int categoryId) {
109
		List<DBObject> brandsDisplay = this.getBrandsToDisplay(categoryId);
111
		List<DBObject> brandsDisplay = this.getBrandsToDisplay(categoryId);
110
		if (PARTNER_BLoCKED_BRANDS.containsKey(fofoId)) {
112
		if (PARTNER_BLoCKED_BRANDS.containsKey(fofoId)) {