Created
January 2, 2019 10:27
-
-
Save vierbergenlars/4b6aec9d4b1adcd629d9d730d2dd9906 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.activiti.extension.bean.eu.xenit.xyz.repo.workflow.activiti; | |
import net.sf.acegisecurity.providers.dao.User; | |
import org.activiti.engine.delegate.DelegateExecution; | |
import org.activiti.engine.delegate.DelegateTask; | |
import org.activiti.engine.delegate.ExecutionListener; | |
import org.activiti.engine.delegate.JavaDelegate; | |
import org.activiti.engine.delegate.TaskListener; | |
import org.activiti.engine.delegate.VariableScope; | |
import org.alfresco.repo.security.authentication.AuthenticationUtil; | |
import org.alfresco.service.ServiceRegistry; | |
import org.alfresco.service.cmr.repository.NodeService; | |
import org.alfresco.service.cmr.security.AuthenticationService; | |
import org.alfresco.service.cmr.security.PersonService; | |
import org.alfresco.service.cmr.workflow.WorkflowException; | |
import org.alfresco.service.cmr.workflow.WorkflowService; | |
import org.apache.log4j.Logger; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Component; | |
@Component("XyzAuthenticationHandler") | |
public class AuthenticationHandler implements TaskListener, ExecutionListener { | |
private static Logger logger= Logger.getLogger(AuthenticationHandler.class); | |
@Autowired | |
private AuthenticationService authenticationService; | |
private void notify(VariableScope scope, String workflowId) { | |
// Implementation | |
} | |
@Override | |
public void notify(DelegateTask delegateTask) { | |
notify(delegateTask, delegateTask.getProcessInstanceId()); | |
} | |
@Override | |
public void notify(DelegateExecution execution) throws Exception { | |
notify(execution, execution.getProcessInstanceId()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment