public class QueryElement extends Object implements CartElement
CartElement wrapping a search query| Modifier and Type | Field and Description |
|---|---|
private UserIdentity |
_author |
private Calendar |
_date |
private String |
_id |
private String |
_query |
private String |
_title |
| Constructor and Description |
|---|
QueryElement(String id,
String query,
UserIdentity author,
Calendar creationDate,
String title)
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
|
private UserIdentity _author
public QueryElement(String id, String query, UserIdentity author, Calendar creationDate, String title)
id - The idquery - The queryauthor - The authorcreationDate - The creation datetitle - The query titlepublic 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