|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.ResourceImpl
org.wso2.carbon.registry.core.CollectionImpl
org.wso2.carbon.registry.core.CollectionVersionImpl
public class CollectionVersionImpl
Implementation of CollectionImpl, Instance of this class is returned when requested for an early version of some collection.
Field Summary |
---|
Fields inherited from class org.wso2.carbon.registry.core.CollectionImpl |
---|
childCount |
Fields inherited from class org.wso2.carbon.registry.core.ResourceImpl |
---|
authorUserName, 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, versionableChange, versionNumber |
Fields inherited from interface org.wso2.carbon.registry.core.Collection |
---|
ALLOW_ALL, ALLOW_SELECTED, DENY_SELECTED |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class org.wso2.carbon.registry.core.CollectionImpl |
---|
fillCollectionCopy, fixPaths, getShallowCopy, setChildCount, setChildren, setContent, setContentWithNoUpdate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.wso2.carbon.registry.core.Resource |
---|
addAspect, addProperty, discard, editPropertyValue, getAspects, getAuthorUserName, getContentStream, getCreatedTime, getDescription, getId, getLastModified, getLastUpdaterUserName, getMediaType, getParentPath, getPath, getPermanentPath, getProperties, getProperty, getPropertyValues, getState, isVersionableChange, removeAspect, removeProperty, removePropertyValue, setContentStream, setDescription, setMediaType, setProperties, setProperty, setProperty, setVersionableChange |
Constructor Detail |
---|
public 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.Method Detail |
---|
public void setDataAccessManager(DataAccessManager dataAccessManager)
ResourceImpl
setDataAccessManager
in class ResourceImpl
dataAccessManager
- 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.Collection
getChildren
in class CollectionImpl
RegistryException
- if the operation fails.public String[] getChildren(int start, int pageLen) throws RegistryException
getChildren
in interface org.wso2.carbon.registry.api.Collection
getChildren
in class CollectionImpl
start
- 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.Collection
getChildCount
in class CollectionImpl
RegistryException
- 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.Resource
getContent
in class CollectionImpl
RegistryException
- On any error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |