Package sk.iway.iwcm.sync.inport
Class SimpleContentBean<Item>
java.lang.Object
sk.iway.iwcm.sync.inport.SimpleContentBean<Item>
- Direct Known Subclasses:
ContentBannerBean,ContentGalleryBean.Image,ContentGalleryBean.Info,ContentInquiryBean
Zobrazenie importu beanu.
Spolocna funkcionalita: cislo beanu, vzdialeny bean, lokalny bean.
V odvodenej triede doplnime funkcie specificke pre konkretny bean,
s moznostou zmenit strategiu pre "isSelected".
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCislo do HTML stranky, podla ktoreho rozozname, ktore beany chce pouzivatel importovat.booleanisLocal()Ci existuje dany bean na lokalnom webjete.booleanCi pouzivatelovi odporucame importovat tento bean.
-
Field Details
-
number
protected final int number -
remoteItem
-
localItem
-
-
Constructor Details
-
SimpleContentBean
-
-
Method Details
-
getNumber
public int getNumber()Cislo do HTML stranky, podla ktoreho rozozname, ktore beany chce pouzivatel importovat.- Returns:
-
isLocal
public boolean isLocal()Ci existuje dany bean na lokalnom webjete.- Returns:
-
isSelected
public boolean isSelected()Ci pouzivatelovi odporucame importovat tento bean. Default riesenie je importovat prave vtedy, ak lokalne neexistuje. Odvodene triedy mozu toto spravanie nahradit niecim specifickym pre dany typ beanu.- Returns:
-