Interface SmartCollection

  • All Superinterfaces:
    ResourceCollection

    public interface SmartCollection
    extends ResourceCollection
    This interface defines a SmartCollection. Should be used, when working with Smart Collections i.e. collection with no static member, rather a query string.
    • Method Detail

      • getQuery

        Query getQuery()
                throws java.io.IOException,
                       RepositoryException
        returns the query object that is used to query collection members.
        Returns:
        Query object
        Throws:
        java.io.IOException - thrown if an error occurs while reading from the binary stream
        RepositoryException - thrown if an error occurs while accessing items in repository
      • getResources

        java.util.Iterator<Resource> getResources​(long offset,
                                                  long limit)
        Returns an iterator over resources referred in the collection starting from position specified by the parameter "offset". The size of the iterator is limited by the parameter "limit".
        Returns:
        iterator over the subset of resources referred in collection.