public interface RepositoryDirectoryInterface extends RepositoryObjectInterface
Modifier and Type | Method and Description |
---|---|
void |
addSubdirectory(RepositoryDirectoryInterface subdir)
Add a subdirectory to this directory.
|
void |
clear() |
RepositoryDirectoryInterface |
findChild(String name) |
RepositoryDirectoryInterface |
findDirectory(ObjectId id_directory)
Find the sub-directory with a certain ID
|
RepositoryDirectoryInterface |
findDirectory(String path)
Find a directory using the path to the directory with file.separator between the dir-names.
|
RepositoryDirectoryInterface |
findDirectory(String[] path)
Find the directory by following the path of strings
|
RepositoryDirectoryInterface |
findRoot()
Find the root of the directory tree starting from this directory.
|
List<RepositoryDirectoryInterface> |
getChildren()
Returns a list of child directories
|
ObjectId[] |
getDirectoryIDs() |
int |
getNrSubdirectories()
Counts the number of subdirectories in this directory.
|
RepositoryDirectoryInterface |
getParent()
get the parent directory for this directory.
|
String |
getPath()
Describe the complete path to ( and including) this directory, separated by the
RepositoryDirectory.DIRECTORY_SEPARATOR property (slash).
|
String[] |
getPathArray() |
String |
getPathObjectCombination(String transName) |
List<RepositoryElementMetaInterface> |
getRepositoryObjects()
Returns a list of child files
|
RepositoryDirectory |
getSubdirectory(int i)
Get a subdirectory on a certain position.
|
boolean |
isRoot()
Check whether or not this is the root of the directory trees.
|
boolean |
isVisible()
If true, this directory should be shown in UIs.
|
void |
setChildren(List<RepositoryDirectoryInterface> children)
sets the list of child directories
|
void |
setName(String directoryname)
Set the directory name (rename)
|
void |
setObjectId(ObjectId id)
Set the database ID for this object in the repository.
|
void |
setParent(RepositoryDirectoryInterface parent)
Change the parent of this directory.
|
void |
setRepositoryObjects(List<RepositoryElementMetaInterface> children)
sets the list of child files
|
getName, getObjectId
List<RepositoryDirectoryInterface> getChildren()
void setChildren(List<RepositoryDirectoryInterface> children)
children
- list of child directoriesList<RepositoryElementMetaInterface> getRepositoryObjects()
void setRepositoryObjects(List<RepositoryElementMetaInterface> children)
children
- list of child filesboolean isVisible()
String[] getPathArray()
RepositoryDirectoryInterface findDirectory(String path)
path
- The path to the directoryRepositoryDirectoryInterface findDirectory(ObjectId id_directory)
id_directory
- the directory ID to look for.RepositoryDirectoryInterface findDirectory(String[] path)
path
- The path to the directory we're looking for.ObjectId[] getDirectoryIDs()
String getPath()
int getNrSubdirectories()
RepositoryDirectory getSubdirectory(int i)
i
- The subdirectory positionboolean isRoot()
RepositoryDirectoryInterface findRoot()
void clear()
void addSubdirectory(RepositoryDirectoryInterface subdir)
subdir
- The subdirectory to add.void setParent(RepositoryDirectoryInterface parent)
parent
- The new parent of this directory.RepositoryDirectoryInterface getParent()
void setObjectId(ObjectId id)
id
- the database ID for this object in the repository.void setName(String directoryname)
directoryname
- The new directory nameRepositoryDirectoryInterface findChild(String name)