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 class
SharedContent.SortOnComparator
-
Field Summary
Fields Modifier and Type Field Description protected List<ComponentBean>
content
static String
SHARED_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 void
addCategory(String category)
Collection<String>
getCategories()
List<ComponentBean>
getContent()
get the content as javlo ComponentBean.String
getDescription()
String
getEditURL()
String
getId()
String
getImageURL()
String
getLinkInfo()
get information for create a linked content.String
getPhotoPageLink()
long
getSortOn()
String
getTitle()
boolean
isEditAsModal()
void
loadContent(ContentContext ctx)
load content if remote, do nothing if local.void
setCategories(Collection<String> categories)
void
setDescription(String description)
void
setEditAsModal(boolean editAsPopup)
void
setEditURL(String editURL)
void
setImageUrl(String url)
void
setLinkInfo(String linkInfo)
void
setPhotoPageLink(String photoPageLink)
void
setSortOn(long sortOn)
void
setTitle(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)
-
-