View Javadoc

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