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()
CartElement
getId
in interface CartElement
public I18nizableText getTitle()
CartElement
getTitle
in interface CartElement
public I18nizableText getDescription()
CartElement
getDescription
in interface CartElement
public List<I18nizableText> getGroups()
CartElement
getGroups
in interface CartElement
public Date getLastModified()
CartElement
getLastModified
in interface CartElement
public UserIdentity getLastContributor()
CartElement
getLastContributor
in interface CartElement
public String getType()
CartElement
getType
in interface CartElement
public String getGlyphIcon()
CartElement
getGlyphIcon
in interface CartElement
public String getSmallIcon()
CartElement
getSmallIcon
in interface CartElement
public String getMediumIcon()
CartElement
getMediumIcon
in interface CartElement