|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.store.PersistentObject
com.dec.gi.sql.SQLObject
com.dec.gi.sql.LoggedObject
com.dec.avw.core.Form
com.groiss.dms.FolderForm
public abstract class FolderForm
This class is the superclass of all form classes generated by the system to which documents can be attached.
| Field Summary | |
|---|---|
boolean |
bequestACL
Determines if objects which are added to this folder should inherit the folders ACL. |
com.dec.avw.core.Dept |
dept
Holds the department this folder may belong to |
com.dec.avw.core.StepInstance |
process
Holds the process this folder may belong to |
| Fields inherited from class com.dec.avw.core.Form |
|---|
AUTO_VERSION_TEXT, avwchangedAt, avwchangedBy, avwcreatedAt, avwcreatedBy, formtype, loadFormType, loadNotes, noteViewers, task |
| Fields inherited from class com.dec.gi.sql.LoggedObject |
|---|
acl, canDeleteAlreadyChecked, changetime, NO_CHECK_DEFFERRED, transactionId |
| Fields inherited from class com.dec.gi.sql.SQLObject |
|---|
DO_BLIND |
| Fields inherited from class com.groiss.store.PersistentObject |
|---|
filled, oid, store |
| Fields inherited from interface com.groiss.dms.DMSFolder |
|---|
PATH_SEPARATOR |
| Fields inherited from interface com.groiss.store.Exportable |
|---|
emptyKeys |
| Constructor Summary | |
|---|---|
FolderForm()
|
|
| Method Summary | |
|---|---|
DMSObject |
add(DMSObject o)
Adds the passed object to its content |
java.util.Collection |
addAll(java.util.Collection v)
Adds all the objects of the passed collection to its content |
boolean |
bequestACL()
Returns true if objects which are added to this folder should inherit the folders ACL, otherwise false is returned |
void |
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 folder |
boolean |
contains(DMSObject o)
Returns true if the passed object is an element of this folder, false otherwise. |
protected com.dec.avw.core.Form |
getCopy(User user)
Overridden to avoid that the process context will also be copied. |
protected java.lang.String |
getDefaultIcon()
Returns the default icon for this object |
OrgUnit |
getDefaultOrgUnit()
Returns the default organizational unit of this object. |
DMSFolderItemRel |
getEmptyFIR()
Returns an empty relation object which may be used for database queries. |
DMSFolderItemRel |
getNewFIR(DMSFolder folder,
DMSObject item,
com.dec.avw.core.Server itemServer)
|
OrgUnit |
getOrgUnit()
Returns the organizational unit to which this folder belongs to |
DMSFolder |
getParentFolder()
Returns the parent of this folder |
java.lang.String |
getPathToRoot()
Returns a string determining the path from this folder up to its root (leaded and separated by java.io.File.separator). |
ProcessInstance |
getProcessContext()
Returns the process to which this folder may belong to (directly or indirectly) |
java.lang.String |
getTableModel()
Returns the full qualified name of the class which is used for displaying the content of this folder (must extend class DMSObjectTable). |
boolean |
isEmpty()
Returns true if this folder is empty, false otherwise |
java.util.List |
listContents()
Returns a list holding the whole content of this folder. |
DMSObject |
makeCopy(User user)
Returns a copy of this object. |
DocumentVersion |
makeVersion(User user,
java.lang.String description)
Makes a version of all its documents (also those in subfolders). |
void |
onDelete()
This method is called before the persistent object is deleted. |
void |
remove(DMSObject o)
Removes the passed object from this folder |
void |
removeAll(java.util.Collection v)
Removes all the objects in the collection from the folder |
void |
setOrgUnit(OrgUnit ou)
Sets the organizational unit to which this folder belongs to |
void |
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 class com.dec.avw.core.Form |
|---|
attachNote, checkDelete, checkEdit, clone, createPrototypeCopy, deleteAttachedNotes, deleteVersion, deleteVersion, deleteVersions, disableAutoUpdate, enableAutoUpdate, fill, getAndLock, getChangedAt, getChangedBy, getContent, getContentForVersion, getCreatedAt, getCreatedBy, getDefaultDept, getDependent, getEventHandler, getField, getFormClassDir, getFormType, getHTMLClass, getIcon, getLatestVersion, getLatestVersion, getLocalClassName, getLocalObjectName, getMasterForm, getName, getName, getOwner, getProcess, getSelectFieldValue, getSize, getSubForm, getSubform, getSubforms, getTabledef, getTableName, getTask, getTemporaryVersion, getTemporaryVersion2, getTypeName, getVersionId, getVersionsForDistribution, getVersionsForDistribution, getViewer, hasAttachedNotes, hasAttributes, hasVersion, hasVersions, ignoreSubstitution, isAutoUpdate, isPrototype, isView, listAttachedNotes, listVersions, makeCopy, makeProcessFormVersion, makeVersion, mayDelete, mayInsert, mayUpdate, onInsert, onRead, onUpdate, removeNote, setField, setFormRelation, setFormType, setName, setNoteViewers, setTask, setVersionId, toListString, toString |
| Methods inherited from class com.dec.gi.sql.LoggedObject |
|---|
canDelete, delete, deleteExtensions, deleteNoCheck, getAcl, getAllVersions, getExtensions, getExtensionsWithDummies, getLogInfo, getTransactionId, getVersion, getVersion, ignoreFields, increaseTransactionId, insert, insertNoCheck, makeVersion, setAcl, setTransactionId, toString, update, updateAt, updateNoCheck, updateNoVersioning |
| Methods inherited from class com.dec.gi.sql.SQLObject |
|---|
addRequiredObjects, beforeImport, count, count, dbAttrs, dbFieldString, delete, delete, delete, delete, executeStatement, executeStatement, exportAsElements, get, get, get, get, get2, getCache, getFieldDescriptor, getFieldName, getKey, getKeys, getLoggingContext, getNoCache, getStore, getTableDefinition, getValue, getValueText, hasRows, hasRows, inDatabase, insert, insertBlind, isValid, list, list, list, list, list2, list2, retrieveLoggingContextByOid, setEmpty, setFromDB, setNewOid, setOid, setValues, setValues, table, table, update, updateBlind |
| Methods inherited from class com.groiss.store.PersistentObject |
|---|
dbFields, equals, getOid, hashCode, isFilled, setFilled, setOid, setStore |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.groiss.dms.DMSObject |
|---|
attachNote, getAcl, getChangedAt, getChangedBy, getCreatedAt, getCreatedBy, getIcon, getName, getOid, getTypeName, hasAttachedNotes, hasVersions, listAttachedNotes, listVersions, removeNote, setAcl, setName |
| Methods inherited from interface com.dec.avw.core.OwnedObject |
|---|
getOwner, ignoreSubstitution |
| Methods inherited from interface com.groiss.store.Persistent |
|---|
dbFields, getStore, getTableName, isFilled, onInsert, onRead, onUpdate, setFilled, setOid, setStore |
| Field Detail |
|---|
public com.dec.avw.core.Dept dept
public com.dec.avw.core.StepInstance process
public boolean bequestACL
| Constructor Detail |
|---|
public FolderForm()
| Method Detail |
|---|
public DMSObject add(DMSObject o)
throws java.lang.Exception
DMSFolder
add in interface DMSFoldero - the object to be added
java.lang.Exception
public java.util.Collection addAll(java.util.Collection v)
throws java.lang.Exception
DMSFolder
addAll in interface DMSFolderv - the collection holding the objects to be added
java.lang.Exception
public void clear()
throws java.lang.Exception
DMSFolder
clear in interface DMSFolderjava.lang.Exceptionpublic boolean contains(DMSObject o)
DMSFolder
contains in interface DMSFolderpublic java.util.List listContents()
DMSFolder
listContents in interface DMSFolderpublic boolean isEmpty()
DMSFolder
isEmpty in interface DMSFolder
public void remove(DMSObject o)
throws java.lang.Exception
DMSFolder
remove in interface DMSFolderjava.lang.Exception
public void removeAll(java.util.Collection v)
throws java.lang.Exception
DMSFolder
removeAll in interface DMSFolderjava.lang.Exceptionpublic int size()
DMSFolder
size in interface DMSFolderpublic OrgUnit getOrgUnit()
DMSFolder
getOrgUnit in interface DMSFolderpublic OrgUnit getDefaultOrgUnit()
DMSObject
getDefaultOrgUnit in interface DMSObjectgetDefaultOrgUnit in class com.dec.avw.core.Formpublic void setOrgUnit(OrgUnit ou)
DMSFolder
setOrgUnit in interface DMSFolderpublic ProcessInstance getProcessContext()
DMSFolder
getProcessContext in interface DMSFolderpublic void setProcessContext(ProcessInstance process)
DMSFolder
setProcessContext in interface DMSFolderprotected java.lang.String getDefaultIcon()
getDefaultIcon in class com.dec.avw.core.Formpublic java.lang.String getPathToRoot()
getPathToRoot in interface DMSFolderpublic DMSFolder getParentFolder()
getParentFolder in interface DMSFolder
public final DMSFolderItemRel getNewFIR(DMSFolder folder,
DMSObject item,
com.dec.avw.core.Server itemServer)
public final DMSFolderItemRel getEmptyFIR()
public DMSObject makeCopy(User user)
throws java.lang.Exception
DMSObject
makeCopy in interface DMSObjectmakeCopy in class com.dec.avw.core.Formuser - the user who wants to make the copy.
java.lang.Exceptionpublic java.lang.String getTableModel()
DMSObjectTable).
This default implementation returns the class defined by parameter avw.dms.standard_tablemodel in the server's
configuration or DMSObjectTable if the parameter is not set.
getTableModel in interface DMSFolder
protected com.dec.avw.core.Form getCopy(User user)
throws java.lang.Exception
getCopy in class com.dec.avw.core.Formjava.lang.Exception
public DocumentVersion makeVersion(User user,
java.lang.String description)
throws java.lang.Exception
makeVersion in interface DMSObjectmakeVersion in class com.dec.avw.core.Formuser - the user who wants to make the versiondescription - the description text for this version
java.lang.Exceptionpublic boolean bequestACL()
bequestACL in interface DMSFolderpublic void bequestACL(boolean bequest)
bequestACL in interface DMSFolder
public void onDelete()
throws java.lang.Exception
Persistent
onDelete in interface PersistentonDelete in class com.dec.avw.core.Formjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||