Subversion Repositories SmartDukaan

Rev

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

Rev 11557 Rev 11569
Line 70... Line 70...
70
import java.util.Set;
70
import java.util.Set;
71
import java.util.TreeMap;
71
import java.util.TreeMap;
72
 
72
 
73
import org.apache.commons.collections.CollectionUtils;
73
import org.apache.commons.collections.CollectionUtils;
74
import org.apache.commons.io.IOUtils;
74
import org.apache.commons.io.IOUtils;
75
import org.apache.commons.lang.ArrayUtils;
-
 
76
import org.apache.commons.lang.StringUtils;
75
import org.apache.commons.lang.StringUtils;
77
 
76
 
78
import com.google.gson.Gson;
77
import com.google.gson.Gson;
79
import com.google.gson.reflect.TypeToken;
78
import com.google.gson.reflect.TypeToken;
80
 
79
 
Line 140... Line 139...
140
	
139
	
141
	private void testProd() throws Exception{
140
	private void testProd() throws Exception{
142
		Map<Long, EntityState> es1 = StorageManager.getStorageManager().getEntitiesMetadata();
141
		Map<Long, EntityState> es1 = StorageManager.getStorageManager().getEntitiesMetadata();
143
		for(Map.Entry<Long, EntityState> estate : es1.entrySet()){		
142
		for(Map.Entry<Long, EntityState> estate : es1.entrySet()){		
144
			EntityState es = estate.getValue();
143
			EntityState es = estate.getValue();
145
			if(es.getBrand().equals("Spice") && es.getCategoryID()==10006l && es.getStatus().equals(EntityStatus.READY)) {
144
			if(es.getCategoryID()==10006l && es.getStatus().equals(EntityStatus.READY)) {
146
				ContentPojo cp = StorageManager.getById(StorageManager.views.siteContent, estate.getKey(), ContentPojo.class);
145
				ContentPojo cp = StorageManager.getById(StorageManager.views.siteContent, estate.getKey(), ContentPojo.class);
147
				if(cp.getDetailedSpecs()!= null){
146
				if(cp.getDetailedSpecs()!= null){
148
					List<SpecificationGroup> sgs = cp.getDetailedSpecs();
147
					List<SpecificationGroup> sgs = cp.getDetailedSpecs();
149
					System.out.println(es.getBrand() + " "  +  es.getModelName() + " " +es.getModelNumber());
148
					System.out.println(es.getBrand() + " "  +  es.getModelName() + " " +es.getModelNumber());
150
					for(SpecificationGroup sg : sgs) {
149
					for(SpecificationGroup sg : sgs) {