Subversion Repositories SmartDukaan

Rev

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

Rev 5671 Rev 5672
Line 138... Line 138...
138
		int count = 0;
138
		int count = 0;
139
		for (Entity entity : entities) {
139
		for (Entity entity : entities) {
140
			Slide slide = entity.getSlide(130054l);
140
			Slide slide = entity.getSlide(130054l);
141
			if(slide!=null){
141
			if(slide!=null){
142
				List<Slide> childrenSlide = slide.getChildrenSlides();
142
				List<Slide> childrenSlide = slide.getChildrenSlides();
-
 
143
				if(childrenSlide != null){
143
				Iterator<Slide> it = childrenSlide.iterator();
144
					Iterator<Slide> it = childrenSlide.iterator();
144
				while (it.hasNext()){
145
					while (it.hasNext()){
145
					Slide sl = it.next();
146
						Slide sl = it.next();
146
					if (130105l == sl.getSlideDefinitionID()){
147
						if (130105l == sl.getSlideDefinitionID()){
147
						it.remove();
148
							it.remove();
148
						System.out.println("Removed warranty slide from entity:" + entity.getID());
149
							System.out.println("Removed warranty slide from entity:" + entity.getID());
149
						break;
150
							break;
-
 
151
						}
150
					}
152
					}
-
 
153
					CreationUtils.updateEntity(entity);
151
				}
154
				}
152
				CreationUtils.updateEntity(entity);
-
 
153
			}
155
			}
154
		}
156
		}
155
	}
157
	}
156
 
158
 
157
	private void checkYouTube() throws Exception {
159
	private void checkYouTube() throws Exception {