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_cTypeEPThe content type extension pointstatic StringROLEThe avalon role. 
- 
Constructor Summary
Constructors Constructor Description ODFSearchHelper() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPathFromSearchFieldId(String fieldId)Get the path of the search fieldbooleanisCriterionOnBothProgramAndSubProgram(SearchCriterionDefinition criterion)True if the criterion match with program and subprogrambooleanisFacetOnBothProgramAndSubProgram(FacetDefinition facet)True if the facet match with program and subprogramvoidservice(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:
 servicein interfaceServiceable- Throws:
 ServiceException
 
- 
isCriterionOnBothProgramAndSubProgram
public boolean isCriterionOnBothProgramAndSubProgram(SearchCriterionDefinition criterion)
True if the criterion match with program and subprogram- Parameters:
 criterion- the criterion- Returns:
 trueif 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:
 trueif 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
 
 
 - 
 
 -