View Javadoc

1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kew.user;
17  
18  import org.kuali.rice.kew.actionrequest.Recipient;
19  import org.kuali.rice.kew.rule.ResolvedQualifiedRole;
20  
21  /**
22   * Marks a Role to be used in an ActionRequestValue.
23   *
24   * @author Kuali Rice Team (rice.collab@kuali.org)
25   */
26  public class RoleRecipient implements Recipient {
27  
28  	private static final long serialVersionUID = -8694150869017306593L;
29  
30  	private String roleName;
31  	private String qualifiedRoleName;
32  	private ResolvedQualifiedRole resolvedQualifiedRole;
33  	private Recipient targetRecipient;
34  
35  	public RoleRecipient(){}
36  
37  	public RoleRecipient(String roleName) {
38  		this.roleName = roleName;
39  	}
40  
41  	public RoleRecipient(String roleName, String qualifiedRoleName, ResolvedQualifiedRole resolvedQualifiedRole) {
42  		this.roleName = roleName;
43  		this.qualifiedRoleName = qualifiedRoleName;
44  		this.resolvedQualifiedRole = resolvedQualifiedRole;
45  	}
46  
47  	public String getRoleName() {
48  		return roleName;
49  	}
50  
51  	public void setRoleName(String roleName) {
52  		this.roleName = roleName;
53  	}
54  
55  	public String getQualifiedRoleName() {
56  		return qualifiedRoleName;
57  	}
58  
59  	public void setQualifiedRoleName(String qualifiedRoleName) {
60  		this.qualifiedRoleName = qualifiedRoleName;
61  	}
62  
63  	public ResolvedQualifiedRole getResolvedQualifiedRole() {
64  		return resolvedQualifiedRole;
65  	}
66  
67  	public void setResolvedQualifiedRole(ResolvedQualifiedRole resolvedQualifiedRole) {
68  		this.resolvedQualifiedRole = resolvedQualifiedRole;
69  	}
70  
71  	public Recipient getTarget() {
72  		return targetRecipient;
73  	}
74  
75  	public void setTarget(Recipient target) {
76  		this.targetRecipient = target;
77  	}
78  }