|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.wf.DefaultApplicationAdapter
public class DefaultApplicationAdapter
Default implementation for ApplicationAdapter
Field Summary | |
---|---|
protected Application |
appl
|
protected Resource |
applres
|
static java.lang.String |
idPrefix
|
protected boolean |
localize
|
protected boolean |
running
|
protected java.util.List<org.jdom.Element> |
userprops
|
Constructor Summary | |
---|---|
DefaultApplicationAdapter()
|
Method Summary | |
---|---|
static java.net.URL |
getDescFile(Application appl)
|
Right |
getFinishRight(ActivityInstance ai)
Returns the right which is needed for sending the process to next agent The system checks if the sending user has this right for the agent and org.-unit of the given ai. |
java.util.List<Right> |
getFinishRights()
Return the list of finish rights used in this application. |
java.lang.String |
getNewProcessId(ProcessInstance pi)
The method is called whenever a new process Id is needed |
com.groiss.wf.distri.Packer |
getPacker()
Return the Packer used for distributing activities of this application. |
Resource |
getResource()
|
java.util.List<org.jdom.Element> |
getUserProperties(User u)
Returns the user properties a user can set. |
java.lang.String |
getVersion()
Returns the version of the application code. |
boolean |
isRunning()
Ask the object if it has been started |
boolean |
localizeNames()
returns true if the application is the default application or the configuration has a resource file configured. |
void |
modifyDetailLinks(KeyedList<java.lang.String,Link> links,
java.lang.StringBuilder title,
ProcessInstance pi,
ActivityInstance ai)
You can modify the title and links in the detail view of the process. |
int |
nextNum(java.lang.String id)
|
void |
notifyUser(User u,
ActivityInstance ai)
The method is called when an email-notification about a new worklist entry is sent. |
void |
onAbort(ProcessInstance pi)
A process is aborted |
void |
onAddDocument(ProcessInstance pi,
DMSFolder f,
DMSObject o)
Called when a document is added to a process of this application. |
void |
onChangeAgent(ActivityInstance oldAi,
ActivityInstance newAi)
An ActivityInstance is taken out of the suspension list. |
void |
onReactivate(ProcessInstance pi)
A process is reactivated |
void |
onRemoveDocument(ProcessInstance pi,
DMSFolder f,
DMSObject o)
Called when a document is removed from a process of this application. |
void |
onSeeAgain(ActivityInstance ai)
An ActivityInstance is taken out of the suspension list. |
void |
onSeeLater(ActivityInstance ai)
An ActivityInstance is put into the suspension list. |
void |
reconfigure()
This method is called when the application properties are changed and calls the startup function |
void |
setApplication(Application appl)
|
void |
shutdown()
This method is called on shutdown. |
void |
startup()
Called on @enterprise startup. |
java.lang.String |
upgrade(Application appl)
The method is called when the application server detects that the version of the application in the database is different from the version of the code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Application appl
protected java.util.List<org.jdom.Element> userprops
protected boolean localize
protected Resource applres
protected boolean running
public static final java.lang.String idPrefix
Constructor Detail |
---|
public DefaultApplicationAdapter()
Method Detail |
---|
public void setApplication(Application appl)
setApplication
in interface HasResource
public java.lang.String getNewProcessId(ProcessInstance pi)
ApplicationAdapter
getNewProcessId
in interface ApplicationAdapter
pi
- the process instance for which the id should be generatedpublic int nextNum(java.lang.String id)
public void onSeeLater(ActivityInstance ai)
ApplicationAdapter
onSeeLater
in interface ApplicationAdapter
ai
- an activity instancepublic void onSeeAgain(ActivityInstance ai)
ApplicationAdapter
onSeeAgain
in interface ApplicationAdapter
ai
- an activity instancepublic void onChangeAgent(ActivityInstance oldAi, ActivityInstance newAi)
ApplicationAdapter
onChangeAgent
in interface ApplicationAdapter
oldAi
- the old activity instancenewAi
- the new activity instancepublic void onAbort(ProcessInstance pi)
ApplicationAdapter
onAbort
in interface ApplicationAdapter
pi
- the process instancepublic void onReactivate(ProcessInstance pi)
ApplicationAdapter
onReactivate
in interface ApplicationAdapter
pi
- the process instancepublic void onAddDocument(ProcessInstance pi, DMSFolder f, DMSObject o)
ApplicationAdapter
onAddDocument
in interface ApplicationAdapter
pi
- the process instancef
- the folder where the object will be addedo
- the object to addpublic void onRemoveDocument(ProcessInstance pi, DMSFolder f, DMSObject o)
ApplicationAdapter
onRemoveDocument
in interface ApplicationAdapter
pi
- the process instancef
- the foldero
- the object to addpublic void notifyUser(User u, ActivityInstance ai)
ApplicationAdapter
notifyUser
in interface ApplicationAdapter
u
- the recipientai
- an activity instancepublic java.util.List<org.jdom.Element> getUserProperties(User u)
ApplicationAdapter
getUserProperties
in interface ApplicationAdapter
u
- The user whose properties should be returned
public boolean localizeNames()
localizeNames
in interface HasResource
public Resource getResource()
getResource
in interface HasResource
public Right getFinishRight(ActivityInstance ai)
ApplicationAdapter
getFinishRight
in interface ApplicationAdapter
ai
- the new ActivityInstancepublic java.util.List<Right> getFinishRights()
ApplicationAdapter
getFinishRights
in interface ApplicationAdapter
public com.groiss.wf.distri.Packer getPacker()
ApplicationAdapter
getPacker
in interface ApplicationAdapter
public void modifyDetailLinks(KeyedList<java.lang.String,Link> links, java.lang.StringBuilder title, ProcessInstance pi, ActivityInstance ai)
ApplicationAdapter
modifyDetailLinks
in interface ApplicationAdapter
links
- a keyed list of Link objects, keys are form{i}, documents, notes, history, processpi
- the process instanceai
- the activity instance, may be null (for example when called from search)public void startup()
startup
in interface Lifecycle
public void shutdown()
Lifecycle
shutdown
in interface Lifecycle
public boolean isRunning()
Service
isRunning
in interface Service
public void reconfigure()
reconfigure
in interface Service
public java.lang.String getVersion()
ApplicationAdapter
getVersion
in interface ApplicationAdapter
public java.lang.String upgrade(Application appl) throws java.lang.Exception
ApplicationAdapter
upgrade
in interface ApplicationAdapter
java.lang.Exception
public static java.net.URL getDescFile(Application appl) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |