Class AuditableActionExecuterAbstractBase

  • All Implemented Interfaces:
    org.alfresco.repo.action.executer.ActionExecuter, org.alfresco.repo.action.executer.LoggingAwareExecuter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware
    Direct Known Subclasses:
    CreateRecordAction, DeclareAsVersionRecordAction, HideRecordAction, MoveDmRecordAction, PropertySubActionExecuterAbstractBase

    public abstract class AuditableActionExecuterAbstractBase
    extends org.alfresco.repo.action.executer.ActionExecuterAbstractBase
    implements org.springframework.context.ApplicationContextAware
    Auditable action executer abstract base
    Since:
    2.1
    Author:
    Roy Wetherall
    • Field Summary

      • Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase

        actionDefinition, applicableTypes, publicAction
      • Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase

        adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
      • Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase

        name
      • Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter

        PARAM_RESULT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.alfresco.service.cmr.action.Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)  
      protected org.springframework.context.ApplicationContext getApplicationContext()  
      void init()  
      protected boolean isAuditable()  
      protected boolean isAuditedImmediately()  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      void setAuditable​(boolean auditable)  
      void setAuditedImmediately​(boolean auditedImmediately)  
      • Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase

        createActionDefinition, executeImpl, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
      • Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase

        addParameterDefinitions, checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
      • Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase

        setBeanName
      • Methods inherited from interface org.alfresco.repo.action.executer.ActionExecuter

        isExecuteAsynchronously
    • Constructor Detail

      • AuditableActionExecuterAbstractBase

        public AuditableActionExecuterAbstractBase()
    • Method Detail

      • isAuditable

        protected boolean isAuditable()
        Returns:
        True if auditable, false otherwise
      • isAuditedImmediately

        protected boolean isAuditedImmediately()
        Returns:
        True if audited immediately, false otherwise
      • getApplicationContext

        protected org.springframework.context.ApplicationContext getApplicationContext()
        Returns:
        Application context
      • setAuditable

        public void setAuditable​(boolean auditable)
        Parameters:
        auditable - true if auditable, false otherwise
      • setAuditedImmediately

        public void setAuditedImmediately​(boolean auditedImmediately)
        Parameters:
        auditedImmediately - true if to be audited immediately, false to be audited after transaction commits
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        See Also:
        ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
      • init

        public void init()
        Overrides:
        init in class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
        See Also:
        ActionExecuterAbstractBase.init()
      • execute

        public void execute​(org.alfresco.service.cmr.action.Action action,
                            org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
        Specified by:
        execute in interface org.alfresco.repo.action.executer.ActionExecuter
        Overrides:
        execute in class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
        See Also:
        ActionExecuterAbstractBase.execute(org.alfresco.service.cmr.action.Action, org.alfresco.service.cmr.repository.NodeRef)