Subversion Repositories SmartDukaan

Rev

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

Rev 5074 Rev 5600
Line 36... Line 36...
36
	private static final String CONTENT_GENERATION_TIME = "CONTENT_GENERATION_TIME";
36
	private static final String CONTENT_GENERATION_TIME = "CONTENT_GENERATION_TIME";
37
	private static final String INCONSISTENT_ENTITIES = "INCONSISTENT_ENTITIES";
37
	private static final String INCONSISTENT_ENTITIES = "INCONSISTENT_ENTITIES";
38
	private static final String HELPDOC_ENTITYIDS = "HELPDOC_ENTITYIDS";
38
	private static final String HELPDOC_ENTITYIDS = "HELPDOC_ENTITYIDS";
39
	private static final String RELATED_ACCESSORIES = "RELATED_ACCESSORIES";
39
	private static final String RELATED_ACCESSORIES = "RELATED_ACCESSORIES";
40
	private static final String COMPARISON_STATS = "COMPARISON_STATS";
40
	private static final String COMPARISON_STATS = "COMPARISON_STATS";
-
 
41
	private static final String SEARCH_STATS = "SEARCH_STATS";
41
	private static final String SYNONYMS = "SYNONYMS";
42
	private static final String SYNONYMS = "SYNONYMS";
42
	private static long helpDocId;
43
	private static long helpDocId;
43
    private static long specialPageId;
44
    private static long specialPageId;
44
 
45
 
45
	/**
46
	/**
Line 169... Line 170...
169
     */
170
     */
170
    @SuppressWarnings("unchecked")
171
    @SuppressWarnings("unchecked")
171
    public static Map<Long, Map<Long, Long>> getComparisonStats() throws Exception {
172
    public static Map<Long, Map<Long, Long>> getComparisonStats() throws Exception {
172
        return (Map<Long, Map<Long, Long>>) StorageManager.getStorageManager().getDataObject(CreationUtils.COMPARISON_STATS);       
173
        return (Map<Long, Map<Long, Long>>) StorageManager.getStorageManager().getDataObject(CreationUtils.COMPARISON_STATS);       
173
    }
174
    }
-
 
175
    
-
 
176
    /**
-
 
177
     * 
-
 
178
     * @param entity
-
 
179
     * @throws Exception
-
 
180
     */
-
 
181
    public static void storeSearchStats(String date, List<String> searchStats) throws Exception {
-
 
182
    	StorageManager.getStorageManager().storeDataObject(CreationUtils.SEARCH_STATS + date, searchStats);      
-
 
183
    }
-
 
184
 
-
 
185
    /**
-
 
186
     * 
-
 
187
     * @param entity
-
 
188
     * @throws Exception
-
 
189
     */
-
 
190
    public static void deleteSearchStats(String date) throws Exception {
-
 
191
    	StorageManager.getStorageManager().deleteDataObject(CreationUtils.SEARCH_STATS + date);      
-
 
192
    }
-
 
193
    
-
 
194
    
-
 
195
    /**
-
 
196
     * 
-
 
197
     * @return
-
 
198
     * @throws Exception
-
 
199
     */
-
 
200
    @SuppressWarnings("unchecked")
-
 
201
    public static List<String> getSearchStats(String date) throws Exception {
-
 
202
    	return (List<String>) StorageManager.getStorageManager().getDataObject(CreationUtils.SEARCH_STATS + date);       
-
 
203
    }
174
 
204
 
175
	/**
205
	/**
176
	 * 
206
	 * 
177
	 * @param featureDefinitionID
207
	 * @param featureDefinitionID
178
	 * @return
208
	 * @return