01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.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 edu.iu.uis.eden.user;
18:
19: import edu.iu.uis.eden.routetemplate.ResolvedQualifiedRole;
20:
21: /**
22: * Marks a Role to be used in an ActionRequestValue.
23: *
24: * @author rkirkend
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:
38: public RoleRecipient(String roleName) {
39: this .roleName = roleName;
40: }
41:
42: public RoleRecipient(String roleName, String qualifiedRoleName,
43: ResolvedQualifiedRole resolvedQualifiedRole) {
44: this .roleName = roleName;
45: this .qualifiedRoleName = qualifiedRoleName;
46: this .resolvedQualifiedRole = resolvedQualifiedRole;
47: }
48:
49: public String getDisplayName() {
50: return roleName;
51: }
52:
53: public String getRoleName() {
54: return roleName;
55: }
56:
57: public void setRoleName(String roleName) {
58: this .roleName = roleName;
59: }
60:
61: public String getQualifiedRoleName() {
62: return qualifiedRoleName;
63: }
64:
65: public void setQualifiedRoleName(String qualifiedRoleName) {
66: this .qualifiedRoleName = qualifiedRoleName;
67: }
68:
69: public ResolvedQualifiedRole getResolvedQualifiedRole() {
70: return resolvedQualifiedRole;
71: }
72:
73: public void setResolvedQualifiedRole(
74: ResolvedQualifiedRole resolvedQualifiedRole) {
75: this .resolvedQualifiedRole = resolvedQualifiedRole;
76: }
77:
78: public Recipient getTarget() {
79: return targetRecipient;
80: }
81:
82: public void setTarget(Recipient target) {
83: this.targetRecipient = target;
84: }
85: }
|