Class SearchFlowNodeInstanceSupervisedBy
- java.lang.Object
-
- org.bonitasoft.engine.search.AbstractSearchEntity<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance,SFlowNodeInstance>
-
- org.bonitasoft.engine.search.supervisor.SearchFlowNodeInstanceSupervisedBy
-
- All Implemented Interfaces:
TransactionContent,TransactionContentWithResult<org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance>>
public class SearchFlowNodeInstanceSupervisedBy extends AbstractSearchEntity<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance,SFlowNodeInstance>
- Author:
- Celine Souchet
-
-
Constructor Summary
Constructors Constructor Description SearchFlowNodeInstanceSupervisedBy(java.lang.Long supervisorId, FlowNodeInstanceService flowNodeInstanceService, FlowNodeStateManager flowNodeStateManager, SearchEntityDescriptor searchDescriptor, org.bonitasoft.engine.search.SearchOptions searchOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance>convertToClientObjects(java.util.List<SFlowNodeInstance> serverObjects)Must convert server objects in client objects herelongexecuteCount(QueryOptions searchOptions)Execute the count herejava.util.List<SFlowNodeInstance>executeSearch(QueryOptions searchOptions)Execute the search here-
Methods inherited from class org.bonitasoft.engine.search.AbstractSearchEntity
execute, getResult, getSearchFilter, search, search, validateQuery
-
-
-
-
Constructor Detail
-
SearchFlowNodeInstanceSupervisedBy
public SearchFlowNodeInstanceSupervisedBy(java.lang.Long supervisorId, FlowNodeInstanceService flowNodeInstanceService, FlowNodeStateManager flowNodeStateManager, SearchEntityDescriptor searchDescriptor, org.bonitasoft.engine.search.SearchOptions searchOptions)
-
-
Method Detail
-
executeCount
public long executeCount(QueryOptions searchOptions) throws SBonitaReadException
Description copied from class:AbstractSearchEntityExecute the count here- Specified by:
executeCountin classAbstractSearchEntity<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance,SFlowNodeInstance>- Parameters:
searchOptions- 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
public java.util.List<SFlowNodeInstance> executeSearch(QueryOptions searchOptions) throws SBonitaReadException
Description copied from class:AbstractSearchEntityExecute the search here- Specified by:
executeSearchin classAbstractSearchEntity<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance,SFlowNodeInstance>- Parameters:
searchOptions- 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 java.util.List<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance> convertToClientObjects(java.util.List<SFlowNodeInstance> serverObjects)
Description copied from class:AbstractSearchEntityMust convert server objects in client objects here- Specified by:
convertToClientObjectsin classAbstractSearchEntity<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance,SFlowNodeInstance>- Parameters:
serverObjects- The server object to convert- Returns:
- The list of the client objects corresponding to the server objects
-
-