Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.rice.kew.routelog.web;
 
 
 import java.util.List;
The Struts ActionForm used with RouteLogAction to display the routelog.

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
 
 public class RouteLogForm extends KualiForm {
 
     private static final long serialVersionUID = -3997667167734868281L;
     private String methodToCall = "";
     private String documentId;
     private List rootRequests = new ArrayList();
     private int pendingActionRequestCount;
     private int futureActionRequestCount;
     private boolean showFuture;
     private String showFutureError;
     private boolean removeHeader;
     private boolean lookFuture;
     private boolean showNotes;
     private String docId;
     private String returnUrlLocation = null;
     private boolean showCloseButton = false;
     private String newRouteLogActionMessage;
     private boolean enableLogAction = false;
 
     public boolean isShowCloseButton() {
         return ;
     }
     public void setShowCloseButton(boolean showCloseButton) {
         this. = showCloseButton;
     }
     public String getReturnUrlLocation() {
         return ;
     }
     public void setReturnUrlLocation(String returnUrlLocation) {
         this. = returnUrlLocation;
     }
     public String getDocId() {
         return ;
     }
     public void setDocId(String docId) {
         this. = docId;
     }
     public boolean isShowFutureHasError() {
         return !org.apache.commons.lang.StringUtils.isEmpty(getShowFutureError());
     }
     public String getShowFutureError() {
         return ;
     }
     public void setShowFutureError(String showFutureError) {
         this. = showFutureError;
     }
     public boolean isShowFuture() {
         return ;
     }
     public void setShowFuture(boolean showReportURL) {
         this. = showReportURL;
     }
     public String getMethodToCall() {
         return ;
     }
     public void setMethodToCall(String methodToCall) {
         this. = methodToCall;
     }
     public String getDocumentId() {
         return ;
     }
     public void setDocumentId(String documentId) {
         this. = documentId;
     }
 
     public int getPendingActionRequestCount() {
        return ;
    }
    public void setPendingActionRequestCount(int pendingActionRequestCount) {
        this. = pendingActionRequestCount;
    }
    public List getRootRequests() {
        return ;
    }
    public void setRootRequests(List rootRequests) {
        this. = rootRequests;
    }
    public int getFutureActionRequestCount() {
        return ;
    }
    public void setFutureActionRequestCount(int futureActionRequestCount) {
        this. = futureActionRequestCount;
    }
    public List getFutureRootRequests() {
        return ;
    }
    public void setFutureRootRequests(List futureRootRequests) {
        this. = futureRootRequests;
    }
    public boolean isRemoveHeader() {
        return ;
    }
    public void setRemoveHeader(boolean removeBar) {
        this. = removeBar;
    }
    public boolean isLookFuture() {
        return ;
    }
    public void setLookFuture(boolean showFutureLink) {
        this. = showFutureLink;
    }
	public boolean isShowNotes() {
		return ;
	}
	public void setShowNotes(boolean showNotes) {
		this. = showNotes;
	}
	}
	public void setNewRouteLogActionMessage(String newRouteLogActionMessage) {
		this. = newRouteLogActionMessage;
	}
	public boolean isEnableLogAction() {
		return this.;
	}
	public void setEnableLogAction(boolean enableLogAction) {
		this. = enableLogAction;
	}
		Properties parameters = new Properties();
        parameters.put("showFuture"isShowFuture());
        parameters.put("showNotes"isShowNotes());
		if (getDocumentId() != null) {
			parameters.put("documentId"getDocumentId());
		}
		if (getDocId() != null) {
			parameters.put("docId"getDocId());
		}
		if (getReturnUrlLocation() != null) {
			parameters.put("backUrl"getReturnUrlLocation());
		}
        String url = UrlFactory.parameterizeUrl("RouteLog.do"parameters);
        String krBaseUrl = ConfigContext.getCurrentContextConfig().getKRBaseURL();
        url = "<div class=\"lookupcreatenew\" title=\"Refresh\"><a href=\"" + url + "\"><img src=\""+krBaseUrl+"/images/tinybutton-refresh.gif\" alt=\"refresh\"></a></div>";
        return url;
	}
New to GrepCode? Check out our FAQ X