Subversion Repositories SmartDukaan

Rev

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

Rev 9388 Rev 9389
Line 100... Line 100...
100
        menuObject.setChildren(children);
100
        menuObject.setChildren(children);
101
        return menuObject;
101
        return menuObject;
102
    }
102
    }
103
    
103
    
104
	
104
	
105
	public static ProductPojo getShortContent(long entityId) throws Exception{
105
	public static ProductPojo getShortContent(long entityId) {
106
		ContentPojo cp = StorageManager.getById(StorageManager.views.siteContent, entityId, ContentPojo.class);
106
		ContentPojo cp = StorageManager.getById(StorageManager.views.siteContent, entityId, ContentPojo.class);
107
		ProductPojo pp = null;
107
		ProductPojo pp = null;
108
		if(cp!=null){
108
		if(cp!=null){
109
			try {
109
			try {
110
			pp = new ProductPojo();
110
			pp = new ProductPojo();
Line 115... Line 115...
115
			
115
			
116
			pp.setMrp(cp.getItems().get(0).getMrp());
116
			pp.setMrp(cp.getItems().get(0).getMrp());
117
			pp.setPrice(cp.getItems().get(0).getSellingPrice());
117
			pp.setPrice(cp.getItems().get(0).getSellingPrice());
118
			pp.setTitle(cp.getTitle());
118
			pp.setTitle(cp.getTitle());
119
			} catch (Exception e) {
119
			} catch (Exception e) {
120
				log.error("Error" + e.getMessage());
120
				log.error("Error in entity : " + entityId);
121
				pp = null;
121
				pp = null;
122
			}
122
			}
123
		}
123
		}
124
		return pp;
124
		return pp;
125
	}
125
	}