mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
35 lines
1.5 KiB
Java
35 lines
1.5 KiB
Java
package org.alfresco.repo.invitation.activiti;
|
|
|
|
import java.util.Map;
|
|
|
|
import org.activiti.engine.delegate.DelegateExecution;
|
|
import org.alfresco.repo.invitation.ModeratedActionReject;
|
|
import org.alfresco.repo.invitation.WorkflowModelModeratedInvitation;
|
|
|
|
/**
|
|
* Activiti delegate that is executed when a invitation-moderated process is reviewed
|
|
* and rejected.
|
|
*
|
|
* <b>Same behaviour as {@link ModeratedActionReject}</b>
|
|
*
|
|
* @author Nick Smith
|
|
* @author Frederik Heremans
|
|
* @since 4.0
|
|
*/
|
|
public class RejectModeratedInviteDelegate extends AbstractInvitationDelegate
|
|
{
|
|
@Override
|
|
public void execute(DelegateExecution execution) throws Exception
|
|
{
|
|
Map<String, Object> vars = execution.getVariables();
|
|
String siteName = (String) vars.get(WorkflowModelModeratedInvitation.wfVarResourceName);
|
|
String invitee = (String) vars.get(WorkflowModelModeratedInvitation.wfVarInviteeUserName);
|
|
String role = (String) vars.get(WorkflowModelModeratedInvitation.wfVarInviteeRole);
|
|
String reviewer = (String) vars.get(WorkflowModelModeratedInvitation.wfVarReviewer);
|
|
String resourceType = (String) vars.get(WorkflowModelModeratedInvitation.wfVarResourceType);
|
|
String reviewComments = (String) vars.get(WorkflowModelModeratedInvitation.wfVarReviewComments);
|
|
|
|
invitationService.rejectModeratedInvitation(siteName, invitee, role, reviewer, resourceType, reviewComments);
|
|
}
|
|
}
|