Class DirectoryData

    • Constructor Detail

      • DirectoryData

        public DirectoryData()
    • Method Detail

      • getName

        public String getName()
        Get the name of the item.
        Specified by:
        getName in interface NameableData
        Overrides:
        getName in class CommonData
        Returns:
        A String with the name of the item
        Hibernate: property
        type="string"
        Hibernate: column
        name="`name`" length="255" not-null="true" index="name_idx" unique-key="Directory_uniquedirectory"
      • getSystemId

        public String getSystemId()
        Description copied from interface: SystemData
        Get the system id for the item.
        Specified by:
        getSystemId in interface SystemData
        Returns:
        The id of the item or null
      • setSystemId

        public void setSystemId​(String systemId)
      • getParent

        public DirectoryData getParent()
        Get the parent directory of this directory.
        Hibernate: column
        name="`parent_id`" unique-key="Directory_uniquedirectory" not-null="false"
        Hibernate: many-to-one
        outer-join="false"
      • getAutoCompress

        public boolean getAutoCompress()
        If files that are uploaded to this directory be compressed or not.
        Since:
        2.5
        Hibernate: property
        column="`auto_compress`" type="boolean" not-null="true"
      • setAutoCompress

        public void setAutoCompress​(boolean autoCompress)
      • getAutoShare

        public boolean getAutoShare()
        If new files and subdirectories should inherit the share permission on this directory or not.
        Since:
        2.8
        Hibernate: property
        column="`auto_share`" type="boolean" not-null="true"
      • setAutoShare

        public void setAutoShare​(boolean autoShare)
      • getFiles

        Set<FileData> getFiles()
        This is the inverse end.
        See Also:
        FileData.getDirectory()
        Hibernate: set
        lazy="true" inverse="true"
        Hibernate: collection-key
        column="`directory_id`"
        Hibernate: collection-one-to-many
        class="net.sf.basedb.core.data.FileData"
      • getSubdirectories

        Set<DirectoryData> getSubdirectories()
        This is the inverse end.
        See Also:
        getParent()
        Hibernate: set
        lazy="true" inverse="true"
        Hibernate: collection-key
        column="`parent_id`"
        Hibernate: collection-one-to-many
        class="net.sf.basedb.core.data.DirectoryData"
      • setSubdirectories

        void setSubdirectories​(Set<DirectoryData> subdirectories)