Class SilverContent
- java.lang.Object
-
- org.silverpeas.core.i18n.AbstractI18NBean<SilverContentI18N>
-
- org.silverpeas.core.contribution.contentcontainer.content.SilverContent
-
- All Implemented Interfaces:
Serializable
,SilverContentInterface
,Contribution
,SilverpeasContent
,I18NBean<SilverContentI18N>
,Translatable
,Identifiable
,Instance<Contribution>
,Nameable
,Securable
,SilverpeasResource
public class SilverContent extends AbstractI18NBean<SilverContentI18N> implements SilverContentInterface
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SilverContent(String name, String description, String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCreatorId()
String
getDate()
String
getIconUrl()
String
getId()
Gets the identifier of this content in the Silverpeas component providing it.String
getInstanceId()
String
getSilverCreationDate()
String
getTitle()
Gets the title of this contribution if any.protected Class<SilverContentI18N>
getTranslationType()
String
getURL()
void
setURL(String url)
String
toString()
-
Methods inherited from class org.silverpeas.core.i18n.AbstractI18NBean
addTranslation, getClonedTranslations, getDescription, getDescription, getLanguage, getLanguages, getLanguageToDisplay, getName, getName, getNextTranslation, getTranslation, getTranslationId, getTranslations, isRemoveTranslation, setDescription, setLanguage, setName, setRemoveTranslation, setTranslationId, setTranslations, setTranslations
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.contribution.model.Contribution
canBeAccessedBy, getContributionType, getDescription, getModel, getResourcePath, isIndexable
-
Methods inherited from interface org.silverpeas.core.security.Securable
canBeDeletedBy, canBeFiledInBy, canBeModifiedBy
-
Methods inherited from interface org.silverpeas.core.contribution.contentcontainer.content.SilverContentInterface
getComponentInstanceId, getCreationDate, getCreator, getDescription, getLanguages, getLastUpdateDate, getLastUpdater, getName, getName
-
Methods inherited from interface org.silverpeas.core.contribution.model.SilverpeasContent
getIdentifier, getSilverpeasContentId
-
-
-
-
Method Detail
-
getTranslationType
protected Class<SilverContentI18N> getTranslationType()
- Specified by:
getTranslationType
in classAbstractI18NBean<SilverContentI18N>
-
getURL
public String getURL()
- Specified by:
getURL
in interfaceSilverContentInterface
-
setURL
public void setURL(String url)
-
getId
public String getId()
Description copied from interface:SilverpeasContent
Gets the identifier of this content in the Silverpeas component providing it. This identifier is only unique among all the contents managed by the same component (whatever its different instances). As each type of contents in Silverpeas is provided by a single Silverpeas component, the identifier of a content is then specific to the component it belongs to. It is a way for an instance of a such component to identify uniquely the different contents it manages. So, each component can have their own policy to identify their content, whatever the way they are identified in Silverpeas.- Specified by:
getId
in interfaceIdentifiable
- Specified by:
getId
in interfaceSilverpeasContent
- Returns:
- the identifier of this content.
-
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceId
in interfaceSilverContentInterface
-
getTitle
public String getTitle()
Description copied from interface:Contribution
Gets the title of this contribution if any. By default returns an empty String.- Specified by:
getTitle
in interfaceContribution
- Returns:
- the contribution's title in the specified language. Can be empty if no title was set or no title is defined for a such contribution.
-
getDate
public String getDate()
- Specified by:
getDate
in interfaceSilverContentInterface
-
getSilverCreationDate
public String getSilverCreationDate()
- Specified by:
getSilverCreationDate
in interfaceSilverContentInterface
-
getIconUrl
public String getIconUrl()
- Specified by:
getIconUrl
in interfaceSilverContentInterface
-
getCreatorId
public String getCreatorId()
- Specified by:
getCreatorId
in interfaceSilverContentInterface
-
-