Subversion Repositories SmartDukaan

Rev

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

Rev 22171 Rev 22335
Line 27... Line 27...
27
	private static final String CONTENT = "CONTENT";
27
	private static final String CONTENT = "CONTENT";
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_FORM_COLLECTION = "RegistrationForm";
33
	private static final String FOFO_FORM_COLLECTION = "RegistrationForm";
33
	private static final int MONGO_PORT = 27017;
34
	private static final int MONGO_PORT = 27017;
34
 
35
 
35
	private MongoClient mongoClient;
36
	private MongoClient mongoClient;
36
	private MongoClient contentMongoClient;
37
	private MongoClient contentMongoClient;
Line 193... Line 194...
193
		}
194
		}
194
		BasicDBObject newDocument = new BasicDBObject();
195
		BasicDBObject newDocument = new BasicDBObject();
195
		newDocument.append("$set", updateFields);
196
		newDocument.append("$set", updateFields);
196
		collection.update(filter, newDocument);
197
		collection.update(filter, newDocument);
197
	}
198
	}
-
 
199
	
-
 
200
	public List<DBObject> getBrandsToDisplay() {
-
 
201
		DB db = mongoClient.getDB(FOFO_DB);
-
 
202
		BasicDBObject filter = new BasicDBObject();
-
 
203
		filter.append("active", true);
-
 
204
		return db.getCollection(FOFO_BRANDS).find(filter).toArray();
-
 
205
	}
198
 
206
 
199
}
207
}