Class SearchFormMappings
java.lang.Object
org.bonitasoft.engine.search.AbstractSearchEntity<org.bonitasoft.engine.form.FormMapping,SFormMapping>
org.bonitasoft.engine.search.form.SearchFormMappings
- All Implemented Interfaces:
TransactionContent,TransactionContentWithResult<org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.form.FormMapping>>
public class SearchFormMappings
extends AbstractSearchEntity<org.bonitasoft.engine.form.FormMapping,SFormMapping>
- Author:
- Baptiste Mesta
-
Constructor Summary
ConstructorsConstructorDescriptionSearchFormMappings(FormMappingService formMappingService, ProcessDefinitionService processDefinitionService, SearchFormMappingDescriptor searchProfileDescriptor, org.bonitasoft.engine.search.SearchOptions options) -
Method Summary
Modifier and TypeMethodDescriptionList<org.bonitasoft.engine.form.FormMapping>convertToClientObjects(List<SFormMapping> serverObjects) Must convert server objects in client objects herelongexecuteCount(QueryOptions queryOptions) Execute the count hereexecuteSearch(QueryOptions queryOptions) Execute the search hereMethods inherited from class org.bonitasoft.engine.search.AbstractSearchEntity
execute, getResult, getSearchFilter, search, search, validateQuery
-
Constructor Details
-
SearchFormMappings
public SearchFormMappings(FormMappingService formMappingService, ProcessDefinitionService processDefinitionService, SearchFormMappingDescriptor searchProfileDescriptor, org.bonitasoft.engine.search.SearchOptions options)
-
-
Method Details
-
executeCount
Description copied from class:AbstractSearchEntityExecute the count here- Specified by:
executeCountin classAbstractSearchEntity<org.bonitasoft.engine.form.FormMapping,SFormMapping> - Parameters:
queryOptions- The query options to execute the count with- Returns:
- The number of result on the server
- Throws:
SBonitaReadException- when the search failed to retrieve the count number
-
executeSearch
Description copied from class:AbstractSearchEntityExecute the search here- Specified by:
executeSearchin classAbstractSearchEntity<org.bonitasoft.engine.form.FormMapping,SFormMapping> - Parameters:
queryOptions- The query options to execute the search with- Returns:
- The list of searched server objects
- Throws:
SBonitaReadException- when the search failed to retrieve the results
-
convertToClientObjects
public List<org.bonitasoft.engine.form.FormMapping> convertToClientObjects(List<SFormMapping> serverObjects) Description copied from class:AbstractSearchEntityMust convert server objects in client objects here- Specified by:
convertToClientObjectsin classAbstractSearchEntity<org.bonitasoft.engine.form.FormMapping,SFormMapping> - Parameters:
serverObjects- The server object to convert- Returns:
- The list of the client objects corresponding to the server objects
-