Subversion Repositories SmartDukaan

Rev

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

Rev 832 Rev 968
Line 2... Line 2...
2
 * 
2
 * 
3
 */
3
 */
4
package in.shop2020.serving.controllers;
4
package in.shop2020.serving.controllers;
5
 
5
 
6
import java.io.File;
6
import java.io.File;
-
 
7
import java.io.IOException;
7
import java.util.ArrayList;
8
import java.util.ArrayList;
8
import java.util.List;
9
import java.util.List;
9
 
10
 
10
import in.shop2020.model.v1.catalog.InventoryServiceException;
11
import in.shop2020.model.v1.catalog.InventoryServiceException;
11
import in.shop2020.serving.services.PageLoaderHandler;
12
import in.shop2020.serving.services.PageLoaderHandler;
Line 81... Line 82...
81
			e.printStackTrace();
82
			e.printStackTrace();
82
		}
83
		}
83
    	return new DefaultHttpHeaders("show");
84
    	return new DefaultHttpHeaders("show");
84
    }
85
    }
85
    
86
    
86
    public List<String> getItems() throws Exception{
87
    public List<String> getItems(){
87
    	ArrayList<String> snippets = new ArrayList<String>();
88
    	ArrayList<String> snippets = new ArrayList<String>();
88
    	if(items != null){
89
    	if(items != null){
89
    		for(long item: items){
90
    		for(long item: items){
-
 
91
    			try{
90
				snippets.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"CategorySnippet.html"));
92
    				snippets.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"CategorySnippet.html"));
-
 
93
    			}catch(IOException ioex){
-
 
94
    				ioex.printStackTrace();
-
 
95
    				log.error(ioex);
-
 
96
    			}
91
			}
97
			}
92
    	}
98
    	}
93
		
99
		
94
    	return snippets;
100
    	return snippets;
95
    }
101
    }