Class BaseResourceDefinitionExtension
java.lang.Object
com.axemble.vdoc.sdk.workflow.extensions.BaseResourceDefinitionExtension
- All Implemented Interfaces:
com.axemble.vdp.resource.classes.IResourceDefinitionExtension
,Serializable
public abstract class BaseResourceDefinitionExtension
extends Object
implements com.axemble.vdp.resource.classes.IResourceDefinitionExtension, Serializable
This base class is used for resource template extensions
- Author:
- omenuel
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final IDirectoryModule
protected final IPortalModule
protected final IProjectModule
final IResource
final IResourceDefinition
final IWorkflowModule
final void
init
(com.axemble.vdp.resource.domain.ResourceDefinition resourceDefinition, com.axemble.vdp.resource.domain.Resource resource) boolean
This method gets called after saving a resourceboolean
This method gets called before creating a resourceboolean
This method gets called before saving a resourceonGenerateReference
(String generatedReference) This method gets called when generating the resource referencevoid
onPropertyChanged
(IProperty property, IUser user) This method gets called each time the passed property has been changedvoid
onRemove
(IStorageKey key) This method gets called after removing a resourceboolean
This method gets called before removing a resourcefinal void
release()
-
Field Details
-
LOGGER
public static final com.axemble.vdp.utils.Logger LOGGER
-
-
Constructor Details
-
BaseResourceDefinitionExtension
public BaseResourceDefinitionExtension()
-
-
Method Details
-
init
public final void init(com.axemble.vdp.resource.domain.ResourceDefinition resourceDefinition, com.axemble.vdp.resource.domain.Resource resource) - Specified by:
init
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
-
release
public final void release()- Specified by:
release
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
-
onGenerateReference
This method gets called when generating the resource reference- Specified by:
onGenerateReference
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
-
onBeforeCreate
public boolean onBeforeCreate()This method gets called before creating a resource- Specified by:
onBeforeCreate
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
-
onBeforeSave
public boolean onBeforeSave()This method gets called before saving a resource- Specified by:
onBeforeSave
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
-
onAfterSave
public boolean onAfterSave()This method gets called after saving a resource- Specified by:
onAfterSave
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
-
onRemove
This method gets called after removing a resource- Specified by:
onRemove
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
-
onStartRemoving
public boolean onStartRemoving()This method gets called before removing a resource- Specified by:
onStartRemoving
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
-
onPropertyChanged
This method gets called each time the passed property has been changed- Specified by:
onPropertyChanged
in interfacecom.axemble.vdp.resource.classes.IResourceDefinitionExtension
- Parameters:
property
- The changed property
-
getWorkflowModule
-
getPortalModule
- Returns:
- the portalModule
-
getDirectoryModule
- Returns:
- the directoryModule
-
getProjectModule
- Returns:
- the projectModule
-
getResourceDefinition
-
getResource
-