Package org.ametys.cms.search.solr.field
Class ContentTypeSearchField
- java.lang.Object
-
- org.ametys.cms.search.solr.field.AbstractNoJoinSystemSearchField
-
- org.ametys.cms.search.solr.field.ContentTypeSearchField
-
- All Implemented Interfaces:
SearchField
public class ContentTypeSearchField extends AbstractNoJoinSystemSearchField
Content type search field.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
_includeAll
True to include all hierarchy, false otherwise.static String
NAME
The content types field name.static String
NAME_ALL
The "all content types" field name.
-
Constructor Summary
Constructors Constructor Description ContentTypeSearchField()
Build a content type search field (supertypes excluded).ContentTypeSearchField(boolean includeAll)
Build a content type search field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFacetField()
Get the facet field corresponding to this field.String
getName()
Get the search field name.String
getSortField()
Get the sort field corresponding to this field.-
Methods inherited from class org.ametys.cms.search.solr.field.AbstractNoJoinSystemSearchField
getJoinedPaths, isJoined
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.cms.search.SearchField
getFacetFunction
-
-
-
-
Field Detail
-
NAME
public static final String NAME
The content types field name.- See Also:
- Constant Field Values
-
NAME_ALL
public static final String NAME_ALL
The "all content types" field name.- See Also:
- Constant Field Values
-
_includeAll
protected boolean _includeAll
True to include all hierarchy, false otherwise.
-
-
Constructor Detail
-
ContentTypeSearchField
public ContentTypeSearchField()
Build a content type search field (supertypes excluded).
-
ContentTypeSearchField
public ContentTypeSearchField(boolean includeAll)
Build a content type search field.- Parameters:
includeAll
-true
to include all hierarchy,false
otherwise.
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SearchField
Get the search field name.- Returns:
- The search field name.
-
getSortField
public String getSortField()
Description copied from interface:SearchField
Get the sort field corresponding to this field.- Returns:
- The sort field.
-
getFacetField
public String getFacetField()
Description copied from interface:SearchField
Get the facet field corresponding to this field.- Returns:
- The facet field.
-
-