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 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 interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
    • release

      public final void release()
      Specified by:
      release in interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
    • onGenerateReference

      public String onGenerateReference(String generatedReference)
      This method gets called when generating the resource reference
      Specified by:
      onGenerateReference in interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
    • onBeforeCreate

      public boolean onBeforeCreate()
      This method gets called before creating a resource
      Specified by:
      onBeforeCreate in interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
    • onBeforeSave

      public boolean onBeforeSave()
      This method gets called before saving a resource
      Specified by:
      onBeforeSave in interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
    • onAfterSave

      public boolean onAfterSave()
      This method gets called after saving a resource
      Specified by:
      onAfterSave in interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
    • onRemove

      public void onRemove(IStorageKey key)
      This method gets called after removing a resource
      Specified by:
      onRemove in interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
    • onStartRemoving

      public boolean onStartRemoving()
      This method gets called before removing a resource
      Specified by:
      onStartRemoving in interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
    • onPropertyChanged

      public void onPropertyChanged(IProperty property, IUser user)
      This method gets called each time the passed property has been changed
      Specified by:
      onPropertyChanged in interface com.axemble.vdp.resource.classes.IResourceDefinitionExtension
      Parameters:
      property - The changed property
    • getWorkflowModule

      public final IWorkflowModule getWorkflowModule()
    • getPortalModule

      protected final IPortalModule getPortalModule()
      Returns:
      the portalModule
    • getDirectoryModule

      protected final IDirectoryModule getDirectoryModule()
      Returns:
      the directoryModule
    • getProjectModule

      protected final IProjectModule getProjectModule()
      Returns:
      the projectModule
    • getResourceDefinition

      public final IResourceDefinition getResourceDefinition()
    • getResource

      public final IResource getResource()