Subversion Repositories SmartDukaan

Rev

Rev 64 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 64 Rev 70
Line 52... Line 52...
52
 * 
52
 * 
53
 * @author naveen
53
 * @author naveen
54
 *
54
 *
55
 */
55
 */
56
public class HSLF {
56
public class HSLF {
57
	// LOCAL
-
 
58
	/**
-
 
59
	 * Path to where PPT files will be picked
-
 
60
	 */
-
 
61
	public static final String CONTENT_SRC_PPT_PATH = 
-
 
62
		"/home/naveen/workspace/eclipse/content/ppt/";
-
 
63
	
-
 
64
	/** Validation tool
-
 
65
	public static final String CONTENT_SRC_PPT_PATH = "./ppt/";
-
 
66
	*/
-
 
67
	
-
 
68
	/**
-
 
69
	 * Path where exported HTML files are kept
-
 
70
	 */
-
 
71
	public static final String CONTENT_SRC_HTML_PATH = 
-
 
72
		"/home/naveen/workspace/eclipse/content/html/";
-
 
73
	
-
 
74
	/**
-
 
75
	 * 
-
 
76
	 */
-
 
77
	public static final String CONTENT_SRC_XML_PATH = 
-
 
78
		"/home/naveen/workspace/eclipse/content/xml/";
-
 
79
	
57
	
80
	/**
58
	/**
81
	 * 
59
	 * 
82
	 */
60
	 */
83
	public static final int BLUE = -16776961;
61
	public static final int BLUE = -16776961;
Line 95... Line 73...
95
	/**
73
	/**
96
	 * 
74
	 * 
97
	 */
75
	 */
98
	public static final int ORANGE = -26368; 
76
	public static final int ORANGE = -26368; 
99
	
77
	
100
	// LOCAL
-
 
101
	/**
-
 
102
	 * 
-
 
103
	 */
-
 
104
	public static final String CONTENT_DB_PATH =  
-
 
105
		"/home/naveen/workspace/eclipse/db/entities/";
-
 
106
	
-
 
107
	/** Validation tool
-
 
108
	public static final String CONTENT_DB_PATH =  
-
 
109
		"./db/entities/";
-
 
110
	*/
-
 
111
	
-
 
112
	/** WEB
-
 
113
	public static final String CONTENT_DB_PATH =  
-
 
114
		"/var/lib/tomcat6/webapps/shop2020/db/entities/";
-
 
115
	*/
-
 
116
	
-
 
117
	/**
78
	/**
118
	 * 
79
	 * 
119
	 */
80
	 */
120
	private List<String> slideNames = new ArrayList<String>();
81
	private List<String> slideNames = new ArrayList<String>();
121
	
82
	
Line 257... Line 218...
257
	 * @param fileName
218
	 * @param fileName
258
	 */
219
	 */
259
	public HSLF(long categoryID, String fileName) {
220
	public HSLF(long categoryID, String fileName) {
260
		this.categoryID = categoryID;
221
		this.categoryID = categoryID;
261
		
222
		
262
		this.srcFile = CONTENT_SRC_PPT_PATH + fileName + ".ppt";
223
		this.srcFile = Utils.CONTENT_SRC_PPT_PATH + fileName + ".ppt";
263
		this.dbFile = CONTENT_DB_PATH + "entities" + ".ser";
224
		this.dbFile = Utils.ENTITIES_DB_PATH + "entities" + ".ser";
264
	}
225
	}
265
 
226
 
266
	/**
227
	/**
267
	 * 
228
	 * 
268
	 * @param entityID
229
	 * @param entityID
Line 511... Line 472...
511
		// RE-VISIT
472
		// RE-VISIT
512
		// Store it back
473
		// Store it back
513
		DBUtils.store(entContainer.getEntities(), this.dbFile);
474
		DBUtils.store(entContainer.getEntities(), this.dbFile);
514
		
475
		
515
		// Store the index separately
476
		// Store the index separately
516
		String entitiesbycategoryDBFile = HSLF.CONTENT_DB_PATH + 
477
		String entitiesbycategoryDBFile = Utils.ENTITIES_DB_PATH + 
517
			"entitiesbycategory" + ".ser";
478
			"entitiesbycategory" + ".ser";
518
		
479
		
519
		DBUtils.store(entContainer.getEntitiesbyCategory(), 
480
		DBUtils.store(entContainer.getEntitiesbyCategory(), 
520
				entitiesbycategoryDBFile);
481
				entitiesbycategoryDBFile);
521
		
482