Package org.ametys.plugins.cart
Class QueryFromDirectoryElement
- java.lang.Object
-
- org.ametys.plugins.cart.QueryElement
-
- org.ametys.plugins.cart.QueryFromDirectoryElement
-
- All Implemented Interfaces:
CartElement
public class QueryFromDirectoryElement extends QueryElement
Implementation of aCartElementwrapping a query from directory
-
-
Constructor Summary
Constructors Constructor Description QueryFromDirectoryElement(Query query)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGlyphIcon()Get glyph icon.List<I18nizableText>getGroups()Get the label of the groupsQuerygetQuery()Get the query from idStringgetType()Get the type of element-
Methods inherited from class org.ametys.plugins.cart.QueryElement
getDescription, getId, getLastContributor, getLastModified, getMediumIcon, getSmallIcon, getTitle
-
-
-
-
Constructor Detail
-
QueryFromDirectoryElement
public QueryFromDirectoryElement(Query query)
Constructor- Parameters:
query- the query
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:CartElementGet the type of element- Specified by:
getTypein interfaceCartElement- Overrides:
getTypein classQueryElement- Returns:
- The type
-
getGroups
public List<I18nizableText> 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
public String 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
-
-