Subversion Repositories SmartDukaan

Rev

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

Rev 7964 Rev 7965
Line 1632... Line 1632...
1632
    
1632
    
1633
    public String getFormattedDate(Date date){
1633
    public String getFormattedDate(Date date){
1634
    	return sdf.format(date);
1634
    	return sdf.format(date);
1635
    }
1635
    }
1636
    
1636
    
1637
    public Map<Long, Double> getScores(){
1637
    public Map<Long, Double> getScores() throws Exception{
-
 
1638
    	EntityState es = CreationUtils.getEntityState(entityId);
1638
    	if(this.expEntity.getCategory().isComparable() &&(entitiesState.equals(EntityStatus.COMPLETE) || entitiesState.equals(EntityStatus.READY))){
1639
    	if(this.expEntity.getCategory().isComparable() &&(es.equals(EntityStatus.COMPLETE) || es.equals(EntityStatus.READY))){
1639
	    	NewCMP cmp = new NewCMP(Arrays.asList(this.entity));
1640
	    	NewCMP cmp = new NewCMP(Arrays.asList(this.entity));
1640
	    	Map<Long, Double> score = null;
1641
	    	Map<Long, Double> score = null;
1641
			try {
1642
			try {
1642
				Map<Long, Map<Long, Double>> scoreMap = cmp.getSlideScores();
1643
				Map<Long, Map<Long, Double>> scoreMap = cmp.getSlideScores();
1643
				score = scoreMap.get(Long.parseLong(this.id));
1644
				score = scoreMap.get(Long.parseLong(this.id));