Subversion Repositories SmartDukaan

Rev

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

Rev 3485 Rev 5074
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 SYNONYMS = "SYNONYMS";
41
	private static long helpDocId;
42
	private static long helpDocId;
42
    private static long specialPageId;
43
    private static long specialPageId;
43
 
44
 
44
	/**
45
	/**
45
	 * 
46
	 * 
Line 118... Line 119...
118
     */
119
     */
119
    public static void storeRelatedAccessories(Map<Long, Map<Long, List<Long>>> relatedAccessories) throws Exception {
120
    public static void storeRelatedAccessories(Map<Long, Map<Long, List<Long>>> relatedAccessories) throws Exception {
120
        StorageManager.getStorageManager().storeDataObject(CreationUtils.RELATED_ACCESSORIES, relatedAccessories);      
121
        StorageManager.getStorageManager().storeDataObject(CreationUtils.RELATED_ACCESSORIES, relatedAccessories);      
121
    }
122
    }
122
    
123
    
-
 
124
    /**
-
 
125
     * 
-
 
126
     * @param Synonym that contains map of brand/category name as keys and their synonyms as values. 
-
 
127
     * @throws Exception
-
 
128
     */
-
 
129
    @SuppressWarnings("unchecked")
-
 
130
    public static Map<String, Map<String, String>> getSynonyms() throws Exception {
-
 
131
    	return (Map<String, Map<String,String>>)StorageManager.getStorageManager().getDataObject(CreationUtils.SYNONYMS);      
-
 
132
    }
-
 
133
    
-
 
134
    /**
-
 
135
     * 
-
 
136
     * @param Synonym that contains map of brand/category name as keys and their synonyms as values. 
-
 
137
     * @throws Exception
-
 
138
     */
-
 
139
    public static void storeSynonyms(Map<String, Map<String, String>> synonyms) throws Exception {
-
 
140
    	StorageManager.getStorageManager().storeDataObject(CreationUtils.SYNONYMS, synonyms);      
-
 
141
    }
-
 
142
 
123
  
143
  
124
    /**
144
    /**
125
     * 
145
     * 
126
     * @return
146
     * @return
127
     * @throws Exception
147
     * @throws Exception
Line 732... Line 752...
732
     * delete the special pages from database.
752
     * delete the special pages from database.
733
     */
753
     */
734
    public static void deleteSpecialPage(long specialPageId) {
754
    public static void deleteSpecialPage(long specialPageId) {
735
        StorageManager.getStorageManager().deleteSpecialPage(specialPageId);
755
        StorageManager.getStorageManager().deleteSpecialPage(specialPageId);
736
    }
756
    }
-
 
757
    
-
 
758
    
737
}
759
}