Package com.groiss.dms
Interface DMSFolder
- All Superinterfaces:
DMSObject
,HasOwner
,HasPermissionList
,KeyValuePair<String,
,String> OptimisticLocking
,Persistent
,Serializable
- All Known Subinterfaces:
DMSFolderForm
This interface represents a folder containing DMSObjects.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Determines the character which is used to separate folders within a path string.Fields inherited from interface com.groiss.store.Persistent
emptyKeys
-
Method Summary
Modifier and TypeMethodDescriptionAdds the passed object to its contentaddAll
(Collection<? extends DMSObject> v) Adds all the objects of the passed collection to its contentboolean
Returns true if objects which are added to this folder should inherit the folders ACL, otherwise false is returnedvoid
bequestACL
(boolean bequest) Sets if objects which are added to this folder should inherit the folders ACL.void
clear()
Removes the whole content of this folderboolean
Returns true if the passed object is an element of this folder, false otherwise.Returns the organizational unit to which this folder belongs toReturns the parent of this folder.Returns the path to the root as a stringReturns the process to which this folder may belong to (directly or indirectly)boolean
isEmpty()
Returns true if this folder is empty, false otherwiseReturns a list holding the whole content of this folder.boolean
Removes the passed object from this folderboolean
Removes all the objects in the collection from the foldervoid
setOrgUnit
(OrgUnit ou) Sets the organizational unit to which this folder belongs tovoid
setProcessContext
(ProcessInstance process) Sets the process to which this folder may belong to (directly or indirectly)int
size()
Returns the number of elements in this folder.Methods inherited from interface com.groiss.dms.DMSObject
attachNote, getChangedAt, getChangedBy, getCreatedAt, getCreatedBy, getName, getTypeName, hasAttachedNotes, hasVersions, listAttachedNotes, listVersions, makeCopy, makeVersion, removeNote, setName
Methods inherited from interface com.groiss.org.HasPermissionList
getDefaultOrgUnit, getPermissionList, setPermissionList
Methods inherited from interface com.groiss.store.OptimisticLocking
getTransactionId, increaseTransactionId, setTransactionId
Methods inherited from interface com.groiss.store.Persistent
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getTableName, getValue, isFilled, isValid, setFilled, setOid, setOid, toListString
-
Field Details
-
PATH_SEPARATOR
Determines the character which is used to separate folders within a path string.- See Also:
-
-
Method Details
-
add
Adds the passed object to its content- Parameters:
o
- the object to be added- Returns:
- the added object
-
addAll
Adds all the objects of the passed collection to its content- Parameters:
v
- the collection holding the objects to be added- Returns:
- the collection of added objects
-
clear
void clear()Removes the whole content of this folder -
contains
Returns true if the passed object is an element of this folder, false otherwise. -
listContents
Returns a list holding the whole content of this folder. -
isEmpty
boolean isEmpty()Returns true if this folder is empty, false otherwise -
remove
Removes the passed object from this folder- Returns:
- true if this collection changed as a result of the call
-
removeAll
Removes all the objects in the collection from the folder- Returns:
- true if this collection changed as a result of the call
-
size
int size()Returns the number of elements in this folder. -
getOrgUnit
OrgUnit getOrgUnit()Returns the organizational unit to which this folder belongs to -
setOrgUnit
Sets the organizational unit to which this folder belongs to -
getProcessContext
ProcessInstance getProcessContext()Returns the process to which this folder may belong to (directly or indirectly) -
setProcessContext
Sets the process to which this folder may belong to (directly or indirectly) -
getPathToRoot
String getPathToRoot()Returns the path to the root as a string -
getParentFolder
DMSFolder getParentFolder()Returns the parent of this folder. If the folder has no parent null is returned. -
bequestACL
boolean bequestACL()Returns true if objects which are added to this folder should inherit the folders ACL, otherwise false is returned -
bequestACL
void bequestACL(boolean bequest) Sets if objects which are added to this folder should inherit the folders ACL.
-