Package org.ametys.plugins.cart
Class ContentElement
java.lang.Object
org.ametys.plugins.cart.ContentElement
- All Implemented Interfaces:
CartElement
Implementation of a
CartElement
wrapping a Content
-
Constructor Summary
ConstructorDescriptionContentElement
(Content content, ContentTypesHelper cTypesHelper, ContentTypeExtensionPoint cTypesEP) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the contentGet the element's descriptionGet glyph icon.Get the label of the groupsgetId()
Get the unique identifier of the elementGet the authorGet the date of last modificationGet the path to medium icon (32x32 pixels)Get the path to small icon (16x16 pixels)getTitle()
Get the element's titlegetType()
Get the type of element
-
Constructor Details
-
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 Details
-
getId
Description copied from interface:CartElement
Get the unique identifier of the element- Specified by:
getId
in interfaceCartElement
- Returns:
- The unique identifier
-
getTitle
Description copied from interface:CartElement
Get the element's title- Specified by:
getTitle
in interfaceCartElement
- Returns:
- The title
-
getDescription
Description copied from interface:CartElement
Get the element's description- Specified by:
getDescription
in interfaceCartElement
- Returns:
- The description
-
getGroups
Description copied from interface:CartElement
Get the label of the groups- Specified by:
getGroups
in interfaceCartElement
- Returns:
- the label of the groups
-
getLastModified
Description copied from interface:CartElement
Get the date of last modification- Specified by:
getLastModified
in interfaceCartElement
- Returns:
- the date of last modification
-
getLastContributor
Description copied from interface:CartElement
Get the author- Specified by:
getLastContributor
in interfaceCartElement
- Returns:
- The author
-
getType
Description copied from interface:CartElement
Get the type of element- Specified by:
getType
in interfaceCartElement
- Returns:
- The type
-
getGlyphIcon
Description copied from interface:CartElement
Get glyph icon. If not null, small and medium icon will be ignored- Specified by:
getGlyphIcon
in interfaceCartElement
- Returns:
- the path to small icon
-
getSmallIcon
Description copied from interface:CartElement
Get the path to small icon (16x16 pixels)- Specified by:
getSmallIcon
in interfaceCartElement
- Returns:
- the path to small icon
-
getMediumIcon
Description copied from interface:CartElement
Get the path to medium icon (32x32 pixels)- Specified by:
getMediumIcon
in interfaceCartElement
- Returns:
- the path to medium icon
-
getContent
Get the content- Returns:
- The content
-