|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Directory
Interface that must be implemented by classes which represent directories, that is resources, which can contain other directories and nodes.
Method Summary | |
---|---|
java.util.List<Directory> |
getDirectories()
Gets a list of directories that are contained in this directory. |
Directory |
getDirectory(java.lang.String name)
Gets a node from the given directory with the given name. |
Node |
getNode(java.lang.String name)
Gets a node from the given directory with the given name. |
NodeList |
getNodes()
Gets a list of nodes that are contained in this directory. |
boolean |
hasIndex(java.lang.String propertyName)
Checks if an index is created on the given property. |
Directory |
newDirectory(java.lang.String name)
Creates a new directory in this directory. |
Node |
newNode(java.lang.String name)
Creates and returns a new node in this directory. |
void |
setIndex(java.lang.String propertyName,
boolean index)
Creates or deletes an index on a property. |
Methods inherited from interface org.jboss.shotoku.Resource |
---|
copyTo, delete, deleteProperty, getContentManager, getFullName, getLastModification, getLastModificationDate, getName, getParent, getProperties, getProperty, hasModifications, moveTo, save, setProperty |
Method Detail |
---|
NodeList getNodes() throws RepositoryException
RepositoryException
java.util.List<Directory> getDirectories() throws RepositoryException
RepositoryException
Node getNode(java.lang.String name) throws RepositoryException, ResourceDoesNotExist
/
, which just mean getting the node from some
subdirectory.
RepositoryException
ResourceDoesNotExist
Directory getDirectory(java.lang.String name) throws RepositoryException, ResourceDoesNotExist
/
, which just mean getting the directory from
some subdirectory.
RepositoryException
ResourceDoesNotExist
Node newNode(java.lang.String name) throws ResourceAlreadyExists, NameFormatException, RepositoryException
getNode(String)
, the name can contain /
.
In such a case, new directories will be created if need be.
name
- Name of the new node. It cannot contain spaces.
ResourceAlreadyExists
NameFormatException
RepositoryException
Directory newDirectory(java.lang.String name) throws ResourceAlreadyExists, NameFormatException, RepositoryException
getDirectory(String)
, the name can contain /
.
In such a case, new directories will be created if need be.
name
- Name of the directory to create. It cannot contain spaces.
ResourceAlreadyExists
NameFormatException
RepositoryException
boolean hasIndex(java.lang.String propertyName) throws RepositoryException
propertyName
- Name of the property for which to check the index.
RepositoryException
void setIndex(java.lang.String propertyName, boolean index) throws RepositoryException
propertyName
- Name of the property for which to create/ delete an index.index
- True if and index should be created, false in an index should
be deleted.
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |