Subversion Repositories SmartDukaan

Rev

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

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