*/
@Override
public Collection<Media> getCollection(Amplification entity) {
- if(entity.getGelPhoto()!=null){
- return Collections.singleton(entity.getGelPhoto());
- }
+// if(entity.getGelPhoto()!=null){
+// return Collections.singleton(entity.getGelPhoto());
+// }
return Collections.EMPTY_LIST;
}
*/
@Override
public Media createNewElement() {
- if(getEntity().getGelPhoto()==null){
- return Media.NewInstance();
- }
+// if(getEntity().getGelPhoto()==null){
+// return Media.NewInstance();
+// }
return null;
}
*/
@Override
public void addElement(Media element) {
- if(getEntity().getGelPhoto()==null){
- getEntity().setGelPhoto(element);
- }
+// if(getEntity().getGelPhoto()==null){
+// getEntity().setGelPhoto(element);
+// }
}
*/
@Override
public void removeElement(Media element) {
- getEntity().setGelPhoto(null);
+// getEntity().setGelPhoto(null);
}
/* (non-Javadoc)