Package org.ametys.plugins.cart
Class QueryElement
java.lang.Object
org.ametys.plugins.cart.QueryElement
- All Implemented Interfaces:
CartElement
- Direct Known Subclasses:
QueryFromDirectoryElement
Implementation of a
CartElement wrapping a search query-
Constructor Summary
ConstructorsConstructorDescriptionQueryElement(String id, String query, UserIdentity author, ZonedDateTime creationDate, UserIdentity contributor, ZonedDateTime lastModified, String title) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the creation dateGet the authorGet the element's descriptionGet glyph icon.Get the label of the groupsgetId()Get the unique identifier of the elementGet the last contributorGet the date of last modificationGet the path to medium icon (32x32 pixels)Get the content of the queryGet the path to small icon (16x16 pixels)getTitle()Get the element's titlegetType()Get the type of element
-
Constructor Details
-
QueryElement
public QueryElement(String id, String query, UserIdentity author, ZonedDateTime creationDate, UserIdentity contributor, ZonedDateTime lastModified, String title) Constructor- Parameters:
id- The idquery- The queryauthor- The authorcreationDate- The creation datecontributor- The last contributorlastModified- The last modification datetitle- The query title
-
-
Method Details
-
getId
Description copied from interface:CartElementGet the unique identifier of the element- Specified by:
getIdin interfaceCartElement- Returns:
- The unique identifier
-
getTitle
Description copied from interface:CartElementGet the element's title- Specified by:
getTitlein interfaceCartElement- Returns:
- The title
-
getDescription
Description copied from interface:CartElementGet the element's description- Specified by:
getDescriptionin interfaceCartElement- Returns:
- The description
-
getQueryContent
Get the content of the query- Returns:
- the content as a JSON string
-
getGroups
Description copied from interface:CartElementGet the label of the groups- Specified by:
getGroupsin interfaceCartElement- Returns:
- the label of the groups
-
getCreationDate
Description copied from interface:CartElementGet the creation date- Specified by:
getCreationDatein interfaceCartElement- Returns:
- the creation date
-
getCreator
Description copied from interface:CartElementGet the author- Specified by:
getCreatorin interfaceCartElement- Returns:
- The author
-
getLastModified
Description copied from interface:CartElementGet the date of last modification- Specified by:
getLastModifiedin interfaceCartElement- Returns:
- the date of last modification
-
getLastContributor
Description copied from interface:CartElementGet the last contributor- Specified by:
getLastContributorin interfaceCartElement- Returns:
- The last contributor
-
getType
Description copied from interface:CartElementGet the type of element- Specified by:
getTypein interfaceCartElement- Returns:
- The type
-
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
Description copied from interface:CartElementGet the path to small icon (16x16 pixels)- Specified by:
getSmallIconin interfaceCartElement- Returns:
- the path to small icon
-
getMediumIcon
Description copied from interface:CartElementGet the path to medium icon (32x32 pixels)- Specified by:
getMediumIconin interfaceCartElement- Returns:
- the path to medium icon
-