org.wso2.registry
Class CollectionVersionImpl

java.lang.Object
  extended by org.wso2.registry.ResourceImpl
      extended by org.wso2.registry.CollectionImpl
          extended by org.wso2.registry.CollectionVersionImpl
All Implemented Interfaces:
Collection, Resource

public class CollectionVersionImpl
extends CollectionImpl


Field Summary
 
Fields inherited from class org.wso2.registry.CollectionImpl
childCount
 
Fields inherited from class org.wso2.registry.ResourceImpl
authorUserName, content, contentID, contentModified, contentStream, createdTime, dataSource, description, directory, id, lastModified, lastUpdaterUserName, matchingSnapshotID, mediaType, parentPath, path, permanentPath, properties, propertiesModified, resourceDAO, snapshotID, state, versionableChange, versionNumber
 
Constructor Summary
CollectionVersionImpl()
           
 
Method Summary
 int getChildCount()
           
 java.lang.String[] getChildren()
           
 java.lang.String[] getChildren(int start, int pageLen)
           
 java.lang.Object getContent()
          Collection's content is a string array, which contains paths of its children.
 
Methods inherited from class org.wso2.registry.CollectionImpl
getChildResources, setChildCount, setContent
 
Methods inherited from class org.wso2.registry.ResourceImpl
addAspect, addProperty, editPropertyValue, getAspects, getAuthorUserName, getContentID, getContentStream, getCreatedTime, getDescription, getId, getLastModified, getLastUpdaterUserName, getMatchingSnapshotID, getMediaType, getParentPath, getPath, getPermanentPath, getProperties, getProperty, getPropertyValues, getSnapshotID, getState, getVersionNumber, isContentModified, isPropertiesModified, isVersionableChange, removeAspect, removeProperty, removePropertyValue, setAuthorUserName, setContentID, setContentModified, setContentStream, setCreatedTime, setDataSource, setDescription, setId, setLastModified, setLastUpdaterUserName, setMatchingSnapshotID, setMediaType, setParentPath, setPath, setProperties, setPropertiesModified, setProperty, setProperty, setSnapshotID, setState, setVersionableChange, setVersionNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wso2.registry.Resource
addAspect, addProperty, editPropertyValue, getAspects, getAuthorUserName, getContentStream, getCreatedTime, getDescription, getId, getLastModified, getLastUpdaterUserName, getMediaType, getParentPath, getPath, getPermanentPath, getProperties, getProperty, getPropertyValues, getState, removeAspect, removeProperty, removePropertyValue, setContentStream, setDescription, setMediaType, setProperties, setProperty, setProperty
 

Constructor Detail

CollectionVersionImpl

public CollectionVersionImpl()
Method Detail

getChildren

public java.lang.String[] getChildren()
                               throws RegistryException
Specified by:
getChildren in interface Collection
Overrides:
getChildren in class CollectionImpl
Throws:
RegistryException

getChildren

public java.lang.String[] getChildren(int start,
                                      int pageLen)
                               throws RegistryException
Specified by:
getChildren in interface Collection
Overrides:
getChildren in class CollectionImpl
Throws:
RegistryException

getChildCount

public int getChildCount()
                  throws RegistryException
Specified by:
getChildCount in interface Collection
Overrides:
getChildCount in class CollectionImpl
Throws:
RegistryException

getContent

public java.lang.Object getContent()
                            throws RegistryException
Collection's content is a string array, which contains paths of its children. These paths are loaded on demand to increase performance. It is recommended to use getChildren(...) method to get child paths of a collection, which provides pagination. Calling this method will load all child paths.

Specified by:
getContent in interface Resource
Overrides:
getContent in class CollectionImpl
Returns:
String array of child paths.
Throws:
RegistryException - On any error.


Copyright © 2007 Apache Web Services Project. All Rights Reserved.