Class ODFSearchHelper
- java.lang.Object
-
- org.ametys.plugins.odfweb.service.search.ODFSearchHelper
-
- All Implemented Interfaces:
Component
,Serviceable
public class ODFSearchHelper extends Object implements Serviceable, Component
A helper for ODF search
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeExtensionPoint
_cTypeEP
The content type extension pointstatic String
ROLE
The avalon role.
-
Constructor Summary
Constructors Constructor Description ODFSearchHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPathFromSearchFieldId(String fieldId)
Get the path of the search fieldboolean
isCriterionOnBothProgramAndSubProgram(SearchCriterionDefinition criterion)
True if the criterion match with program and subprogramboolean
isFacetOnBothProgramAndSubProgram(FacetDefinition facet)
True if the facet match with program and subprogramvoid
service(ServiceManager manager)
-
-
-
Field Detail
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
The content type extension point
-
-
Constructor Detail
-
ODFSearchHelper
public ODFSearchHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
isCriterionOnBothProgramAndSubProgram
public boolean isCriterionOnBothProgramAndSubProgram(SearchCriterionDefinition criterion)
True if the criterion match with program and subprogram- Parameters:
criterion
- the criterion- Returns:
true
if the criterion match with program and subprogram
-
isFacetOnBothProgramAndSubProgram
public boolean isFacetOnBothProgramAndSubProgram(FacetDefinition facet)
True if the facet match with program and subprogram- Parameters:
facet
- the criterion- Returns:
true
if the facet match with program and subprogram
-
getPathFromSearchFieldId
public String getPathFromSearchFieldId(String fieldId)
Get the path of the search field- Parameters:
fieldId
- the field id- Returns:
- the path of the search field
-
-