001: /*
002: * Copyright 2005-2006 The Kuali Foundation.
003: *
004: *
005: * Licensed under the Educational Community License, Version 1.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.opensource.org/licenses/ecl1.php
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package edu.iu.uis.eden.actionlist.web;
018:
019: import java.util.ArrayList;
020: import java.util.HashMap;
021: import java.util.List;
022: import java.util.Map;
023:
024: import org.apache.struts.action.ActionForm;
025:
026: import edu.iu.uis.eden.actionlist.ActionToTake;
027:
028: /**
029: * Struts form for action ActionListAction
030: *
031: * @author rkirkend
032: * @author ewestfal
033: * @author temay
034: */
035: public class ActionListForm extends ActionForm {
036:
037: private static final long serialVersionUID = -6246391732337228007L;
038:
039: private String delegator;
040: private String methodToCall = "";
041: private String helpDeskActionListUserName;
042: private String docType;
043: private String filterLegend;
044: private String actionListType;
045: private Boolean customActionList;
046: private String defaultActionToTake;
047: private List actionsToTake = new ArrayList();
048: private Map defaultActions = new HashMap();
049: private String delegationId;
050: private List delegators;
051: private Boolean hasCustomActions;
052: private String routeLogPopup;
053: private String documentPopup;
054:
055: // "sticky" parameters for paginated action list
056: private Integer currentPage;
057: private String currentSort;
058: private String currentDir;
059:
060: // parameters for paginated action list
061: private Integer page;
062: private String sort;
063: private String dir;
064:
065: public String getRouteLogPopup() {
066: return routeLogPopup;
067: //return Utilities.getApplicationConstant(EdenConstants.ACTION_LIST_ROUTE_LOG_POPUP_KEY).trim();
068: }
069:
070: public void setRouteLogPopup(String routeLogPopup) {
071: this .routeLogPopup = routeLogPopup;
072: }
073:
074: public String getDocumentPopup() {
075: return documentPopup;
076: //return Utilities.getApplicationConstant(EdenConstants.ACTION_LIST_DOCUMENT_POPUP_KEY).trim();
077: }
078:
079: public void setDocumentPopup(String documentPopup) {
080: this .documentPopup = documentPopup;
081: }
082:
083: public String getHelpDeskActionListUserName() {
084: return helpDeskActionListUserName;
085: }
086:
087: public void setHelpDeskActionListUserName(
088: String helpDeskActionListUserName) {
089: this .helpDeskActionListUserName = helpDeskActionListUserName;
090: }
091:
092: public String getMethodToCall() {
093: return methodToCall;
094: }
095:
096: public void setMethodToCall(String methodToCall) {
097: this .methodToCall = methodToCall;
098: }
099:
100: public String getDelegator() {
101: return delegator;
102: }
103:
104: public void setDelegator(String delegator) {
105: this .delegator = delegator;
106: }
107:
108: // public Long[] getFyiRequestSelect() {
109: // return fyiRequestSelect;
110: // }
111: //
112: // public void setFyiRequestSelect(Long[] fyiRequestSelect) {
113: // this.fyiRequestSelect = fyiRequestSelect;
114: // }
115:
116: public String getDocType() {
117: return docType;
118: }
119:
120: public void setDocType(String docType) {
121: this .docType = docType;
122: }
123:
124: public String getFilterLegend() {
125: return filterLegend;
126: }
127:
128: public void setFilterLegend(String filterLegend) {
129: this .filterLegend = filterLegend;
130: }
131:
132: public String getActionListType() {
133: if (actionListType == null) {
134: setActionListType("all");
135: }
136: return actionListType;
137: }
138:
139: public void setActionListType(String actionListType) {
140: this .actionListType = actionListType;
141: }
142:
143: public Boolean getCustomActionList() {
144: return customActionList;
145: }
146:
147: public void setCustomActionList(Boolean customActionList) {
148: this .customActionList = customActionList;
149: }
150:
151: public String getDefaultActionToTake() {
152: return defaultActionToTake;
153: }
154:
155: public void setDefaultActionToTake(String defaultActionToTake) {
156: this .defaultActionToTake = defaultActionToTake;
157: }
158:
159: public List getActionsToTake() {
160: return actionsToTake;
161: }
162:
163: public void setActionsToTake(List actionsToTake) {
164: this .actionsToTake = actionsToTake;
165: }
166:
167: public ActionToTake getActions(int index) {
168: while (getActionsToTake().size() <= index) {
169: getActionsToTake().add(new ActionToTake());
170: }
171: return (ActionToTake) getActionsToTake().get(index);
172: }
173:
174: public Map getDefaultActions() {
175: return defaultActions;
176: }
177:
178: public void setDefaultActions(Map defaultActions) {
179: this .defaultActions = defaultActions;
180: }
181:
182: public String getDelegationId() {
183: return delegationId;
184: }
185:
186: public void setDelegationId(String delegationId) {
187: this .delegationId = delegationId;
188: }
189:
190: public List getDelegators() {
191: return delegators;
192: }
193:
194: public void setDelegators(List delegators) {
195: this .delegators = delegators;
196: }
197:
198: public Boolean getHasCustomActions() {
199: return hasCustomActions;
200: }
201:
202: public void setHasCustomActions(Boolean hasCustomActions) {
203: this .hasCustomActions = hasCustomActions;
204: }
205:
206: public String getDir() {
207: return dir;
208: }
209:
210: public void setDir(String dir) {
211: this .dir = dir;
212: }
213:
214: public Integer getPage() {
215: return page;
216: }
217:
218: public void setPage(Integer page) {
219: this .page = page;
220: }
221:
222: public String getSort() {
223: return sort;
224: }
225:
226: public void setSort(String sort) {
227: this .sort = sort;
228: }
229:
230: public Integer getCurrentPage() {
231: return currentPage;
232: }
233:
234: public void setCurrentPage(Integer currentPage) {
235: this .currentPage = currentPage;
236: }
237:
238: public String getCurrentDir() {
239: return currentDir;
240: }
241:
242: public void setCurrentDir(String currentDir) {
243: this .currentDir = currentDir;
244: }
245:
246: public String getCurrentSort() {
247: return currentSort;
248: }
249:
250: public void setCurrentSort(String currentSort) {
251: this.currentSort = currentSort;
252: }
253:
254: }
|