Class SearchApplicationsOfUser<E extends org.bonitasoft.engine.business.application.IApplication>
java.lang.Object
org.bonitasoft.engine.search.AbstractSearchEntity<E,SApplication>
org.bonitasoft.engine.api.impl.transaction.application.SearchApplicationsOfUser<E>
- All Implemented Interfaces:
TransactionContent,TransactionContentWithResult<org.bonitasoft.engine.search.SearchResult<E>>
public class SearchApplicationsOfUser<E extends org.bonitasoft.engine.business.application.IApplication>
extends AbstractSearchEntity<E,SApplication>
-
Constructor Summary
ConstructorsConstructorDescriptionSearchApplicationsOfUser(Class<E> applicationClass, long userId, ApplicationService applicationService, SearchEntityDescriptor searchDescriptor, org.bonitasoft.engine.search.SearchOptions options, ApplicationModelConverter convertor) -
Method Summary
Modifier and TypeMethodDescriptionconvertToClientObjects(List<SApplication> serverObjects) Must convert server objects in client objects herestatic SearchApplicationsOfUser<org.bonitasoft.engine.business.application.IApplication>defaultSearchApplicationsOfUser(long userId, ApplicationService applicationService, SearchEntityDescriptor searchDescriptor, org.bonitasoft.engine.search.SearchOptions options, ApplicationModelConverter convertor) longexecuteCount(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
-
SearchApplicationsOfUser
public SearchApplicationsOfUser(Class<E> applicationClass, long userId, ApplicationService applicationService, SearchEntityDescriptor searchDescriptor, org.bonitasoft.engine.search.SearchOptions options, ApplicationModelConverter convertor)
-
-
Method Details
-
defaultSearchApplicationsOfUser
public static SearchApplicationsOfUser<org.bonitasoft.engine.business.application.IApplication> defaultSearchApplicationsOfUser(long userId, ApplicationService applicationService, SearchEntityDescriptor searchDescriptor, org.bonitasoft.engine.search.SearchOptions options, ApplicationModelConverter convertor) -
executeCount
Description copied from class:AbstractSearchEntityExecute the count here- Specified by:
executeCountin classAbstractSearchEntity<E extends org.bonitasoft.engine.business.application.IApplication,SApplication> - 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<E extends org.bonitasoft.engine.business.application.IApplication,SApplication> - 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
Description copied from class:AbstractSearchEntityMust convert server objects in client objects here- Specified by:
convertToClientObjectsin classAbstractSearchEntity<E extends org.bonitasoft.engine.business.application.IApplication,SApplication> - Parameters:
serverObjects- The server object to convert- Returns:
- The list of the client objects corresponding to the server objects
-