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 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

      void setName(String name)
      Sets the name of the directory.
      Parameters:
      name - The new name.
      Since:
      3.0
    • setAncestorDirectory

      void setAncestorDirectory(MTDirectory directory)
      Sets the parent directory.
      Parameters:
      directory - The MTDirectory to use as parent.
      Since:
      3.0
    • setAncestorDirectoryId

      void setAncestorDirectoryId(Long directoryId)
      Sets the parent directory.
      Parameters:
      directoryId - The id for the directory to use as parent.
      Since:
      3.0
    • save

      void save() throws MTAccessException
      Saves changes to the directory.
      Throws:
      MTAccessException
      Since:
      3.0
    • remove

      void remove()
      Removes the directory completely.