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.clientapp.vo;
018:
019: import edu.iu.uis.eden.EdenConstants;
020:
021: /**
022: * Represents a route level
023: *
024: * @author rkirkend
025: * @author ewestfal
026: *
027: * @deprecated use RouteNodeVO instead
028: * @workflow.webservice-object
029: */
030: public class RouteTemplateEntryVO implements java.io.Serializable,
031: Cloneable {
032:
033: static final long serialVersionUID = -6088763707485186852L;
034: private Long docTypeId;
035: private String routeMethodName;
036: private Integer routeLevel;
037: private Long exceptionWorkgroupId; // the workgroup that gets the document if this route method throws an exception
038: private String routeLevelName;
039: private boolean finalApprover;
040: private boolean mandatoryRoute;
041: private Integer jrf_ver_nbr;
042:
043: public RouteTemplateEntryVO() {
044: }
045:
046: public RouteTemplateEntryVO(int docTypeId, String routeMethodName,
047: int workgroupId, int routeLevel, String routeLevelName,
048: boolean finalApprover, boolean manadatoryRoute) {
049: this .docTypeId = new Long(docTypeId);
050: this .exceptionWorkgroupId = new Long(workgroupId);
051: this .finalApprover = finalApprover;
052: this .routeLevel = new Integer(routeLevel);
053: this .routeLevelName = routeLevelName;
054: this .routeMethodName = routeMethodName;
055: this .mandatoryRoute = manadatoryRoute;
056: }
057:
058: public Long getDocTypeId() {
059: return docTypeId;
060: }
061:
062: public Long getExceptionWorkgroupId() {
063: return exceptionWorkgroupId;
064: }
065:
066: public Integer getJrf_ver_nbr() {
067: return jrf_ver_nbr;
068: }
069:
070: public Integer getRouteLevel() {
071: return routeLevel;
072: }
073:
074: public String getRouteLevelName() {
075: return routeLevelName;
076: }
077:
078: public String getRouteMethodName() {
079: return routeMethodName;
080: }
081:
082: public void setRouteMethodName(String routeMethodName) {
083: this .routeMethodName = routeMethodName;
084: }
085:
086: public void setRouteLevelName(String routeLevelName) {
087: this .routeLevelName = routeLevelName;
088: }
089:
090: public void setRouteLevel(Integer routeLevel) {
091: this .routeLevel = routeLevel;
092: }
093:
094: public void setJrf_ver_nbr(Integer jrf_ver_nbr) {
095: this .jrf_ver_nbr = jrf_ver_nbr;
096: }
097:
098: public void setExceptionWorkgroupId(Long exceptionWorkgroupId) {
099: this .exceptionWorkgroupId = exceptionWorkgroupId;
100: }
101:
102: public void setDocTypeId(Long docTypeId) {
103: this .docTypeId = docTypeId;
104: }
105:
106: public void setFinalApprover(boolean finalApprover) {
107: this .finalApprover = finalApprover;
108: }
109:
110: public boolean isFinalApprover() {
111: return finalApprover;
112: }
113:
114: public boolean isMandatoryRoute() {
115: return mandatoryRoute;
116: }
117:
118: public void setMandatoryRoute(boolean mandatoryRoute) {
119: this .mandatoryRoute = mandatoryRoute;
120: }
121:
122: public void setMandatoryRoute(String mandatoryRoute) {
123: this .mandatoryRoute = EdenConstants.TRUE_CD
124: .equals(mandatoryRoute);
125:
126: if (mandatoryRoute == null) {
127: this .mandatoryRoute = false;
128: }
129: }
130:
131: }
|