Package org.javlo.service.shared
Class SharedContent
- java.lang.Object
-
- org.javlo.service.shared.SharedContent
-
- Direct Known Subclasses:
FotogrphSharedContent,RemoteImageSharedContent,StockvaultSharedContent,URLSharedContent
public class SharedContent extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSharedContent.SortOnComparator
-
Field Summary
Fields Modifier and Type Field Description protected List<ComponentBean>contentstatic StringSHARED_CONTENT_FOLDER
-
Constructor Summary
Constructors Constructor Description SharedContent(String id, Collection<ComponentBean> content)SharedContent(String id, ComponentBean content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCategory(String category)Collection<String>getCategories()List<ComponentBean>getContent()get the content as javlo ComponentBean.StringgetDescription()StringgetEditURL()StringgetId()StringgetImageURL()StringgetLinkInfo()get information for create a linked content.StringgetPhotoPageLink()longgetSortOn()StringgetTitle()booleanisEditAsModal()voidloadContent(ContentContext ctx)load content if remote, do nothing if local.voidsetCategories(Collection<String> categories)voidsetDescription(String description)voidsetEditAsModal(boolean editAsPopup)voidsetEditURL(String editURL)voidsetImageUrl(String url)voidsetLinkInfo(String linkInfo)voidsetPhotoPageLink(String photoPageLink)voidsetSortOn(long sortOn)voidsetTitle(String title)
-
-
-
Field Detail
-
SHARED_CONTENT_FOLDER
public static final String SHARED_CONTENT_FOLDER
- See Also:
- Constant Field Values
-
content
protected List<ComponentBean> content
-
-
Constructor Detail
-
SharedContent
public SharedContent(String id, ComponentBean content) throws Exception
- Throws:
Exception
-
SharedContent
public SharedContent(String id, Collection<ComponentBean> content) throws Exception
- Throws:
Exception
-
-
Method Detail
-
loadContent
public void loadContent(ContentContext ctx)
load content if remote, do nothing if local.- Parameters:
ctx-
-
getContent
public List<ComponentBean> getContent()
get the content as javlo ComponentBean. Sometime the method need convertion.- Returns:
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getImageURL
public String getImageURL()
-
setImageUrl
public void setImageUrl(String url)
-
getId
public String getId()
-
getCategories
public Collection<String> getCategories()
-
setCategories
public void setCategories(Collection<String> categories)
-
addCategory
public void addCategory(String category)
-
getLinkInfo
public String getLinkInfo()
get information for create a linked content. A linked content change if the source is modified.- Returns:
- null if content not linkable.
-
setLinkInfo
public void setLinkInfo(String linkInfo)
-
getSortOn
public long getSortOn()
-
setSortOn
public void setSortOn(long sortOn)
-
getEditURL
public String getEditURL()
-
setEditURL
public void setEditURL(String editURL)
-
isEditAsModal
public boolean isEditAsModal()
-
setEditAsModal
public void setEditAsModal(boolean editAsPopup)
-
getPhotoPageLink
public String getPhotoPageLink()
-
setPhotoPageLink
public void setPhotoPageLink(String photoPageLink)
-
-