public class ResourceElement extends Object implements CartElement
CartElement wrapping a Resource| Constructor and Description |
|---|
ResourceElement(Resource resource)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
I18nizableText |
getDescription()
Get the element's description
|
String |
getGlyphIcon()
Get glyph icon.
|
List<I18nizableText> |
getGroups()
Get the label of the groups
|
String |
getId()
Get the unique identifier of the element
|
UserIdentity |
getLastContributor()
Get the author
|
Date |
getLastModified()
Get the date of last modification
|
String |
getMediumIcon()
Get the path to medium icon (32x32 pixels)
|
String |
getSmallIcon()
Get the path to small icon (16x16 pixels)
|
I18nizableText |
getTitle()
Get the element's title
|
String |
getType()
Get the type of element
|
public ResourceElement(Resource resource)
resource - The resourcepublic String getId()
CartElementgetId in interface CartElementpublic I18nizableText getTitle()
CartElementgetTitle in interface CartElementpublic I18nizableText getDescription()
CartElementgetDescription in interface CartElementpublic List<I18nizableText> getGroups()
CartElementgetGroups in interface CartElementpublic Date getLastModified()
CartElementgetLastModified in interface CartElementpublic UserIdentity getLastContributor()
CartElementgetLastContributor in interface CartElementpublic String getType()
CartElementgetType in interface CartElementpublic String getGlyphIcon()
CartElementgetGlyphIcon in interface CartElementpublic String getSmallIcon()
CartElementgetSmallIcon in interface CartElementpublic String getMediumIcon()
CartElementgetMediumIcon in interface CartElement