Package net.sf.basedb.core.data
Class DirectoryData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.OwnedData
net.sf.basedb.core.data.SharedData
net.sf.basedb.core.data.CommonData
net.sf.basedb.core.data.DirectoryData
- All Implemented Interfaces:
IdentifiableData
,NameableData
,OwnableData
,RemovableData
,ShareableData
,SystemData
This class holds information about directories.
- Version:
- 2.0
- Author:
- enell
- See Also:
- Last modified
- $Date: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
- Hibernate: class
- table="`Directories`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private DirectoryData
private Set<DirectoryData>
private String
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Fields inherited from interface net.sf.basedb.core.data.SystemData
MAX_SYSTEM_ID_LENGTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
If files that are uploaded to this directory be compressed or not.boolean
If new files and subdirectories should inherit the share permission on this directory or not.getFiles()
This is the inverse end.getName()
Get the name of the item.Get the parent directory of this directory.(package private) Set<DirectoryData>
This is the inverse end.Get the system id for the item.void
setAutoCompress
(boolean autoCompress) void
setAutoShare
(boolean autoShare) (package private) void
void
setParent
(DirectoryData parent) (package private) void
setSubdirectories
(Set<DirectoryData> subdirectories) void
setSystemId
(String systemId) Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getRemovedBy, setDescription, setName, setRemovedBy
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
-
Field Details
-
systemId
-
parent
-
autoCompress
private boolean autoCompress -
files
-
subdirectories
-
-
Constructor Details
-
DirectoryData
public DirectoryData()
-
-
Method Details
-
getName
Get the name of the item.- Specified by:
getName
in interfaceNameableData
- Overrides:
getName
in classCommonData
- 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
Description copied from interface:SystemData
Get the system id for the item.- Specified by:
getSystemId
in interfaceSystemData
- Returns:
- The id of the item or null
-
setSystemId
-
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"
-
setParent
-
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) -
getFiles
This is the inverse end.- See Also:
- Hibernate: set
- lazy="true" inverse="true"
- Hibernate: collection-key
- column="`directory_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.FileData"
-
setFiles
-
getSubdirectories
Set<DirectoryData> getSubdirectories()This is the inverse end.- See Also:
- 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
-