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 aCartElement
wrapping 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 String
getGlyphIcon()
Get glyph icon.List<I18nizableText>
getGroups()
Get the label of the groupsQuery
getQuery()
Get the query from idString
getType()
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:CartElement
Get the type of element- Specified by:
getType
in interfaceCartElement
- Overrides:
getType
in classQueryElement
- Returns:
- The type
-
getGroups
public List<I18nizableText> getGroups()
Description copied from interface:CartElement
Get the label of the groups- Specified by:
getGroups
in interfaceCartElement
- Overrides:
getGroups
in classQueryElement
- Returns:
- the label of the groups
-
getGlyphIcon
public String getGlyphIcon()
Description copied from interface:CartElement
Get glyph icon. If not null, small and medium icon will be ignored- Specified by:
getGlyphIcon
in interfaceCartElement
- Overrides:
getGlyphIcon
in classQueryElement
- Returns:
- the path to small icon
-
-