Interface SmartCollection

  • All Superinterfaces:

    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 IOException,
        returns the query object that is used to query collection members.
        Query object
        IOException - thrown if an error occurs while reading from the binary stream
        RepositoryException - thrown if an error occurs while accessing items in repository
      • getResources

        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".
        iterator over the subset of resources referred in collection.