Subversion Repositories SmartDukaan

Rev

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

Rev 8578 Rev 8582
Line 25... Line 25...
25
import org.apache.thrift.TException;
25
import org.apache.thrift.TException;
26
import org.apache.thrift.transport.TTransportException;
26
import org.apache.thrift.transport.TTransportException;
27
 
27
 
28
 
28
 
29
@SuppressWarnings("serial")
29
@SuppressWarnings("serial")
-
 
30
 
30
@Results({
31
@Results({
31
	@Result(name = "redirect", location = "${url}", type = "redirect"),
32
	@Result(name = "redirect", location = "${url}", type = "redirect"),
32
	@Result(name = "newCampaign", location = "campaign-editNew.vm"),
33
	@Result(name = "newCampaign", location = "campaign-editNew.vm"),
33
	@Result(name = "campaignEdit", location = "campaignEdit.vm"),
34
	@Result(name = "campaignEdit", location = "campaignEdit.vm")
34
})
35
})
-
 
36
 
35
public class UserImageController extends BaseController {
37
public class UserImageController extends BaseController {
36
	private static Logger log = Logger.getLogger(Class.class);
38
	private static Logger log = Logger.getLogger(Class.class);
37
	private File userImage;
39
	private File userImage;
38
	private String filePath;
40
	private String filePath;
39
	private String userImageContentType;
41
	private String userImageContentType;
Line 176... Line 178...
176
			CatalogClient = new CatalogClient().getClient();
178
			CatalogClient = new CatalogClient().getClient();
177
			banners = CatalogClient.getAllBanners();
179
			banners = CatalogClient.getAllBanners();
178
		} catch (TTransportException e) {
180
		} catch (TTransportException e) {
179
			log.info("Unable to fetch all banners "+e);
181
			log.info("Unable to fetch all banners "+e);
180
		} catch (TException ex) {
182
		} catch (TException ex) {
181
			// TODO Auto-generated catch block
-
 
182
			log.info("Unable to fetch all banners "+ex);
183
			log.info("Unable to fetch all banners "+ex);
183
		}
184
		}
184
		return banners;	
185
		return banners;	
185
	}
186
	}
186
 
187