Subversion Repositories SmartDukaan

Rev

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

Rev 26480 Rev 26481
Line 101... Line 101...
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
		ContentPojo cp = 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");
106
		cp.setDefaultImageUrl(cp.getDefaultImageUrl().replaceAll("saholic", "smartdukaan"));
107
		return cp;
107
		return cp;
108
	}
108
	}
109
 
109
 
110
	public List<DBObject> getMongoBrands(int fofoId, String email, int categoryId) {
110
	public List<DBObject> getMongoBrands(int fofoId, String email, int categoryId) {
111
		List<DBObject> brandsDisplay = this.getBrandsToDisplay(categoryId);
111
		List<DBObject> brandsDisplay = this.getBrandsToDisplay(categoryId);