Subversion Repositories SmartDukaan

Rev

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

Rev 2146 Rev 2223
Line 60... Line 60...
60
		Client client = null;
60
		Client client = null;
61
		
61
		
62
		try {
62
		try {
63
			catalogServiceClient = new CatalogServiceClient();
63
			catalogServiceClient = new CatalogServiceClient();
64
			client = catalogServiceClient.getClient();
64
			client = catalogServiceClient.getClient();
65
			List<Long> items = client.getBestSellersCatalogIds(1, 4, null, -1);
65
			List<Long> items = client.getBestSellersCatalogIds(0, 4, null, -1);
66
			List<String> itemList = new ArrayList<String>();
66
			List<String> itemList = new ArrayList<String>();
67
			for(Long item: items){
67
			for(Long item: items){
68
				itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
68
				itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
69
			}
69
			}
70
			context.put("itemList", itemList);
70
			context.put("itemList", itemList);
Line 87... Line 87...
87
		Client client = null;
87
		Client client = null;
88
		
88
		
89
		try {
89
		try {
90
			catalogServiceClient = new CatalogServiceClient();
90
			catalogServiceClient = new CatalogServiceClient();
91
			client = catalogServiceClient.getClient();
91
			client = catalogServiceClient.getClient();
92
			List<Long> items = client.getLatestArrivalsCatalogIds(1, 4, null, 10003);
92
			List<Long> items = client.getLatestArrivalsCatalogIds(0, 4, null, 10003);
93
			List<String> itemList = new ArrayList<String>();
93
			List<String> itemList = new ArrayList<String>();
94
			for(Long item: items){
94
			for(Long item: items){
95
				try{
95
				try{
96
					itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
96
					itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
97
				}catch(IOException ioex){
97
				}catch(IOException ioex){