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 java.io.Serializable;
20: import java.util.ArrayList;
21: import java.util.List;
22:
23: import edu.iu.uis.eden.Id;
24: import edu.iu.uis.eden.actionrequests.ActionRequestValue;
25:
26: /**
27: * The resolution of a qualified role (role name + data) to a List of recipient
28: * {@link Id}s. In addition to the Ids of the recipients, a ResolvedQualifiedRole
29: * can also contain a label for the role (to be displayed on the Route Log) and
30: * an annotation (to be displayed on the generated {@link ActionRequestValue}).
31: *
32: * @see Id
33: * @see ActionRequestValue
34: *
35: * @author rkirkend
36: */
37: public class ResolvedQualifiedRole implements Serializable {
38:
39: private static final long serialVersionUID = 5397269690550273869L;
40:
41: private List<Id> recipients = new ArrayList<Id>();
42: private String qualifiedRoleLabel;
43: private String annotation;
44:
45: public ResolvedQualifiedRole() {
46: }
47:
48: public ResolvedQualifiedRole(String qualifiedRoleLabel,
49: List<Id> recipients) {
50: this (qualifiedRoleLabel, recipients, "");
51: }
52:
53: public ResolvedQualifiedRole(String qualifiedRoleLabel,
54: List<Id> recipients, String annotation) {
55: this .qualifiedRoleLabel = qualifiedRoleLabel;
56: this .recipients = recipients;
57: this .annotation = annotation;
58: }
59:
60: public List<Id> getRecipients() {
61: return recipients;
62: }
63:
64: public void setRecipients(List<Id> users) {
65: this .recipients = users;
66: }
67:
68: public String getQualifiedRoleLabel() {
69: return qualifiedRoleLabel;
70: }
71:
72: public void setQualifiedRoleLabel(String qualifiedRoleLabel) {
73: this .qualifiedRoleLabel = qualifiedRoleLabel;
74: }
75:
76: public String getAnnotation() {
77: return annotation;
78: }
79:
80: public void setAnnotation(String annotation) {
81: this.annotation = annotation;
82: }
83:
84: }
|