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.routelog.web;
018:
019: import java.util.ArrayList;
020: import java.util.List;
021:
022: import org.apache.struts.action.ActionForm;
023:
024: import edu.iu.uis.eden.util.Utilities;
025:
026: /**
027: * The Struts ActionForm used with {@link RouteLogAction} to display the routelog.
028: *
029: * @author rkirkend
030: * @author temay
031: */
032: public class RouteLogForm extends ActionForm {
033:
034: private static final long serialVersionUID = -3997667167734868281L;
035: private String methodToCall = "";
036: private String routeHeaderId;
037: private List rootRequests = new ArrayList();
038: private int pendingActionRequestCount;
039: private List futureRootRequests = new ArrayList();
040: private int futureActionRequestCount;
041: private boolean showFuture;
042: private String showFutureError;
043: private boolean removeHeader;
044: private boolean lookFuture;
045: private boolean showNotes;
046: private String docId;
047: private String returnUrlLocation = null;
048: private boolean showCloseButton = false;
049:
050: public boolean isShowCloseButton() {
051: return showCloseButton;
052: }
053:
054: public void setShowCloseButton(boolean showCloseButton) {
055: this .showCloseButton = showCloseButton;
056: }
057:
058: public String getReturnUrlLocation() {
059: return returnUrlLocation;
060: }
061:
062: public void setReturnUrlLocation(String returnUrlLocation) {
063: this .returnUrlLocation = returnUrlLocation;
064: }
065:
066: public String getDocId() {
067: return docId;
068: }
069:
070: public void setDocId(String docId) {
071: this .docId = docId;
072: }
073:
074: public boolean isShowFutureHasError() {
075: return !Utilities.isEmpty(getShowFutureError());
076: }
077:
078: public String getShowFutureError() {
079: return showFutureError;
080: }
081:
082: public void setShowFutureError(String showFutureError) {
083: this .showFutureError = showFutureError;
084: }
085:
086: public boolean isShowFuture() {
087: return showFuture;
088: }
089:
090: public void setShowFuture(boolean showReportURL) {
091: this .showFuture = showReportURL;
092: }
093:
094: public String getMethodToCall() {
095: return methodToCall;
096: }
097:
098: public void setMethodToCall(String methodToCall) {
099: this .methodToCall = methodToCall;
100: }
101:
102: public String getRouteHeaderId() {
103: return routeHeaderId;
104: }
105:
106: public void setRouteHeaderId(String routeHeaderId) {
107: this .routeHeaderId = routeHeaderId;
108: }
109:
110: public int getPendingActionRequestCount() {
111: return pendingActionRequestCount;
112: }
113:
114: public void setPendingActionRequestCount(
115: int pendingActionRequestCount) {
116: this .pendingActionRequestCount = pendingActionRequestCount;
117: }
118:
119: public List getRootRequests() {
120: return rootRequests;
121: }
122:
123: public void setRootRequests(List rootRequests) {
124: this .rootRequests = rootRequests;
125: }
126:
127: public int getFutureActionRequestCount() {
128: return futureActionRequestCount;
129: }
130:
131: public void setFutureActionRequestCount(int futureActionRequestCount) {
132: this .futureActionRequestCount = futureActionRequestCount;
133: }
134:
135: public List getFutureRootRequests() {
136: return futureRootRequests;
137: }
138:
139: public void setFutureRootRequests(List futureRootRequests) {
140: this .futureRootRequests = futureRootRequests;
141: }
142:
143: public boolean isRemoveHeader() {
144: return removeHeader;
145: }
146:
147: public void setRemoveHeader(boolean removeBar) {
148: this .removeHeader = removeBar;
149: }
150:
151: public boolean isLookFuture() {
152: return lookFuture;
153: }
154:
155: public void setLookFuture(boolean showFutureLink) {
156: this .lookFuture = showFutureLink;
157: }
158:
159: public boolean isShowNotes() {
160: return showNotes;
161: }
162:
163: public void setShowNotes(boolean showNotes) {
164: this.showNotes = showNotes;
165: }
166: }
|