Package org.ametys.plugins.cart
Class ContentElement
- java.lang.Object
-
- org.ametys.plugins.cart.ContentElement
-
- All Implemented Interfaces:
CartElement
public class ContentElement extends Object implements CartElement
Implementation of aCartElementwrapping aContent
-
-
Field Summary
Fields Modifier and Type Field Description private Content_contentprivate ContentTypeExtensionPoint_cTypesEPprivate ContentTypesHelper_cTypesHelper
-
Constructor Summary
Constructors Constructor Description ContentElement(Content content, ContentTypesHelper cTypesHelper, ContentTypeExtensionPoint cTypesEP)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentgetContent()Get the contentI18nizableTextgetDescription()Get the element's descriptionStringgetGlyphIcon()Get glyph icon.List<I18nizableText>getGroups()Get the label of the groupsStringgetId()Get the unique identifier of the elementUserIdentitygetLastContributor()Get the authorDategetLastModified()Get the date of last modificationStringgetMediumIcon()Get the path to medium icon (32x32 pixels)StringgetSmallIcon()Get the path to small icon (16x16 pixels)I18nizableTextgetTitle()Get the element's titleStringgetType()Get the type of element
-
-
-
Field Detail
-
_cTypesHelper
private ContentTypesHelper _cTypesHelper
-
_cTypesEP
private ContentTypeExtensionPoint _cTypesEP
-
-
Constructor Detail
-
ContentElement
public ContentElement(Content content, ContentTypesHelper cTypesHelper, ContentTypeExtensionPoint cTypesEP)
Constructor- Parameters:
content- The contentcTypesHelper- The content types helpercTypesEP- The extension point for content types
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:CartElementGet the unique identifier of the element- Specified by:
getIdin interfaceCartElement- Returns:
- The unique identifier
-
getTitle
public I18nizableText getTitle()
Description copied from interface:CartElementGet the element's title- Specified by:
getTitlein interfaceCartElement- Returns:
- The title
-
getDescription
public I18nizableText getDescription()
Description copied from interface:CartElementGet the element's description- Specified by:
getDescriptionin interfaceCartElement- Returns:
- The description
-
getGroups
public List<I18nizableText> getGroups()
Description copied from interface:CartElementGet the label of the groups- Specified by:
getGroupsin interfaceCartElement- Returns:
- the label of the groups
-
getLastModified
public Date getLastModified()
Description copied from interface:CartElementGet the date of last modification- Specified by:
getLastModifiedin interfaceCartElement- Returns:
- the date of last modification
-
getLastContributor
public UserIdentity getLastContributor()
Description copied from interface:CartElementGet the author- Specified by:
getLastContributorin interfaceCartElement- Returns:
- The author
-
getType
public String getType()
Description copied from interface:CartElementGet the type of element- Specified by:
getTypein interfaceCartElement- Returns:
- The type
-
getGlyphIcon
public String getGlyphIcon()
Description copied from interface:CartElementGet glyph icon. If not null, small and medium icon will be ignored- Specified by:
getGlyphIconin interfaceCartElement- Returns:
- the path to small icon
-
getSmallIcon
public String getSmallIcon()
Description copied from interface:CartElementGet the path to small icon (16x16 pixels)- Specified by:
getSmallIconin interfaceCartElement- Returns:
- the path to small icon
-
getMediumIcon
public String getMediumIcon()
Description copied from interface:CartElementGet the path to medium icon (32x32 pixels)- Specified by:
getMediumIconin interfaceCartElement- Returns:
- the path to medium icon
-
getContent
public Content getContent()
Get the content- Returns:
- The content
-
-