Class BaseDocumentExtension
java.lang.Object
com.axemble.vdoc.sdk.document.extensions.BaseDocumentExtension
- All Implemented Interfaces:
com.axemble.vdp.ui.core.document.extensions.IDocumentExtension,Serializable
public abstract class BaseDocumentExtension
extends Object
implements com.axemble.vdp.ui.core.document.extensions.IDocumentExtension
This base class provides direct access to the SDK API.
It implements
IDocumentExtension interface.
The following methods are available:
- getWorkflowModule() : the module to manipulate the workflow system;
- getWorkflowInstance() : the workflow instance;
- getResourceController() : the resource controller;
- Version:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final IDirectoryModulecom.axemble.vdp.ui.core.document.CoreDocumentprotected final IPortalModuleprotected final IProjectModuleRetrieves the resource controller.Retrieves the main workflow instance object.Retrieves the workflow module objectvoidinit()This method is called when the extension is available.voidinit(com.axemble.vdp.ui.core.document.CoreDocument document) booleanisOnChangeSubscriptionOn(IProperty property) This method is called for each property of the current form (workflow, task, action).booleanisOnChangeSubscriptionOn(com.axemble.vdp.ui.core.document.fields.ICoreField field) booleanbooleanbooleanvoidonAfterFieldChanged(com.axemble.vdp.ui.core.document.fields.ICoreField field) booleanvoidonAfterPropertyChanged(IProperty property) booleanbooleanbooleanbooleanonAfterSubmit(IAction action) After submit eventbooleanonAfterSubmit(IStorageKey actionKey) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanonBeforeSubmit(IAction action) Before submit eventbooleanonBeforeSubmit(IStorageKey actionKey) voidonFieldChanged(com.axemble.vdp.ui.core.document.fields.ICoreField field) voidonPropertyChanged(IProperty property) This method gets called each time the passed property has been changedvoidrelease()
-
Field Details
-
LOGGER
protected static com.axemble.vdp.utils.Logger LOGGER
-
-
Constructor Details
-
BaseDocumentExtension
public BaseDocumentExtension()
-
-
Method Details
-
onBeforeRemind
public boolean onBeforeRemind()- Specified by:
onBeforeRemindin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
init
public void init(com.axemble.vdp.ui.core.document.CoreDocument document) - Specified by:
initin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
init
public void init()This method is called when the extension is available. It allows initialization of various specific members. -
isOnChangeSubscriptionOn
public boolean isOnChangeSubscriptionOn(com.axemble.vdp.ui.core.document.fields.ICoreField field) - Specified by:
isOnChangeSubscriptionOnin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
isOnChangeSubscriptionOn
This method is called for each property of the current form (workflow, task, action).- Parameters:
property- The loaded property- Returns:
- true if you wish to call back the server when the property gets changed, otherwise false
-
onAfterLoad
public boolean onAfterLoad()- Specified by:
onAfterLoadin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterSave
public boolean onAfterSave()- Specified by:
onAfterSavein interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterSubmit
- Specified by:
onAfterSubmitin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeAbort
public boolean onBeforeAbort()- Specified by:
onBeforeAbortin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeClose
public boolean onBeforeClose()- Specified by:
onBeforeClosein interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeLoad
public boolean onBeforeLoad()- Specified by:
onBeforeLoadin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeSave
public boolean onBeforeSave()- Specified by:
onBeforeSavein interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeSubmit
Before submit event- Parameters:
action- The workflow action pressed by the logged on user- Returns:
- true if everything went right, otherwise false.
-
onAfterSubmit
After submit event- Parameters:
action- The workflow action pressed by the logged on user- Returns:
- true if everything went right, otherwise false.
-
onBeforeSubmit
- Specified by:
onBeforeSubmitin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onFieldChanged
public void onFieldChanged(com.axemble.vdp.ui.core.document.fields.ICoreField field) - Specified by:
onFieldChangedin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onPropertyChanged
This method gets called each time the passed property has been changed- Parameters:
property- The changed property
-
release
public void release()- Specified by:
releasein interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
getDocument
public com.axemble.vdp.ui.core.document.CoreDocument getDocument()- Returns:
- The CoreDocument representing the main workflow instance
-
getResourceController
Retrieves the resource controller.- Returns:
- The
IResourceControllerobject
-
getWorkflowInstance
Retrieves the main workflow instance object.- Returns:
- The
IWorkflowInstanceobject.
-
getWorkflowModule
Retrieves the workflow module object- Returns:
- the
IWorkflowModuleobject.
-
getPortalModule
- Returns:
- the portalModule
-
getDirectoryModule
- Returns:
- the directoryModule
-
getProjectModule
- Returns:
- the projectModule
-
onBeforeCancelDelegation
public boolean onBeforeCancelDelegation()- Specified by:
onBeforeCancelDelegationin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeDelegate
public boolean onBeforeDelegate()- Specified by:
onBeforeDelegatein interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeDelegateTaskOnly
public boolean onBeforeDelegateTaskOnly()- Specified by:
onBeforeDelegateTaskOnlyin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeRefuseDelegation
public boolean onBeforeRefuseDelegation()- Specified by:
onBeforeRefuseDelegationin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeSendInformation
public boolean onBeforeSendInformation()- Specified by:
onBeforeSendInformationin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterCancelDelegation
public boolean onAfterCancelDelegation()- Specified by:
onAfterCancelDelegationin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterDelegate
public boolean onAfterDelegate()- Specified by:
onAfterDelegatein interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterDelegateTaskOnly
public boolean onAfterDelegateTaskOnly()- Specified by:
onAfterDelegateTaskOnlyin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterRefuseDelegation
public boolean onAfterRefuseDelegation()- Specified by:
onAfterRefuseDelegationin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterSendInformation
public boolean onAfterSendInformation()- Specified by:
onAfterSendInformationin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterFieldChanged
public void onAfterFieldChanged(com.axemble.vdp.ui.core.document.fields.ICoreField field) - Specified by:
onAfterFieldChangedin interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterPropertyChanged
-