|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.dms.html.HTMLDMSObject
public class HTMLDMSObject
HTML interface all object types in the dms of
Field Summary | |
---|---|
static int |
DEFAULT_SORT
|
Constructor Summary | |
---|---|
HTMLDMSObject()
|
Method Summary | ||
---|---|---|
Page |
attachNote(javax.servlet.http.HttpServletRequest req)
Starts the action for attaching a new note to a document or process |
|
Page |
attachNote2(javax.servlet.http.HttpServletRequest req)
|
|
static boolean |
autoEdit()
Returns true if the meta data of a new dms document should be opened as an answer to a creation action |
|
static void |
avwstf(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse sout)
This method is added for supporting Internet Explorer which is extension-base and not mimetype-based. |
|
Page |
changeType(javax.servlet.http.HttpServletRequest req)
opens the mask to change the object's type |
|
Page |
checkIn(javax.servlet.http.HttpServletRequest req)
method to check in the chosen document(s) |
|
Page |
checkOut(javax.servlet.http.HttpServletRequest req)
method to check out the chosen document(s) |
|
Page |
createFolder(javax.servlet.http.HttpServletRequest req1)
this method creates a new folder and adds it to its parent |
|
Page |
createForm(javax.servlet.http.HttpServletRequest req1)
this method creates a new form and adds it to its folder |
|
Page |
createVersion(javax.servlet.http.HttpServletRequest req)
Returns the page for making a version to the browser |
|
Page |
delete(javax.servlet.http.HttpServletRequest req)
this method deletes the chosen dms object(s) from the database. |
|
Page |
deleteNote(javax.servlet.http.HttpServletRequest req)
|
|
Page |
dmsFunction(javax.servlet.http.HttpServletRequest req)
|
|
Page |
doChangeType(javax.servlet.http.HttpServletRequest req)
changes the object type to the type defined in the changeType-Mask |
|
Page |
doCreateVersion(javax.servlet.http.HttpServletRequest req)
Creates a version of the specified object |
|
Page |
docUpload(javax.servlet.http.HttpServletRequest req1)
this method uploads a document |
|
Page |
doRename(javax.servlet.http.HttpServletRequest req)
changes the object name to the name defined in the changeNameMask |
|
Page |
doReplace(javax.servlet.http.HttpServletRequest req1)
reloads the object. |
|
Page |
download(javax.servlet.http.HttpServletRequest req)
Downloads the selected DocForms as zip-archive |
|
static java.lang.String |
encode(java.lang.String s)
Translates special characters to "_". |
|
Page |
folderForm(javax.servlet.http.HttpServletRequest req)
Opens the form of the passed DMSFolder |
|
Page |
folderProps(javax.servlet.http.HttpServletRequest req)
opens the mask to change the object's name |
|
protected com.dec.avw.acl.ACL |
getACL(javax.servlet.http.HttpServletRequest req)
|
|
Page |
getAnswerToCreation(DMSObject object,
DMSFolder folder)
Returns the page for editing the object if autoEdit() returns true. |
|
static
|
getDMSObject(java.lang.String classAndOid)
Returns the dms object which is specified by a string consisting of the class name and the oid (seperated by ':') of that object |
|
static DMSObject |
getDMSObject(java.lang.String classname,
java.lang.String oid)
Deprecated. use method getDMSObject(String) instead |
|
static java.lang.String |
getDocsPage(java.lang.String folderclass,
long folder,
long task,
java.lang.String actions,
java.lang.String pathToRoot,
java.lang.String target)
Returns a html page where the target location is replaced by the url returned by getDocsUrl(String, long, long, String, String) . |
|
static java.lang.String |
getDocsUrl(DMSFolder folder,
ActivityInstance task,
java.lang.String actions,
java.lang.String pathToRoot)
Returns the url for getting the list of elements of a specific folder. |
|
static java.lang.String |
getDocsUrl(DMSFolder folder,
ActivityInstance task,
java.lang.String actions,
java.lang.String pathToRoot,
java.lang.Integer from)
Deprecated. since ep70, use method getDocsUrl(DMSFolder, ActivityInstance, String,
String) instead. |
|
static java.lang.String |
getDocsUrl(DMSFolder folder,
ActivityInstance task,
java.lang.String actions,
java.lang.String pathToRoot,
java.lang.String comingFrom)
Returns the url for getting the list of elements of a specific folder. |
|
static java.lang.String |
getDocsUrl(java.lang.String folderclass,
long folderoid,
long task,
java.lang.String actions,
java.lang.String pathToRoot)
Returns the url for getting the list of elements of a specific folder. |
|
static java.lang.String |
getEditUrl(DMSObject object,
DMSFolder folder,
boolean readOnly)
|
|
static java.lang.String |
getEditUrl(DMSObject object,
DMSFolder folder,
boolean readOnly,
boolean inplace)
|
|
static void |
getFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse sout)
Returns the requested file in the way the starter32.exe needs it. |
|
static DMSFolder |
getFolder(java.lang.String classname,
java.lang.String oid)
Deprecated. use method getDMSObject(String) instead |
|
static java.lang.String |
getIconAndName(DMSObject obj)
Returns the string representing the object to the user. |
|
static java.lang.Object[] |
getIconAndNameAsArray(DMSObject obj)
|
|
java.lang.String |
getKeywordsAsString(DMSObject obj)
Returns the keywords attached to the passed document |
|
static java.lang.String |
getMetadataUrl(DMSObject object,
DMSFolder fldr,
boolean readonly,
boolean ownWindow)
|
|
static java.lang.String |
getTarget(java.lang.Object type)
Deprecated. since ep7.0. There is no use for this method anymore therefore there is no alternative for it |
|
static Pair |
getTree(DMSFolder root)
Returns the tree of which the passed folder is the root of. |
|
Page |
insertForm(javax.servlet.http.HttpServletRequest req)
|
|
Page |
newDMS(javax.servlet.http.HttpServletRequest req)
start mask if general function "new dms-object" is clicked -> user has to select the kind of dms-object (form, folder, document etc.) first. |
|
protected Page |
newDMSObject(javax.servlet.http.HttpServletRequest req,
int type)
Returns a page for collecting the needed data for creating a new dms object of the passed type |
|
Page |
newDocument(javax.servlet.http.HttpServletRequest req)
this method starts the document-upload-process /* invokes method loadDoc() |
|
Page |
newFolder(javax.servlet.http.HttpServletRequest req)
returns the page for creating a new folder |
|
Page |
newForm(javax.servlet.http.HttpServletRequest req)
returns the page for creating a new form |
|
Page |
newNote(javax.servlet.http.HttpServletRequest req)
creates a new note |
|
Page |
newWebLink(javax.servlet.http.HttpServletRequest req)
creates a new web link |
|
Page |
replace(javax.servlet.http.HttpServletRequest req)
opens the mask to replace (reload) the object. |
|
Page |
setDocProps(javax.servlet.http.HttpServletRequest req)
set properties of document |
|
Page |
setFolderProps(javax.servlet.http.HttpServletRequest req)
set properties of folder |
|
Page |
showAccess(javax.servlet.http.HttpServletRequest req)
|
|
static java.lang.String |
showDoc(DMSObject doc,
DMSFolder folder,
boolean readOnly)
Show the document link |
|
Page |
showDocFrames(javax.servlet.http.HttpServletRequest req)
Returns a page showing the content of the folder and the dms-toolbar. |
|
static Page |
showDocs(DMSFolder f)
Shows the content of the passed folder |
|
static Page |
showDocs(javax.servlet.http.HttpServletRequest req)
Shows the content of the passed folder. |
|
Page |
showError(java.lang.String title,
java.util.List<Pair<java.lang.String,java.lang.String>> errors,
DMSFolder folder)
this method shows the error-messages |
|
static void |
showMergedImage(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Prints the merged image to the result stream. |
|
Page |
showProperties(javax.servlet.http.HttpServletRequest req)
opens the mask to show the details of the selected object |
|
Page |
showVersions(javax.servlet.http.HttpServletRequest req)
This method shows the table of the versions of an object |
|
Page |
undoCheckOut(javax.servlet.http.HttpServletRequest req)
Undoes the checkout of the passed document, but only the user is allowed to perform this action |
|
Page |
unlock(javax.servlet.http.HttpServletRequest req)
Unlocks the passed document, but only the user is allowed to perform this action |
|
Page |
upward(javax.servlet.http.HttpServletRequest req)
go up one level |
|
void |
viewFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_SORT
Constructor Detail |
---|
public HTMLDMSObject()
Method Detail |
---|
public static Page showDocs(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public static Page showDocs(DMSFolder f) throws java.lang.Exception
f
- the folder which content should be shown
java.lang.Exception
public static java.lang.String getDocsPage(java.lang.String folderclass, long folder, long task, java.lang.String actions, java.lang.String pathToRoot, java.lang.String target) throws java.lang.Exception
getDocsUrl(String, long, long, String, String)
.
folderclass
- the name of the class of the folder which documents should be
shownfolder
- the oid of the folder which documents should be showntask
- the oid of the task in which the content should be shown (only
relevant for worklist component). If the task should be ignored
0 must be passed as the value for this parameter.actions
- the set of actions for the shown documentspathToRoot
- a list of target
- the target in which the list of documents should be shown
java.lang.Exception
public static java.lang.String getDocsUrl(java.lang.String folderclass, long folderoid, long task, java.lang.String actions, java.lang.String pathToRoot)
folderclass
- the name of the class of the folder which documents should be
shownfolderoid
- the oid of the folder which documents should be showntask
- the oid of the task in which the content should be shown (only
relevant for worklist component). If the task should be ignored
0 must be passed as the value for this parameter.actions
- the set of actions for the shown documentspathToRoot
- a list of public static java.lang.String getDocsUrl(DMSFolder folder, ActivityInstance task, java.lang.String actions, java.lang.String pathToRoot)
folder
- the folder which documents should be showntask
- the task in which the content should be shown (only relevant for
worklist component). If the task should be ignored null must be
passed as the value for this parameter.actions
- the set of actions for the shown documents@Deprecated public static java.lang.String getDocsUrl(DMSFolder folder, ActivityInstance task, java.lang.String actions, java.lang.String pathToRoot, java.lang.Integer from)
getDocsUrl(DMSFolder, ActivityInstance, String,
String)
instead.
public static java.lang.String getDocsUrl(DMSFolder folder, ActivityInstance task, java.lang.String actions, java.lang.String pathToRoot, java.lang.String comingFrom)
folder
- the folder which documents should be showntask
- the task in which the content should be shown (only relevant for
worklist component). If the task should be ignored null must be
passed as the value for this parameter.actions
- the set of actions for the shown documentscomingFrom
- the url for the back button in the toplevel document table of a process@Deprecated public static java.lang.String getTarget(java.lang.Object type)
public static java.lang.String getEditUrl(DMSObject object, DMSFolder folder, boolean readOnly)
public static java.lang.String getEditUrl(DMSObject object, DMSFolder folder, boolean readOnly, boolean inplace)
public static java.lang.String getMetadataUrl(DMSObject object, DMSFolder fldr, boolean readonly, boolean ownWindow)
public void viewFile(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
java.lang.Exception
public static java.lang.String showDoc(DMSObject doc, DMSFolder folder, boolean readOnly)
public Page showError(java.lang.String title, java.util.List<Pair<java.lang.String,java.lang.String>> errors, DMSFolder folder) throws java.lang.Exception
java.lang.Exception
public Page newDocument(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page newDMS(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
req
- must contain "folder"
java.lang.Exception
protected Page newDMSObject(javax.servlet.http.HttpServletRequest req, int type) throws java.lang.Exception
type
- the type of the object which should be created
java.lang.Exception
public Page docUpload(javax.servlet.http.HttpServletRequest req1) throws java.lang.Exception
java.lang.Exception
public Page checkIn(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page checkOut(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public static void getFile(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse sout) throws java.lang.Exception
java.lang.Exception
public static void avwstf(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse sout) throws java.lang.Exception
java.lang.Exception
public Page delete(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page doRename(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page folderProps(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page showProperties(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page folderForm(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
req
-
java.lang.Exception
public Page replace(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page doReplace(javax.servlet.http.HttpServletRequest req1) throws java.lang.Exception
java.lang.Exception
public Page createVersion(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page doCreateVersion(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page showVersions(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public static java.lang.String encode(java.lang.String s)
s
- String to be translated
public static <T extends DMSObject> T getDMSObject(java.lang.String classAndOid)
@Deprecated public static DMSObject getDMSObject(java.lang.String classname, java.lang.String oid)
getDMSObject(String)
instead
@Deprecated public static DMSFolder getFolder(java.lang.String classname, java.lang.String oid)
getDMSObject(String)
instead
public Page newFolder(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page createFolder(javax.servlet.http.HttpServletRequest req1) throws java.lang.Exception
java.lang.Exception
public Page newForm(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page createForm(javax.servlet.http.HttpServletRequest req1) throws java.lang.Exception
java.lang.Exception
public Page newNote(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page newWebLink(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page insertForm(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page attachNote(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page attachNote2(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page deleteNote(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public static void showMergedImage(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
java.lang.Exception
public Page getAnswerToCreation(DMSObject object, DMSFolder folder) throws java.lang.Exception
java.lang.Exception
public static boolean autoEdit()
protected com.dec.avw.acl.ACL getACL(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page changeType(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page doChangeType(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page setFolderProps(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page setDocProps(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page upward(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page download(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getIconAndName(DMSObject obj)
public static java.lang.Object[] getIconAndNameAsArray(DMSObject obj)
public Page unlock(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page undoCheckOut(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public static Pair getTree(DMSFolder root) throws java.lang.Exception
root
- the root folder of the desired tree
HTMLTree
java.lang.Exception
public java.lang.String getKeywordsAsString(DMSObject obj) throws java.lang.Exception
obj
- the DMSObject which keywords are wanted
java.lang.Exception
public Page showAccess(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page showDocFrames(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
req
- must contain parameter 'folder' specifying the folder which content should be shown. The
value of that parameter must be as follows: java.lang.Exception
public Page dmsFunction(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |