Class CMISAPI.ChildrenIterator

  • Enclosing class:
    CMISAPI

    protected class CMISAPI.ChildrenIterator
    extends org.exoplatform.services.cms.clouddrives.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.CmisObject>
    Iterator over whole set of items from cloud service. This iterator hides next-chunk logic on request to the service.
    Iterator methods can throw CloudDriveException in case of remote or communication errors.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.CmisObject> children
      Parent's children objects.
      protected String folderId
      The folder id.
      protected org.apache.chemistry.opencmis.client.api.Folder parent
      Parent folder.
      • Fields inherited from class org.exoplatform.services.cms.clouddrives.utils.ChunkIterator

        available, fetched, iter, next
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ChildrenIterator​(String folderId)
      Instantiates a new children iterator.
      protected ChildrenIterator​(org.apache.chemistry.opencmis.client.api.Folder parent)
      Instantiates a new children iterator.
    • Field Detail

      • folderId

        protected final String folderId
        The folder id.
      • parent

        protected org.apache.chemistry.opencmis.client.api.Folder parent
        Parent folder.
      • children

        protected org.apache.chemistry.opencmis.client.api.ItemIterable<org.apache.chemistry.opencmis.client.api.CmisObject> children
        Parent's children objects.
    • Constructor Detail

      • ChildrenIterator

        protected ChildrenIterator​(org.apache.chemistry.opencmis.client.api.Folder parent)
                            throws org.exoplatform.services.cms.clouddrives.CloudDriveException
        Instantiates a new children iterator.
        Parameters:
        parent - the parent
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException - the cloud drive exception
      • ChildrenIterator

        protected ChildrenIterator​(String folderId)
                            throws org.exoplatform.services.cms.clouddrives.CloudDriveException
        Instantiates a new children iterator.
        Parameters:
        folderId - the folder id
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException - the cloud drive exception
    • Method Detail

      • nextChunk

        protected Iterator<org.apache.chemistry.opencmis.client.api.CmisObject> nextChunk()
                                                                                   throws org.exoplatform.services.cms.clouddrives.CloudDriveException
        Specified by:
        nextChunk in class org.exoplatform.services.cms.clouddrives.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.CmisObject>
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
      • hasNextChunk

        protected boolean hasNextChunk()
        Specified by:
        hasNextChunk in class org.exoplatform.services.cms.clouddrives.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.CmisObject>