Subversion Repositories SmartDukaan

Rev

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

Rev 1072 Rev 1104
Line 94... Line 94...
94
				
94
				
95
				for(EnumValue enumValue : enumValues) {
95
				for(EnumValue enumValue : enumValues) {
96
					possibleValues.add(enumValue.getValue());
96
					possibleValues.add(enumValue.getValue());
97
				}
97
				}
98
 
98
 
99
				Utils.info("possibleValues=" + possibleValues);
99
				//Utils.info("possibleValues=" + possibleValues);
100
				this.py.set("possibleValues", possibleValues);
100
				this.py.set("possibleValues", possibleValues);
101
			} 
101
			} 
102
			
102
			
103
			// Get values collected across entities
103
			// Get values collected across entities
104
			else {
104
			else {
105
				EntityContainer ents = 
105
				EntityContainer ents = 
106
					Catalog.getInstance().getEntityContainer();
106
					Catalog.getInstance().getEntityContainer();
107
				
107
				
108
				long facetDefinitionID = this.expandedFacetDefinition.getID();
108
				long facetDefinitionID = this.expandedFacetDefinition.getID();
109
				
109
				
110
				//FIXME need to fix it according to new infra
-
 
111
				//possibleValues = CreationUtils.getFacetValues(facetDefinitionID);
-
 
112
				
110
				
113
				OldEntityContainer oldEnts = new OldEntityContainer();
-
 
114
				possibleValues = oldEnts.getFacetValues(facetDefinitionID);
111
				possibleValues = CreationUtils.getFacetValues(facetDefinitionID);
115
				
112
				
116
				Utils.info("possibleValues=" + possibleValues);
113
				//Utils.info("possibleValues=" + possibleValues);
117
				this.py.set("possibleValues", possibleValues);
114
				this.py.set("possibleValues", possibleValues);
118
			}
115
			}
119
		}
116
		}
120
 
117
 
121
		// expSlideDef
118
		// expSlideDef
Line 136... Line 133...
136
				
133
				
137
				possibleValues.add(expFeatureDef.getLabel());
134
				possibleValues.add(expFeatureDef.getLabel());
138
			}
135
			}
139
			
136
			
140
			// Feature Labels
137
			// Feature Labels
141
			Utils.info("possibleValues=" + possibleValues);
138
			//Utils.info("possibleValues=" + possibleValues);
142
			this.py.set("possibleValues", possibleValues);
139
			this.py.set("possibleValues", possibleValues);
143
		}
140
		}
144
		
141
		
145
		RuleDefinition ruleDef = 
142
		RuleDefinition ruleDef = 
146
			this.expandedFacetDefinition.getIrMetadataRuleDefinition();
143
			this.expandedFacetDefinition.getIrMetadataRuleDefinition();