Subversion Repositories SmartDukaan

Rev

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

Rev 8025 Rev 8659
Line 1636... Line 1636...
1636
    public Map<Object, Double> getScores() throws Exception{
1636
    public Map<Object, Double> getScores() throws Exception{
1637
    	Long entityId = Long.parseLong(this.id);
1637
    	Long entityId = Long.parseLong(this.id);
1638
    	Map<Object,Double> finalScores = new HashMap<Object, Double>();
1638
    	Map<Object,Double> finalScores = new HashMap<Object, Double>();
1639
    	EntityState es = CreationUtils.getEntityState(entityId);
1639
    	EntityState es = CreationUtils.getEntityState(entityId);
1640
    	if (es!=null && es.getCategoryID() > 0) {
1640
    	if (es!=null && es.getCategoryID() > 0) {
1641
	    	if((es.getCategoryID() == 10002l || es.getCategoryID() == 10003l || es.getCategoryID() == 10004l || es.getCategoryID() == 10005l) && !es.getStatus().equals(EntityStatus.UNASSIGNED)){
1641
	    	if((es.getCategoryID() == 10006l) && !es.getStatus().equals(EntityStatus.UNASSIGNED)){
1642
		    	NewCMP cmp = new NewCMP(Arrays.asList(this.entity));
1642
		    	NewCMP cmp = new NewCMP(Arrays.asList(this.entity));
1643
				try {
1643
				try {
1644
					//get Scores on the basis of evaluation
1644
					//get Scores on the basis of evaluation
1645
					Map<Long, Map<Long, Double>> scoreMap = cmp.getSlideScores(0);
1645
					Map<Long, Map<Long, Double>> scoreMap = cmp.getSlideScores(0);
1646
					finalScores = new HashMap<Object, Double>(scoreMap.get(entityId));
1646
					finalScores = new HashMap<Object, Double>(scoreMap.get(entityId));