public class CollectionVersionImpl extends CollectionImpl
childCountauthorUserName, content, contentModified, createdTime, dataAccessManager, dbBasedContentID, description, directory, id, lastModified, lastUpdaterUserName, matchingSnapshotID, mediaType, name, parentPath, path, pathID, permanentPath, properties, propertiesModified, resourceDAO, snapshotID, state, tenantId, userName, userRealm, uuid, versionableChange, versionNumberALLOW_ALL, ALLOW_SELECTED, DENY_SELECTED| Constructor and Description |
|---|
CollectionVersionImpl()
Default Constructor.
|
CollectionVersionImpl(CollectionVersionImpl collection)
A copy constructor used to create a shallow-copy of this collection.
|
CollectionVersionImpl(String path,
ResourceDO resourceDO)
Constructor a CollectionVersionImpl for a provided path and a resourceDO.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChildCount()
Method to return the the number of children.
|
String[] |
getChildren()
Method to return the absolute paths of the children of the collection.
|
String[] |
getChildren(int start,
int pageLen)
Method to return the paths of the selected range of children.
|
Object |
getContent()
Collection's content is a string array, which contains paths of its children.
|
void |
setDataAccessManager(DataAccessManager dataAccessManager)
Method to set the data access manager.
|
void |
setVersionList(VersionRetriever versionList)
Method to set the version retriever instance.
|
void |
setVersionListIndex(int versionListIndex)
Method to set the index of the current collection in the version list
|
fillCollectionCopy, fixPaths, getShallowCopy, setChildCount, setChildren, setContent, setContentWithNoUpdateaddAspect, addProperty, addPropertyWithNoUpdate, clearSessionInformation, discard, editPropertyValue, fillResourceCopy, getAspects, getAuthorUserName, getContentStream, getCreatedTime, getDbBasedContentID, getDescription, getId, getLastModified, getLastUpdaterUserName, getMatchingSnapshotID, getMediaType, getName, getParentPath, getPath, getPathID, getPermanentPath, getProperties, getProperty, getPropertyValues, getResourceDO, getResourceIDImpl, getSnapshotID, getState, getUUID, getVersionNumber, isContentModified, isPropertiesModified, isVersionableChange, prepareContentForPut, pullContentFromOriginal, removeAspect, removeProperty, removePropertyValue, removePropertyWithNoUpdate, setAuthorUserName, setContentModified, setContentStream, setContentStreamWithNoUpdate, setCreatedTime, setDbBasedContentID, setDescription, setId, setLastModified, setLastUpdaterUserName, setMatchingSnapshotID, setMediaType, setName, setParentPath, setPath, setPathID, setProperties, setPropertiesModified, setPropertiesModifiedWithNoUpdate, setProperty, setProperty, setSessionInformation, setSnapshotID, setState, setTenantId, setUserName, setUserRealm, setUUID, setVersionableChange, setVersionNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAspect, addProperty, discard, editPropertyValue, getAspects, getAuthorUserName, getContentStream, getCreatedTime, getDescription, getId, getLastModified, getLastUpdaterUserName, getMediaType, getParentPath, getPath, getPermanentPath, getProperties, getProperty, getPropertyValues, getState, getUUID, isVersionableChange, removeAspect, removeProperty, removePropertyValue, setContentStream, setDescription, setMediaType, setProperties, setProperty, setProperty, setUUID, setVersionableChangepublic CollectionVersionImpl()
public CollectionVersionImpl(String path, ResourceDO resourceDO)
path - the path of the collection.resourceDO - the resourceDO instance.public CollectionVersionImpl(CollectionVersionImpl collection)
collection - the collection of which the copy is created.public void setDataAccessManager(DataAccessManager dataAccessManager)
ResourceImplsetDataAccessManager in class ResourceImpldataAccessManager - the data access manager.public void setVersionList(VersionRetriever versionList)
versionList - the version retriever.public void setVersionListIndex(int versionListIndex)
versionListIndex - the index of the current collection in the list.public String[] getChildren() throws RegistryException
getChildren in interface org.wso2.carbon.registry.api.CollectiongetChildren in class CollectionImplRegistryException - if the operation fails.public String[] getChildren(int start, int pageLen) throws RegistryException
getChildren in interface org.wso2.carbon.registry.api.CollectiongetChildren in class CollectionImplstart - the starting number of children.pageLen - the number of entries to retrieve.RegistryException - if the operation fails.public int getChildCount()
throws RegistryException
getChildCount in interface org.wso2.carbon.registry.api.CollectiongetChildCount in class CollectionImplRegistryException - if the operation fails.public Object getContent() throws RegistryException
getChildren()
method to get child paths of a collection, which provides pagination. Calling this method
will load all child paths.getContent in interface org.wso2.carbon.registry.api.ResourcegetContent in class CollectionImplRegistryException - On any error.Copyright © 2016 WSO2 Inc. All Rights Reserved.