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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final IDirectoryModule
com.axemble.vdp.ui.core.document.CoreDocument
protected final IPortalModule
protected final IProjectModule
Retrieves the resource controller.Retrieves the main workflow instance object.Retrieves the workflow module objectvoid
init()
This method is called when the extension is available.void
init
(com.axemble.vdp.ui.core.document.CoreDocument document) boolean
isOnChangeSubscriptionOn
(IProperty property) This method is called for each property of the current form (workflow, task, action).boolean
isOnChangeSubscriptionOn
(com.axemble.vdp.ui.core.document.fields.ICoreField field) boolean
boolean
boolean
void
onAfterFieldChanged
(com.axemble.vdp.ui.core.document.fields.ICoreField field) boolean
void
onAfterPropertyChanged
(IProperty property) boolean
boolean
boolean
boolean
onAfterSubmit
(IAction action) After submit eventboolean
onAfterSubmit
(IStorageKey actionKey) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
onBeforeSubmit
(IAction action) Before submit eventboolean
onBeforeSubmit
(IStorageKey actionKey) void
onFieldChanged
(com.axemble.vdp.ui.core.document.fields.ICoreField field) void
onPropertyChanged
(IProperty property) This method gets called each time the passed property has been changedvoid
release()
-
Field Details
-
LOGGER
protected static com.axemble.vdp.utils.Logger LOGGER
-
-
Constructor Details
-
BaseDocumentExtension
public BaseDocumentExtension()
-
-
Method Details
-
onBeforeRemind
public boolean onBeforeRemind()- Specified by:
onBeforeRemind
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
init
public void init(com.axemble.vdp.ui.core.document.CoreDocument document) - Specified by:
init
in 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:
isOnChangeSubscriptionOn
in 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:
onAfterLoad
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterSave
public boolean onAfterSave()- Specified by:
onAfterSave
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterSubmit
- Specified by:
onAfterSubmit
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeAbort
public boolean onBeforeAbort()- Specified by:
onBeforeAbort
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeClose
public boolean onBeforeClose()- Specified by:
onBeforeClose
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeLoad
public boolean onBeforeLoad()- Specified by:
onBeforeLoad
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeSave
public boolean onBeforeSave()- Specified by:
onBeforeSave
in 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:
onBeforeSubmit
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onFieldChanged
public void onFieldChanged(com.axemble.vdp.ui.core.document.fields.ICoreField field) - Specified by:
onFieldChanged
in 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:
release
in 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
IResourceController
object
-
getWorkflowInstance
Retrieves the main workflow instance object.- Returns:
- The
IWorkflowInstance
object.
-
getWorkflowModule
Retrieves the workflow module object- Returns:
- the
IWorkflowModule
object.
-
getPortalModule
- Returns:
- the portalModule
-
getDirectoryModule
- Returns:
- the directoryModule
-
getProjectModule
- Returns:
- the projectModule
-
onBeforeCancelDelegation
public boolean onBeforeCancelDelegation()- Specified by:
onBeforeCancelDelegation
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeDelegate
public boolean onBeforeDelegate()- Specified by:
onBeforeDelegate
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeDelegateTaskOnly
public boolean onBeforeDelegateTaskOnly()- Specified by:
onBeforeDelegateTaskOnly
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeRefuseDelegation
public boolean onBeforeRefuseDelegation()- Specified by:
onBeforeRefuseDelegation
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onBeforeSendInformation
public boolean onBeforeSendInformation()- Specified by:
onBeforeSendInformation
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterCancelDelegation
public boolean onAfterCancelDelegation()- Specified by:
onAfterCancelDelegation
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterDelegate
public boolean onAfterDelegate()- Specified by:
onAfterDelegate
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterDelegateTaskOnly
public boolean onAfterDelegateTaskOnly()- Specified by:
onAfterDelegateTaskOnly
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterRefuseDelegation
public boolean onAfterRefuseDelegation()- Specified by:
onAfterRefuseDelegation
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterSendInformation
public boolean onAfterSendInformation()- Specified by:
onAfterSendInformation
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterFieldChanged
public void onAfterFieldChanged(com.axemble.vdp.ui.core.document.fields.ICoreField field) - Specified by:
onAfterFieldChanged
in interfacecom.axemble.vdp.ui.core.document.extensions.IDocumentExtension
-
onAfterPropertyChanged
-