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.routetemplate;
18:
19: import edu.iu.uis.eden.plugin.attributes.RoleAttribute;
20:
21: /**
22: * A defined role on a {@link RoleAttribute}.
23: *
24: * @author jhopf
25: * @author rkirkend
26: */
27: public class Role implements java.io.Serializable {
28:
29: private static final long serialVersionUID = 1211399058525182383L;
30: private String name;
31: private String baseName;
32: private String label;
33:
34: private String returnUrl;;
35:
36: public Role() {
37: }
38:
39: public String getReturnUrl() {
40: return returnUrl;
41: }
42:
43: public void setReturnUrl(String returnUrl) {
44: this .returnUrl = returnUrl;
45: }
46:
47: public Role(Class attributeClass, String roleName, String roleLabel) {
48: this .label = roleLabel;
49: this .baseName = roleName;
50: this .name = attributeClass.getName() + "!" + roleName;
51: }
52:
53: public String getLabel() {
54: return label;
55: }
56:
57: public void setLabel(String roleLabel) {
58: this .label = roleLabel;
59: }
60:
61: public String getName() {
62: return name;
63: }
64:
65: public void setName(String roleName) {
66: this .name = roleName;
67: }
68:
69: public String getBaseName() {
70: return baseName;
71: }
72: }
|