| Line 81... |
Line 81... |
| 81 |
*/
|
81 |
*/
|
| 82 |
public Map<Long, Map<Long, Double>> getSlideScores() throws Exception {
|
82 |
public Map<Long, Map<Long, Double>> getSlideScores() throws Exception {
|
| 83 |
Map<Long, Map<Long, Double>> slideScoresByEntityID =
|
83 |
Map<Long, Map<Long, Double>> slideScoresByEntityID =
|
| 84 |
new TreeMap<Long, Map<Long, Double>>();
|
84 |
new TreeMap<Long, Map<Long, Double>>();
|
| 85 |
|
85 |
|
| 86 |
|
- |
|
| 87 |
|
- |
|
| 88 |
for(Entity entity : entities) {
|
86 |
for(Entity entity : entities) {
|
| 89 |
//Skip categories with value as -1 or categories except mobile phones
|
87 |
// Skip categories with value as -1 or categories except mobile phones and tablets
|
| 90 |
if(entity.getCategoryID() == -1 || !(Catalog.getInstance().getDefinitionsContainer().getCategory(entity.getCategoryID()).getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY)){
|
88 |
long parentCategoryId = Catalog.getInstance().getDefinitionsContainer().getCategory(entity.getCategoryID()).getParentCategory().getID();
|
| - |
|
89 |
if(entity.getCategoryID() == -1 || parentCategoryId == Utils.MOBILE_ACCESSORIES_CATEGORY || entity.getCategoryID() == Utils.LAPTOPS_CATEGORY) {
|
| 91 |
continue;
|
90 |
continue;
|
| 92 |
}
|
91 |
}
|
| 93 |
ExpandedEntity expEntity = new ExpandedEntity(entity);
|
92 |
ExpandedEntity expEntity = new ExpandedEntity(entity);
|
| 94 |
Map<Long, Double> slideScores = this.getSlideScores(expEntity);
|
93 |
Map<Long, Double> slideScores = this.getSlideScores(expEntity);
|
| 95 |
|
94 |
|