Package org.ametys.plugins.cart
Class QueryFromDirectoryElement
java.lang.Object
org.ametys.plugins.cart.QueryElement
org.ametys.plugins.cart.QueryFromDirectoryElement
- All Implemented Interfaces:
CartElement
Implementation of a
CartElement wrapping a query from directory-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ametys.plugins.cart.QueryElement
getCreationDate, getCreator, getId, getLastContributor, getLastModified, getMediumIcon, getSmallIcon, getTitle
-
Constructor Details
-
QueryFromDirectoryElement
Constructor- Parameters:
query- the query
-
-
Method Details
-
getType
Description copied from interface:CartElementGet the type of element- Specified by:
getTypein interfaceCartElement- Overrides:
getTypein classQueryElement- Returns:
- The type
-
getGroups
Description copied from interface:CartElementGet the label of the groups- Specified by:
getGroupsin interfaceCartElement- Overrides:
getGroupsin classQueryElement- Returns:
- the label of the groups
-
getGlyphIcon
Description copied from interface:CartElementGet glyph icon. If not null, small and medium icon will be ignored- Specified by:
getGlyphIconin interfaceCartElement- Overrides:
getGlyphIconin classQueryElement- Returns:
- the path to small icon
-
getQuery
Get the query from id- Returns:
- the query
-
getDescription
Description copied from interface:CartElementGet the element's description- Specified by:
getDescriptionin interfaceCartElement- Overrides:
getDescriptionin classQueryElement- Returns:
- The description
-
getQueryContent
Description copied from class:QueryElementGet the content of the query- Overrides:
getQueryContentin classQueryElement- Returns:
- the content as a JSON string
-