public interface RemoteDMS
extends java.rmi.Remote
Modifier and Type | Field and Description |
---|---|
static short |
COPY
Determines that a DMSObject should be copied from one folder to another
|
static char[] |
invalidChars
holds the charactes which are not allowed within the name of a DMSObject
|
static short |
LINK
Determines that a link to a DMSObject should be created
|
static short |
MOVE
Determines that a DMSObject should be moved from one folder to another
|
Modifier and Type | Method and Description |
---|---|
<P extends DMSObject> |
add(DMSFolder f,
P o)
Adds an Object to a folder.
|
void |
addKeyword(DMSObject obj,
Keyword keyword)
Adds the passed keyword to the passed DMSObject
|
void |
addSubform(DMSForm main,
DMSForm sub,
int id)
Adds the passed subform to the mainform into the set of subforms identified by the passed id.
|
void |
attachNote(DMSObject target,
DMSNote note)
Attaches the passed note to the passed object.
|
void |
backupToVersion(DMSForm form,
PersistentVersion version)
Makes the content of the passed version to the current content of the passed form.
|
<P extends DMSForm> |
changeType(DMSForm obj,
FormType newType,
DMSFolder folder)
This method changes the type of the passed DMSObject to the passed FormType.
|
void |
checkDelete(User user,
DMSObject obj)
Throws
ApplicationException Nr. 27 if the passed user may NOT delete the passed object |
void |
checkDuplicateNames(DMSFolder targetFolder,
DMSObject targetObject,
java.lang.String name,
java.lang.String extension)
Checks if the passed folder does not already contain an element with the same name as the passed
one.
|
void |
checkEdit(User user,
DMSObject obj)
Throws
ApplicationException Nr. 27 if the passed user may NOT edit the passed object |
void |
checkValidName(DMSObject target,
java.lang.String name,
java.lang.String extension)
Checks if the name and extension do not contain any forbidden characters
|
void |
checkView(User user,
DMSObject obj)
Throws
ApplicationException Nr. 27 if the passed user may NOT view the passed object |
int |
countSubforms(DMSForm f,
int id)
Counts the number of subforms in the subform-relation where
f is
the main form. |
<P extends DMSDocForm> |
createDocForm(FormType ft,
java.lang.String name,
java.lang.String extension,
P template,
PermissionList acl)
Creates a new document of the specified formtype.
|
<P extends DMSDocForm> |
createDocForm(java.lang.String name,
java.lang.String extension)
Creates a new standard document.
|
<P extends DMSFolder> |
createFolder(FormType ft,
java.lang.String name,
P template,
PermissionList acl)
Creates a new folder of a given type.
|
<P extends DMSFolder> |
createFolder(java.lang.String name)
Creates a new standard folder.
|
<P extends DMSForm> |
createForm(FormType ft,
P template,
PermissionList acl)
Creates a new form of the specified formtype.
|
Keyword |
createKeyword(java.lang.String word)
Creates a new Keyword for the passed word and returns this instance.
|
<P extends DMSNote> |
createNote(java.lang.String subject,
java.lang.String content,
PermissionList acl)
Creates a new note
|
<P extends DMSWebLink> |
createWebLink(java.lang.String name,
java.lang.String url,
java.lang.String description,
PermissionList acl)
Creates a new link to an URL
|
java.util.List<DMSObject> |
delete(DMSFolder f,
DMSObject o)
Deletes the object o which resides in folder f.
|
void |
deleteKeyword(Keyword keyword,
User user)
Deprecated.
since ep 9.0 and will be removed in ep 10.0.
Use
OrgData.delete(com.groiss.store.Persistent) instead. |
void |
deleteVersion(PersistentVersion version)
Deletes the passed version of an object.
|
void |
disableRightChecks()
If this method is called all right checks done using methods
checkEdit(User, DMSObject) , checkView(User, DMSObject) ,
mayEdit(User, DMSObject) and mayView(User, DMSObject) are deactivated in the current thread. |
java.util.List<DMSObject> |
emptyRecycleBin()
Empties the Recycle Bin of the current user - i.e. all its content will now be deleted irrevocably
|
void |
enableRightChecks()
enables the right checks if they were previously disabled using method
disableRightChecks() . |
java.util.Map<DMSForm,DMSForm> |
fetchMainForms(java.util.Collection<? extends DMSForm> subForms)
Construct a mapping from sub form instances to (filled) main form instances
|
MultiMap<DMSForm,DMSForm> |
fetchSubForms(java.util.Collection<? extends DMSForm> mainForms,
int subformid)
Construct a mapping from mainform instances to (filled) subform instances.
|
byte[] |
getContent(DMSDocForm document)
Get the content of a document.
|
byte[] |
getContent(PersistentVersion version)
Get the content of a document's version.
|
<P extends DMSObject> |
getDMSObject(long oid)
Get a DMSObject by oid.
|
<P extends DMSObject> |
getDMSObject(java.lang.String path)
Get a DMSObject by path.
|
<P extends DMSObject> |
getDMSObject(java.lang.String classname,
long oid)
Deprecated.
since ep 9.0 and will be removed in ep 10.0.
Use
Store.get(String, long) or Store.get(Class, long) instead. |
<P extends DMSFolder> |
getFolder(DMSObject obj)
Get the folder containing the passed object.
|
FormType |
getFormType(long oid)
Deprecated.
since ep 9.0 and will be removed in ep 10.0.
Use
Store.get(Class, long) instead. |
FormType |
getFormType(java.lang.String id,
int version)
Returns the formtype with the given id and version number
|
java.lang.String |
getIcon(java.lang.String extension)
Deprecated.
since ep9.0 icon image is determined using CSS
|
java.lang.String |
getIconFromMimetype(java.lang.String mimetype)
Deprecated.
since ep9.0 icon image is determined using CSS
|
Keyword |
getKeyword(long oid)
Deprecated.
since ep 9.0 and will be removed in ep 10.0.
Use
Store.get(Class, long) instead. |
<P extends DMSForm> |
getMainForm(DMSForm f)
Returns the main form of the passed form (or null if there is none)
|
<P extends DMSFolder> |
getPublicRootFolder()
Returns the public root folder in the DMS.
|
<P extends DMSFolder> |
getRecycleBin(User user)
Returns the recycle bin for a user.
|
<P extends DMSFolder> |
getRootFolder(User user)
Returns the root DMS folder (i.e. it has no parent) for a user.
|
<P extends DMSForm> |
getTemplates(FormType ft)
Returns the templates for the passed form type.
|
boolean |
isDuplicateName(DMSFolder targetFolder,
DMSObject targetObject,
java.lang.String name,
java.lang.String extension)
Returns true if already an item of the passed folder has the passed name
|
<P extends DMSObject> |
listContents(DMSFolder folder,
FormType ft,
java.lang.String cond,
java.lang.String order,
java.lang.Object[] vals,
boolean recursive)
Returns a list of dms objects which match the passed condition
|
java.util.List<FormType> |
listCreateableFormTypes(java.lang.String searchCond,
java.lang.String order)
Returns the formtypes which meet the search condition and from which the passed user may create
form objects.
|
<P extends DMSForm> |
listForms(FormType ft,
java.lang.String cond,
java.lang.String order,
java.lang.Object[] vals)
Deprecated.
since ep 9.0 and will be removed in ep 10.0.
Use
Store.list(String, String, String, Object[]) instead and pass FormType.getClassName() as
first parameter. |
<P extends Keyword> |
listKeywords()
Deprecated.
since ep 9.0 and will be removed in ep 10.0.
Use
Store.list(Class, String, String) instead. |
<P extends Keyword> |
listKeywords(DMSObject obj)
Returns a list of all keywords attached to the passed DMSObject
|
java.util.List<DMSNote> |
listNotes(DMSObject target)
Returns all the notes which are attached to target and which the user may view or edit
No System notes are returned
|
java.util.List<DMSNote> |
listNotes(DMSObject target,
boolean includeSystemNotes)
Returns all the notes which are attached to target and which the user may view or edit
|
<P extends DMSFolder> |
listSubfolders(DMSFolder startFolder)
Returns a list of all folders which are subfolders of the given folder.
|
<P extends DMSForm> |
listSubforms(DMSForm f,
int id)
Returns a list of subforms of the passed form (which is empty if there are none)
|
<P extends DMSForm> |
listSubforms(DMSForm f,
int id,
java.lang.String cond,
java.lang.String order,
java.lang.Object[] vals)
Returns a list of subforms of the passed form (which is empty if there are none)
|
java.util.List<PersistentVersion> |
listVersions(DMSObject obj)
Returns the versions of the specified object in descending order of their creation date.
|
java.util.List<PersistentVersion> |
listVersions(DMSObject obj,
java.lang.String condition,
java.lang.String order,
java.lang.Object[] bindVars)
Returns the versions of the specified object matching the specified condition.
|
void |
lock(DMSDocForm document)
Locks the document.
|
PersistentVersion |
makeVersion(DMSObject obj,
java.lang.String description)
Makes a version of the passed object.
|
boolean |
mayDelete(User user,
DMSObject obj)
Returns true if the passed user may delete the passed object or if the right check
is deactivated.
|
boolean |
mayEdit(User user,
DMSObject obj)
Returns true if the passed user may edit the passed object or if the right check is
deactivated.
|
boolean |
mayView(User user,
DMSObject obj)
Returns true if the passed user may view the passed object or if the right check
is deactivated.
|
<P extends DMSObject> |
move(DMSFolder src,
DMSFolder dest,
P doc,
short type)
Moves an object from one folder to another.
|
java.util.List<DMSObject> |
moveToRecycleBin(DMSFolder f,
DMSObject o)
Moves the object o which resides in folder f to the Recycle Bin.
|
<P extends DMSDocForm> |
reloadDocument(DMSFolder folder,
P document,
java.lang.String newExtension,
java.io.InputStream is)
Reloads the document, i.e. replaces the content of the document with the content of the
passed file
|
boolean |
remove(DMSFolder f,
DMSObject o)
Removes an Object from a folder.
|
void |
removeKeyword(DMSObject obj,
Keyword keyword)
Removes the passed keyword from the passed DMSObject
|
void |
removeNote(DMSObject target,
DMSNote note)
Removes the passed note from the passed document.
|
void |
removeSubform(DMSForm main,
DMSForm sub)
Removes the passed subform from the passed mainform.
|
void |
removeSubform(DMSForm main,
DMSForm sub,
int id)
Removes the passed subform from the subform-relation identified by the passed id in the passed mainform.
|
<P extends DMSObject> |
renameDocument(DMSFolder folder,
P obj,
java.lang.String newName,
java.lang.String newExtension)
Sets the name and extension of the passed object to newName.
|
java.util.List<DMSObject> |
restoreFromRecycleBin(DMSObject o)
Restores the passed object from recycle bin, i.e. moves it to it original folder if that folder still exists - otherwise an exception is thrown.
|
void |
setContent(DMSDocForm document,
byte[] barr)
Set the content of a document.
|
void |
signDocuments(java.util.List<? extends DMSDocForm> documents,
Agent agent,
char[] password)
Digital Signing of a list of DMS documents.
|
void |
signDocuments(java.util.List<? extends DMSDocForm> documents,
java.lang.String alias,
char[] password)
Deprecated.
since 9.0.19079 user certificates are no longer stored in system keystore - will be removed in @ep 10
|
void |
signVersions(java.util.List<? extends PersistentVersion> versions,
Agent agent,
char[] password)
Digital Signing of a list of DMS document version.
|
void |
signVersions(java.util.List<? extends PersistentVersion> versions,
java.lang.String alias,
char[] password)
Deprecated.
since 9.0.19079 user certificates are no longer stored in system keystore - will be removed in @ep 10
|
void |
unlock(DMSDocForm document)
Unlocks the document.
|
void |
update(DMSObject o)
Updates the passed object
|
static final short MOVE
static final short COPY
static final short LINK
static final char[] invalidChars
<P extends DMSFolder> P createFolder(java.lang.String name) throws java.rmi.RemoteException
name
- the name for the folderjava.rmi.RemoteException
<P extends DMSFolder> P createFolder(FormType ft, java.lang.String name, P template, PermissionList acl) throws java.rmi.RemoteException
ft
- the folder's formtypename
- the name for the foldertemplate
- specifies the template which should be used for creating the folder (may be null)acl
- the acl attached to the new folder (may be null)java.rmi.RemoteException
<P extends DMSDocForm> P createDocForm(java.lang.String name, java.lang.String extension) throws java.rmi.RemoteException
name
- the name of the new DocFormextension
- the file extension of the new documentjava.rmi.RemoteException
<P extends DMSDocForm> P createDocForm(FormType ft, java.lang.String name, java.lang.String extension, P template, PermissionList acl) throws java.rmi.RemoteException
ft
- the document's formtypename
- the name of the new DocFormextension
- the file extension of the new document (this parameter is ignored if
a template is passed because then the template determines the extension)template
- specifies the template which should be used for creating the folder (may be null)acl
- the acl if one should be set (otherwise pass null)java.rmi.RemoteException
<P extends DMSForm> P createForm(FormType ft, P template, PermissionList acl) throws java.rmi.RemoteException
ft
- the form's formtypetemplate
- specifies the template which should be used for creating the folder (may be null)acl
- the acl if one should be set (otherwise pass null)java.rmi.RemoteException
<P extends DMSNote> P createNote(java.lang.String subject, java.lang.String content, PermissionList acl) throws java.rmi.RemoteException
subject
- the subject of the notecontent
- the content of the noteacl
- the acl if one should be set (otherwise pass null)java.rmi.RemoteException
<P extends DMSWebLink> P createWebLink(java.lang.String name, java.lang.String url, java.lang.String description, PermissionList acl) throws java.rmi.RemoteException
name
- the name of the weblinkurl
- the url of the weblinkdescription
- a description text of the the weblinkacl
- the acl if one should be set (otherwise pass null)java.rmi.RemoteException
FormType getFormType(java.lang.String id, int version) throws java.rmi.RemoteException
java.rmi.RemoteException
@Deprecated FormType getFormType(long oid) throws java.rmi.RemoteException
Store.get(Class, long)
instead.java.rmi.RemoteException
<P extends DMSForm> java.util.List<P> getTemplates(FormType ft) throws java.rmi.RemoteException
ft
- the form type of which the templates are wantedjava.rmi.RemoteException
java.util.List<FormType> listCreateableFormTypes(java.lang.String searchCond, java.lang.String order) throws java.rmi.RemoteException
searchCond
- a sql where-clauseorder
- sql order attributesjava.rmi.RemoteException
<P extends DMSObject> P move(DMSFolder src, DMSFolder dest, P doc, short type) throws java.rmi.RemoteException
src
- the folder currently holding the objectdest
- the folder to which the objects should be moveddoc
- the object which should be movedtype
- the type of move operation:
java.rmi.RemoteException
<P extends DMSObject> P add(DMSFolder f, P o) throws java.rmi.RemoteException
f
- the folder to which the object should be addedo
- the object which should be added to the folderjava.rmi.RemoteException
boolean remove(DMSFolder f, DMSObject o) throws java.rmi.RemoteException
f
- the folder from which the object should be removedo
- the object which should be removed from the folderjava.rmi.RemoteException
java.util.List<DMSObject> delete(DMSFolder f, DMSObject o) throws java.rmi.RemoteException
f
- the folder holding the object which should be deletedo
- the object which should be deletedjava.rmi.RemoteException
void attachNote(DMSObject target, DMSNote note) throws java.rmi.RemoteException
target
- the object to which the note should be attachednote
- the note which should be attachedjava.rmi.RemoteException
void removeNote(DMSObject target, DMSNote note) throws java.rmi.RemoteException
target
- the object form which the note should be removednote
- the note which should be removedjava.rmi.RemoteException
java.util.List<DMSNote> listNotes(DMSObject target) throws java.rmi.RemoteException
target
- the object which notes are wantedjava.rmi.RemoteException
java.util.List<DMSNote> listNotes(DMSObject target, boolean includeSystemNotes) throws java.lang.Exception
target
- the object which notes are wantedincludeSystemNotes
- determines if system notes should be returned. true if system notes should be found.java.lang.Exception
PersistentVersion makeVersion(DMSObject obj, java.lang.String description) throws java.rmi.RemoteException
obj
- the object which should be versioneddescription
- the version description textjava.rmi.RemoteException
void deleteVersion(PersistentVersion version) throws java.rmi.RemoteException
version
- the version to be deletedjava.rmi.RemoteException
java.util.List<PersistentVersion> listVersions(DMSObject obj) throws java.rmi.RemoteException
obj
- the object which versions are requestedjava.rmi.RemoteException
java.util.List<PersistentVersion> listVersions(DMSObject obj, java.lang.String condition, java.lang.String order, java.lang.Object[] bindVars) throws java.rmi.RemoteException
obj
- the object which versions are requestedcondition
- the condition the versions must match (columns of avw_log can be used to filter version records)order
- a comma separated list of column names of avw_log.bindVars
- if the condition contains place holders for binding variables this array should contain the valuesjava.rmi.RemoteException
void backupToVersion(DMSForm form, PersistentVersion version) throws java.rmi.RemoteException
form
- the object which should be reset to the passed the versionversion
- the version which content should be used (it must be a version of the passed
form)java.rmi.RemoteException
byte[] getContent(PersistentVersion version) throws java.rmi.RemoteException
version
- the versionjava.rmi.RemoteException
<P extends DMSFolder> P getRootFolder(User user) throws java.rmi.RemoteException
user
- the user who's root folder is requested.java.rmi.RemoteException
<P extends DMSFolder> P getPublicRootFolder() throws java.rmi.RemoteException
java.rmi.RemoteException
<P extends DMSFolder> P getRecycleBin(User user) throws java.rmi.RemoteException
user
- the user who's recycle bin is requested.java.rmi.RemoteException
@Deprecated <P extends DMSObject> P getDMSObject(java.lang.String classname, long oid) throws java.rmi.RemoteException
Store.get(String, long)
or Store.get(Class, long)
instead.classname
- the full qualified class name of the requested objectoid
- the oid of the requested objectjava.rmi.RemoteException
<P extends DMSObject> P getDMSObject(long oid) throws java.rmi.RemoteException
oid
- the oid of the requested objectjava.rmi.RemoteException
<P extends DMSObject> P getDMSObject(java.lang.String path) throws java.rmi.RemoteException
path
- the path leading to the wanted DMSObjectjava.rmi.RemoteException
<P extends DMSFolder> P getFolder(DMSObject obj) throws java.rmi.RemoteException
obj
- the object which folder is wantedjava.rmi.RemoteException
<P extends DMSFolder> java.util.List<P> listSubfolders(DMSFolder startFolder) throws java.rmi.RemoteException
startFolder
- the folder which subfolders are requestedjava.rmi.RemoteException
<P extends DMSForm> P getMainForm(DMSForm f) throws java.rmi.RemoteException
f
- the form for which the mainform is neededjava.rmi.RemoteException
<P extends DMSForm> java.util.List<P> listSubforms(DMSForm f, int id) throws java.rmi.RemoteException
f
- the form of which the subforms are neededid
- the id of the wanted subformsjava.rmi.RemoteException
<P extends DMSForm> java.util.List<P> listSubforms(DMSForm f, int id, java.lang.String cond, java.lang.String order, java.lang.Object[] vals) throws java.rmi.RemoteException
f
- the form of which the subforms are neededid
- the id of the wanted subformscond
- the condition which must match. This allows additional filtering within the subform table,
e.g. 'amount > 10000' where 'amount' is a column in the database table of the subform class determined
by the passed id.order
- the sorting ordervals
- the value objects for the condition if the condition is build with the syntax
of a prepared statementjava.rmi.RemoteException
int countSubforms(DMSForm f, int id) throws java.rmi.RemoteException
f
is
the main form.f
- the form of which the subforms will be countedid
- the id of the subform relationjava.rmi.RemoteException
void removeSubform(DMSForm main, DMSForm sub) throws java.rmi.RemoteException
main
- the mainform. If null is passed all main-subform-relations in which the passed subform
is referenced as subform will be removed.sub
- the subform to removejava.rmi.RemoteException
void removeSubform(DMSForm main, DMSForm sub, int id) throws java.rmi.RemoteException
main
- the mainform. If null is passed all main-subform-relations in which the passed subform
is referenced as subform will be removed.sub
- the subform to removeid
- the id of the subform-relation from which the subform should be removedjava.rmi.RemoteException
void addSubform(DMSForm main, DMSForm sub, int id) throws java.rmi.RemoteException
main
- the mainformsub
- the subform to addid
- the id of the set of subform to which the passed subform should be addedjava.rmi.RemoteException
MultiMap<DMSForm,DMSForm> fetchSubForms(java.util.Collection<? extends DMSForm> mainForms, int subformid) throws java.rmi.RemoteException
mainForms
- the referencing mainformssubformid
- the id of the subform (tablefield) to getjava.rmi.RemoteException
java.util.Map<DMSForm,DMSForm> fetchMainForms(java.util.Collection<? extends DMSForm> subForms) throws java.rmi.RemoteException
subForms
- the referencing subformsjava.rmi.RemoteException
@Deprecated <P extends DMSForm> java.util.List<P> listForms(FormType ft, java.lang.String cond, java.lang.String order, java.lang.Object[] vals) throws java.rmi.RemoteException
Store.list(String, String, String, Object[])
instead and pass FormType.getClassName()
as
first parameter.ft
- the formtype of the desired formscond
- the condition which must matchorder
- the sorting ordervals
- the value objects for the condition if the condition is build with the syntax
of a prepared statementjava.rmi.RemoteException
<P extends DMSObject> java.util.List<P> listContents(DMSFolder folder, FormType ft, java.lang.String cond, java.lang.String order, java.lang.Object[] vals, boolean recursive) throws java.rmi.RemoteException
folder
- the folder whose content is wantedft
- the formtype of the desired objectscond
- the condition which must match. The following columns are available for parameter
cond and order:
order
- the sorting order (for available columns see parameter cond)vals
- the value objects for the condition if the condition is build with the syntax
of a prepared statementrecursive
- determines if the search should also include all subfoldersjava.rmi.RemoteException
<P extends DMSObject> P renameDocument(DMSFolder folder, P obj, java.lang.String newName, java.lang.String newExtension) throws java.rmi.RemoteException
folder
- the folder the document belongs toobj
- the object which should be renamednewName
- the new name for the documentnewExtension
- the new extension for the document. This parameter is ignored if the passed
object is not a DMSDocForm
.java.rmi.RemoteException
<P extends DMSDocForm> P reloadDocument(DMSFolder folder, P document, java.lang.String newExtension, java.io.InputStream is) throws java.rmi.RemoteException
folder
- the folder the document belongs todocument
- the document which should be reloadednewExtension
- the possibly new extension (if null or the empty string is passed the old
extension remains unchanged).is
- the inputstream holding the new contentjava.rmi.RemoteException
void setContent(DMSDocForm document, byte[] barr) throws java.rmi.RemoteException
document
- the documentbarr
- a byte arrayjava.rmi.RemoteException
byte[] getContent(DMSDocForm document) throws java.rmi.RemoteException
document
- the documentjava.rmi.RemoteException
void lock(DMSDocForm document) throws java.rmi.RemoteException
document
- the documentjava.rmi.RemoteException
void unlock(DMSDocForm document) throws java.rmi.RemoteException
document
- the documentjava.rmi.RemoteException
<P extends DMSForm> P changeType(DMSForm obj, FormType newType, DMSFolder folder) throws java.rmi.RemoteException
obj
- the objects which type should be changednewType
- the new type for the passed objectfolder
- the folder of which the object is a content memberjava.rmi.RemoteException
void update(DMSObject o) throws java.rmi.RemoteException
o
- the object to be updatedjava.rmi.RemoteException
java.util.List<DMSObject> moveToRecycleBin(DMSFolder f, DMSObject o) throws java.rmi.RemoteException
f
- the folder holding the object which should be deletedo
- the object which should be deletedjava.rmi.RemoteException
java.util.List<DMSObject> restoreFromRecycleBin(DMSObject o) throws java.rmi.RemoteException
o
- the object to restorejava.rmi.RemoteException
java.util.List<DMSObject> emptyRecycleBin() throws java.rmi.RemoteException
java.rmi.RemoteException
Keyword createKeyword(java.lang.String word) throws java.rmi.RemoteException
word
- the string representing the wanted keywordjava.rmi.RemoteException
@Deprecated void deleteKeyword(Keyword keyword, User user) throws java.rmi.RemoteException
OrgData.delete(com.groiss.store.Persistent)
instead.keyword
- the keyword which should be deleteduser
- the user who creates the keywordjava.rmi.RemoteException
@Deprecated Keyword getKeyword(long oid) throws java.rmi.RemoteException
Store.get(Class, long)
instead.oid
- the oid the wanted keywordjava.rmi.RemoteException
@Deprecated <P extends Keyword> java.util.List<P> listKeywords() throws java.rmi.RemoteException
Store.list(Class, String, String)
instead.java.rmi.RemoteException
void addKeyword(DMSObject obj, Keyword keyword) throws java.rmi.RemoteException
obj
- the object to which the keyword should be addedkeyword
- the keyword which should be addedjava.rmi.RemoteException
void removeKeyword(DMSObject obj, Keyword keyword) throws java.rmi.RemoteException
obj
- the object from which the keyword should be removedkeyword
- the keyword which should be removedjava.rmi.RemoteException
<P extends Keyword> java.util.List<P> listKeywords(DMSObject obj) throws java.rmi.RemoteException
obj
- the object which the keywords should be returnedjava.rmi.RemoteException
void disableRightChecks() throws java.rmi.RemoteException
checkEdit(User, DMSObject)
, checkView(User, DMSObject)
,
mayEdit(User, DMSObject)
and mayView(User, DMSObject)
are deactivated in the current thread. But be aware to enable
the right check at the end of your actions because threads are reused in our system.java.rmi.RemoteException
void enableRightChecks() throws java.rmi.RemoteException
disableRightChecks()
.java.rmi.RemoteException
void checkEdit(User user, DMSObject obj) throws java.rmi.RemoteException
ApplicationException
Nr. 27 if the passed user may NOT edit the passed objectuser
- the user who wants to edit the objectobj
- the object which should be editedjava.rmi.RemoteException
void checkView(User user, DMSObject obj) throws java.rmi.RemoteException
ApplicationException
Nr. 27 if the passed user may NOT view the passed objectuser
- the user who wants to view the objectobj
- the object which should be viewedjava.rmi.RemoteException
void checkDelete(User user, DMSObject obj) throws java.rmi.RemoteException
ApplicationException
Nr. 27 if the passed user may NOT delete the passed objectuser
- the user who wants to delete the objectobj
- the object which should be deletedjava.rmi.RemoteException
boolean mayEdit(User user, DMSObject obj) throws java.rmi.RemoteException
user
- the user who wants to edit the objectobj
- the object which should be editedjava.rmi.RemoteException
boolean mayView(User user, DMSObject obj) throws java.rmi.RemoteException
user
- the user who wants to view the objectobj
- the object which should be viewedjava.rmi.RemoteException
boolean mayDelete(User user, DMSObject obj) throws java.rmi.RemoteException
user
- the user who wants to delete the objectobj
- the object which should be deletedjava.rmi.RemoteException
@Deprecated java.lang.String getIcon(java.lang.String extension) throws java.rmi.RemoteException
extension
- the extension for which the icon is wantedjava.rmi.RemoteException
@Deprecated java.lang.String getIconFromMimetype(java.lang.String mimetype) throws java.rmi.RemoteException
mimetype
- the mimetype for which the icon is wantedjava.rmi.RemoteException
void checkValidName(DMSObject target, java.lang.String name, java.lang.String extension) throws java.rmi.RemoteException
target
- the object to which the name belongs to (or will belong to)name
- the name which should be checkedextension
- the extension which should be checkedjava.rmi.RemoteException
void checkDuplicateNames(DMSFolder targetFolder, DMSObject targetObject, java.lang.String name, java.lang.String extension) throws java.rmi.RemoteException
targetFolder
- the folder in which should be checkedtargetObject
- the object the name belongs to (or will belong to)name
- the name which should be checkedextension
- the extension which should be checkedjava.rmi.RemoteException
boolean isDuplicateName(DMSFolder targetFolder, DMSObject targetObject, java.lang.String name, java.lang.String extension) throws java.rmi.RemoteException
targetFolder
- the folder in which should be checkedtargetObject
- the object the name belongs to (or will belong to)name
- the name which should be checkedextension
- the extension which should be checkedjava.rmi.RemoteException
@Deprecated void signDocuments(java.util.List<? extends DMSDocForm> documents, java.lang.String alias, char[] password) throws java.rmi.RemoteException
list
- a List of documents to signalias
- the certificate alias used to sign the docuemntpassword
- the password of the private key used to sign documentjava.rmi.RemoteException
@Deprecated void signVersions(java.util.List<? extends PersistentVersion> versions, java.lang.String alias, char[] password) throws java.rmi.RemoteException
list
- a List of versions to signalias
- the certificate alias used to sign the docuemntpassword
- the password of the private key used to sign documentjava.rmi.RemoteException
void signDocuments(java.util.List<? extends DMSDocForm> documents, Agent agent, char[] password) throws java.rmi.RemoteException
list
- a List of documents to signagent
- the agent (role or user) which is signing the documentpassword
- the password of the private key used to sign documentjava.rmi.RemoteException
void signVersions(java.util.List<? extends PersistentVersion> versions, Agent agent, char[] password) throws java.rmi.RemoteException
list
- a List of versions to signagent
- the agent (role or user) which is signing the documentpassword
- the password of the private key used to sign documentjava.rmi.RemoteException
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.