Package se.conciliate.extensions.store
Interface MTDirectory
public interface MTDirectory
Full interface for directories. A directory is a holder for one or more directories and repositories.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the parent directory for the directory.long
getID()
Returns the ID of the directory.getName()
Returns the name of the directory.getUUID()
Returns this directory's unique identifier.void
remove()
Removes the directory completely.void
save()
Saves changes to the directory.void
setAncestorDirectory
(MTDirectory directory) Sets the parent directory.void
setAncestorDirectoryId
(Long directoryId) Sets the parent directory.void
Sets the name of the directory.
-
Method Details
-
getID
long getID()Returns the ID of the directory.- Returns:
- The ID of the directory.
- Since:
- 3.0
-
getName
String getName()Returns the name of the directory.- Returns:
- The directory name.
- Since:
- 3.0
-
getUUID
String getUUID()Returns this directory's unique identifier.- Returns:
- This directory's unique identifier.
- Since:
- 3.0
-
getAncestorDirectoryId
Long getAncestorDirectoryId()Returns the parent directory for the directory.- Returns:
- The parent directory.
- Since:
- 3.0
-
setName
Sets the name of the directory.- Parameters:
name
- The new name.- Since:
- 3.0
-
setAncestorDirectory
Sets the parent directory.- Parameters:
directory
- The MTDirectory to use as parent.- Since:
- 3.0
-
setAncestorDirectoryId
Sets the parent directory.- Parameters:
directoryId
- The id for the directory to use as parent.- Since:
- 3.0
-
save
Saves changes to the directory.- Throws:
MTAccessException
- Since:
- 3.0
-
remove
void remove()Removes the directory completely.
-