Class AbstractGetEntity<C extends java.io.Serializable,​S extends PersistentObject>

    • Constructor Detail

      • AbstractGetEntity

        public AbstractGetEntity​(SearchEntityDescriptor searchDescriptor,
                                 int fromIndex,
                                 int numberOfResults,
                                 org.bonitasoft.engine.search.Sort sort)
        Parameters:
        searchDescriptor - The descriptor corresponding to the searched object
        fromIndex - The specified position to begin the search
        numberOfResults - The number of elements to return
        sort - How to sort the result
    • Method Detail

      • executeGet

        public abstract java.util.List<S> executeGet​(QueryOptions queryOptions)
                                              throws SBonitaException
        Execute the search here
        Parameters:
        queryOptions - The query options to execute the search with
        Returns:
        The searched result
        Throws:
        SBonitaException
      • convertToClientObjects

        public abstract java.util.List<C> convertToClientObjects​(java.util.List<S> serverObjects)
        Must convert server objects in client objects here
        Parameters:
        serverObjects - The server object to convert
        Returns:
        The list of the client objects