Class GroupMemberProvisionTaskJobDelegate

  • All Implemented Interfaces:
    org.apache.syncope.core.provisioning.api.job.JobDelegate, org.apache.syncope.core.provisioning.api.job.SchedTaskJobDelegate

    public class GroupMemberProvisionTaskJobDelegate
    extends AbstractSchedTaskJobDelegate<org.apache.syncope.core.persistence.api.entity.task.SchedTask>
    • Constructor Detail

      • GroupMemberProvisionTaskJobDelegate

        public GroupMemberProvisionTaskJobDelegate()
    • Method Detail

      • execute

        @Transactional
        public void execute​(org.apache.syncope.common.lib.types.TaskType taskType,
                            String taskKey,
                            boolean dryRun,
                            org.quartz.JobExecutionContext context)
                     throws org.quartz.JobExecutionException
        Specified by:
        execute in interface org.apache.syncope.core.provisioning.api.job.SchedTaskJobDelegate
        Overrides:
        execute in class AbstractSchedTaskJobDelegate<org.apache.syncope.core.persistence.api.entity.task.SchedTask>
        Throws:
        org.quartz.JobExecutionException
      • doExecute

        protected String doExecute​(boolean dryRun,
                                   String executor,
                                   org.quartz.JobExecutionContext context)
                            throws org.quartz.JobExecutionException
        Description copied from class: AbstractSchedTaskJobDelegate
        The actual execution, delegated to child classes.
        Specified by:
        doExecute in class AbstractSchedTaskJobDelegate<org.apache.syncope.core.persistence.api.entity.task.SchedTask>
        Parameters:
        dryRun - whether to actually touch the data
        executor - the user executing this task
        context - Quartz' execution context, can be used to pass parameters to the job
        Returns:
        the task execution status to be set
        Throws:
        org.quartz.JobExecutionException - if anything goes wrong
      • hasToBeRegistered

        protected boolean hasToBeRegistered​(org.apache.syncope.core.persistence.api.entity.task.TaskExec<?> execution)
        Description copied from class: AbstractSchedTaskJobDelegate
        Template method to determine whether this job's task execution has to be persisted or not.
        Overrides:
        hasToBeRegistered in class AbstractSchedTaskJobDelegate<org.apache.syncope.core.persistence.api.entity.task.SchedTask>
        Parameters:
        execution - task execution
        Returns:
        whether to persist or not