| Line 1635... |
Line 1635... |
| 1635 |
|
1635 |
|
| 1636 |
public Map<Long, Double> getScores() throws Exception{
|
1636 |
public Map<Long, Double> getScores() throws Exception{
|
| 1637 |
Long entityId = Long.parseLong(this.id);
|
1637 |
Long entityId = Long.parseLong(this.id);
|
| 1638 |
EntityState es = CreationUtils.getEntityState(entityId);
|
1638 |
EntityState es = CreationUtils.getEntityState(entityId);
|
| 1639 |
if (es!=null && es.getCategoryID() > 0) {
|
1639 |
if (es!=null && es.getCategoryID() > 0) {
|
| 1640 |
Category c = Catalog.getInstance().getDefinitionsContainer().getCategory(es.getCategoryID());
|
- |
|
| 1641 |
if(c.isComparable() &&(es.getStatus().equals(EntityStatus.COMPLETE) || es.getStatus().equals(EntityStatus.READY))){
|
1640 |
if((es.getCategoryID() == 10002l || es.getCategoryID() == 10003l || es.getCategoryID() == 10004l || es.getCategoryID() == 10005l) && !es.getStatus().equals(EntityStatus.UNASSIGNED)){
|
| 1642 |
NewCMP cmp = new NewCMP(Arrays.asList(this.entity));
|
1641 |
NewCMP cmp = new NewCMP(Arrays.asList(this.entity));
|
| 1643 |
Map<Long, Double> score = null;
|
1642 |
Map<Long, Double> score = null;
|
| 1644 |
try {
|
1643 |
try {
|
| 1645 |
Map<Long, Map<Long, Double>> scoreMap = cmp.getSlideScores();
|
1644 |
Map<Long, Map<Long, Double>> scoreMap = cmp.getSlideScores();
|
| 1646 |
score = scoreMap.get(entityId);
|
1645 |
score = scoreMap.get(entityId);
|