Package com.groiss.dms
Interface DMSObject
- All Superinterfaces:
HasOwner
,HasPermissionList
,KeyValuePair<String,
,String> OptimisticLocking
,Persistent
,Serializable
- All Known Subinterfaces:
DMSDocForm
,DMSFolder
,DMSFolderForm
,DMSForm
,DMSLink
,DMSNote
,DMSWebLink
-
Field Summary
Fields inherited from interface com.groiss.store.Persistent
emptyKeys
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachNote
(DMSNote note, User user) Attaches the passed note to this objectReturns the date of the last modification of this object.Returns the user who made the last modification of this object.Returns the date when this object was createdReturns the user who created this objectgetName()
Returns the name of this object.Returns a string representing the type of this object.boolean
hasAttachedNotes
(User user) Returns if there are any notes attached to this document which are visible to the passed user.boolean
Returns if this form has at least one version.listAttachedNotes
(User user) Returns a list of the attached notes of this object on which the passed user has the right to view them.Returns the versions of this form in descending order of their creation dateReturns a copy of this object.makeVersion
(User user, String description) Makes a version of this object with the passed string as version descriptionvoid
removeNote
(DMSNote note, User user) Removes the passed note from this objectvoid
Sets the name of this object to passed string.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
-
Method Details
-
getName
String getName()Returns the name of this object. -
setName
Sets the name of this object to passed string.- Parameters:
name
- the new name
-
getCreatedAt
Date getCreatedAt()Returns the date when this object was created -
getCreatedBy
User getCreatedBy()Returns the user who created this object -
getChangedAt
Date getChangedAt()Returns the date of the last modification of this object. -
getChangedBy
User getChangedBy()Returns the user who made the last modification of this object. -
getTypeName
String getTypeName()Returns a string representing the type of this object. -
makeCopy
Returns a copy of this object.- Parameters:
user
- the user who wants to make the copy.
-
makeVersion
Makes a version of this object with the passed string as version description- Parameters:
user
- the user who wants to make the versiondescription
- the description text for this version
-
listVersions
List<PersistentVersion> listVersions()Returns the versions of this form in descending order of their creation date- Returns:
- a list of
PersistentVersion
objects.
-
hasVersions
boolean hasVersions()Returns if this form has at least one version. -
attachNote
Attaches the passed note to this object- Parameters:
note
- the note to be attacheduser
- the user who wants to attach the note
-
removeNote
Removes the passed note from this object- Parameters:
note
- the note to be removeduser
- the user who wants to remove the note
-
listAttachedNotes
Returns a list of the attached notes of this object on which the passed user has the right to view them. If user is null all notes are returned- Parameters:
user
- the user who requests the attached notes
-
hasAttachedNotes
Returns if there are any notes attached to this document which are visible to the passed user. If user is null it returns true if at least one note is attached (false otherwise).- Parameters:
user
- the user for whom this request is performed
-