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.web;
18:
19: import java.io.Serializable;
20: import java.util.Map;
21:
22: import edu.iu.uis.eden.util.CodeTranslator;
23:
24: /**
25: * A bean for the web-tier when represents the recipient of an Ad Hoc request.
26: *
27: * @author xqi
28: */
29: public class AppSpecificRouteRecipient implements Serializable {
30:
31: private static final long serialVersionUID = 6587140192756322878L;
32:
33: private static Map actionRequestCds = CodeTranslator.arLabels;
34:
35: protected String type;
36: protected String actionRequested;
37: protected String id; //can be networkId or workgroupname
38:
39: public String getActionRequested() {
40: return actionRequested;
41: }
42:
43: public void setActionRequested(String actionRequested) {
44: this .actionRequested = actionRequested;
45: }
46:
47: public String getId() {
48: return id;
49: }
50:
51: public void setId(String id) {
52: this .id = id;
53: }
54:
55: public String getType() {
56: return type;
57: }
58:
59: public void setType(String type) {
60: this .type = type;
61: }
62:
63: public String getActionRequestedValue() {
64: if (getActionRequested() != null
65: && !getActionRequested().trim().equals("")) {
66: return (String) actionRequestCds.get(getActionRequested());
67: }
68: return null;
69: }
70:
71: }
|