Package org.exoplatform.clouddrive.cmis
Class CMISAPI.ChildrenIterator
- java.lang.Object
-
- org.exoplatform.services.cms.clouddrives.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.CmisObject>
-
- org.exoplatform.clouddrive.cmis.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 throwCloudDriveExceptionin 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>childrenParent's children objects.protected StringfolderIdThe folder id.protected org.apache.chemistry.opencmis.client.api.FolderparentParent folder.
-
Constructor Summary
Constructors Modifier Constructor Description protectedChildrenIterator(String folderId)Instantiates a new children iterator.protectedChildrenIterator(org.apache.chemistry.opencmis.client.api.Folder parent)Instantiates a new children iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanhasNextChunk()protected Iterator<org.apache.chemistry.opencmis.client.api.CmisObject>nextChunk()
-
-
-
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.CloudDriveExceptionInstantiates 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:
nextChunkin classorg.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:
hasNextChunkin classorg.exoplatform.services.cms.clouddrives.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.CmisObject>
-
-