C - The client objectS - The server objectpublic abstract class AbstractGetEntity<C extends java.io.Serializable,S extends PersistentObject> extends java.lang.Object implements TransactionContentWithResult<java.util.List<C>>
| Constructor and Description |
|---|
AbstractGetEntity(SearchEntityDescriptor searchDescriptor,
int fromIndex,
int numberOfResults,
org.bonitasoft.engine.search.Sort sort) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<C> |
convertToClientObjects(java.util.List<S> serverObjects)
Must convert server objects in client objects here
|
void |
execute() |
abstract java.util.List<S> |
executeGet(QueryOptions queryOptions)
Execute the search here
|
java.util.List<C> |
getResult() |
public AbstractGetEntity(SearchEntityDescriptor searchDescriptor, int fromIndex, int numberOfResults, org.bonitasoft.engine.search.Sort sort)
searchDescriptor - The descriptor corresponding to the searched objectfromIndex - The specified position to begin the searchnumberOfResults - The number of elements to returnsort - How to sort the resultpublic void execute()
throws SBonitaException
execute in interface TransactionContentSBonitaExceptionpublic abstract java.util.List<S> executeGet(QueryOptions queryOptions) throws SBonitaException
queryOptions - The query options to execute the search withSBonitaExceptionpublic abstract java.util.List<C> convertToClientObjects(java.util.List<S> serverObjects)
serverObjects - The server object to convertpublic java.util.List<C> getResult()
getResult in interface TransactionContentWithResult<java.util.List<C extends java.io.Serializable>>