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: /**
020: * Transport object for document type.
021: *
022: * @author rkirkend
023: * @author ewestfal
024: *
025: * @workflow.webservice-object
026: */
027: public class DocumentTypeVO implements java.io.Serializable {
028: static final long serialVersionUID = 5266872451859573823L;
029:
030: private Long docTypeParentId;
031: private String docTypeParentName;
032: private boolean docTypeActiveInd;
033: private boolean docTypeActiveInherited;
034: private String docTypeDescription;
035: private String docTypeHandlerUrl;
036: private Long docTypeId;
037: private String docTypeLabel;
038: private String name;
039: private Integer docTypeVersion = new Integer(0);
040: private String postProcessorName;
041: private boolean docTypeDefaultApprovePolicy;
042: private boolean docTypeDefaultApprovePolicyInherited;
043: private boolean docTypePreApprovalPolicy;
044: private boolean docTypePreApprovalPolicyInherited;
045: private String docTypeJndiFactoryClass;
046: private String docTypeJndiUrl;
047: private String docTypeCurrentInd;
048: private Long blanketApproveWorkgroupId;
049: private String blanketApprovePolicy;
050: public RouteTemplateEntryVO[] routeTemplates;
051: private boolean routeTemplateInherited;
052: private RoutePathVO routePath;
053:
054: public DocumentTypeVO() {
055: }
056:
057: /**
058: * True if the documents for this group should default to approve status if
059: * no action requests are generated for the document.
060: *
061: * @return true if the documents should be auto-approved if no action
062: * requests are generated
063: */
064: public boolean isDefaultApprovePolicy() {
065: return docTypeDefaultApprovePolicy;
066: }
067:
068: public Long getDocTypeParentId() {
069: return docTypeParentId;
070: }
071:
072: public boolean isDocTypeActiveInd() {
073: return docTypeActiveInd;
074: }
075:
076: public boolean isDocTypeActiveInherited() {
077: return docTypeActiveInherited;
078: }
079:
080: public String getDocTypeDescription() {
081: return docTypeDescription;
082: }
083:
084: public String getDocTypeHandlerUrl() {
085: return docTypeHandlerUrl;
086: }
087:
088: public Long getDocTypeId() {
089: return docTypeId;
090: }
091:
092: /**
093: * @deprecated Use getDocTypeLabel instead
094: * @return
095: */
096: public String getDocTypeName() {
097: return docTypeLabel;
098: }
099:
100: public String getName() {
101: return name;
102: }
103:
104: /**
105: * @deprectated No longer needed or used
106: * @return
107: */
108: public Integer getDocTypeVersion() {
109: return docTypeVersion;
110: }
111:
112: public String getPostProcessorName() {
113: return postProcessorName;
114: }
115:
116: public RouteTemplateEntryVO[] getRouteTemplates() {
117: return routeTemplates;
118: }
119:
120: public void setRouteTemplates(RouteTemplateEntryVO[] routeTemplates) {
121: this .routeTemplates = routeTemplates;
122: }
123:
124: /**
125: * @deprectated No longer needed or used
126: * @param docTypeVersion
127: */
128: public void setDocTypeVersion(Integer docTypeVersion) {
129: this .docTypeVersion = docTypeVersion;
130: }
131:
132: public void setName(String docTypeShortname) {
133: this .name = docTypeShortname;
134: }
135:
136: /**
137: * @deprecated userSetDocTypeLabel instead
138: * @param docTypeName
139: */
140: public void setDocTypeName(String docTypeName) {
141: this .docTypeLabel = docTypeName;
142: }
143:
144: public void setDocTypeId(Long docTypeId) {
145: this .docTypeId = docTypeId;
146: }
147:
148: public void setDocTypeHandlerUrl(String docTypeHandlerUrl) {
149: this .docTypeHandlerUrl = docTypeHandlerUrl;
150: }
151:
152: public void setDocTypeDescription(String docTypeDescription) {
153: this .docTypeDescription = docTypeDescription;
154: }
155:
156: public void setDocTypeActiveInherited(boolean docTypeActiveInherited) {
157: this .docTypeActiveInherited = docTypeActiveInherited;
158: }
159:
160: public void setDocTypeActiveInd(boolean docTypeActiveInd) {
161: this .docTypeActiveInd = docTypeActiveInd;
162: }
163:
164: public void setDocTypeParentId(Long docGrpId) {
165: this .docTypeParentId = docGrpId;
166: }
167:
168: // public void setFullName(String fullName) {
169: // this.fullName = fullName;
170: // }
171: //
172: // public String getFullName() {
173: // return fullName;
174: // }
175:
176: public void setPostProcessorName(String postProcessorName) {
177: this .postProcessorName = postProcessorName;
178: }
179:
180: public String getDocTypeLabel() {
181: return docTypeLabel;
182: }
183:
184: public void setDocTypeLabel(String docTypeLabel) {
185: this .docTypeLabel = docTypeLabel;
186: }
187:
188: public boolean getDocTypeDefaultApprovePolicy() {
189: return docTypeDefaultApprovePolicy;
190: }
191:
192: public void setDocTypeDefaultApprovePolicy(
193: boolean docTypeDefaultApprovePolicy) {
194: this .docTypeDefaultApprovePolicy = docTypeDefaultApprovePolicy;
195: }
196:
197: public boolean isDocTypeDefaultApprovePolicyInherited() {
198: return docTypeDefaultApprovePolicyInherited;
199: }
200:
201: public void setDocTypeDefaultApprovePolicyInherited(
202: boolean docTypeDefaultApprovePolicyInherited) {
203: this .docTypeDefaultApprovePolicyInherited = docTypeDefaultApprovePolicyInherited;
204: }
205:
206: public boolean isDocTypePreApprovalPolicy() {
207: return docTypePreApprovalPolicy;
208: }
209:
210: public void setDocTypePreApprovalPolicy(
211: boolean docTypePreApprovalPolicy) {
212: this .docTypePreApprovalPolicy = docTypePreApprovalPolicy;
213: }
214:
215: public boolean isDocTypePreApprovalPolicyInherited() {
216: return docTypePreApprovalPolicyInherited;
217: }
218:
219: public void setDocTypePreApprovalPolicyInherited(
220: boolean docTypePreApprovalPolicyInherited) {
221: this .docTypePreApprovalPolicyInherited = docTypePreApprovalPolicyInherited;
222: }
223:
224: public String getDocTypeJndiFactoryClass() {
225: return docTypeJndiFactoryClass;
226: }
227:
228: public String getDocTypeJndiUrl() {
229: return docTypeJndiUrl;
230: }
231:
232: public void setDocTypeJndiFactoryClass(
233: String docTypeJndiFactoryClass) {
234: this .docTypeJndiFactoryClass = docTypeJndiFactoryClass;
235: }
236:
237: public void setDocTypeJndiUrl(String docTypeJndiUrl) {
238: this .docTypeJndiUrl = docTypeJndiUrl;
239: }
240:
241: public boolean isRouteTemplateInherited() {
242: return routeTemplateInherited;
243: }
244:
245: public void setRouteTemplateInherited(boolean routeTemplateInherited) {
246: this .routeTemplateInherited = routeTemplateInherited;
247: }
248:
249: public String getDocTypeCurrentInd() {
250: return docTypeCurrentInd;
251: }
252:
253: public void setDocTypeCurrentInd(String docTypeCurrentInd) {
254: this .docTypeCurrentInd = docTypeCurrentInd;
255: }
256:
257: public boolean equals(Object object) {
258: /* just compare the doctype id for now */
259: try {
260: DocumentTypeVO docTypeVO = (DocumentTypeVO) object;
261:
262: return this .docTypeId.equals(docTypeVO.getDocTypeId());
263: } catch (Exception ex) {
264: return false;
265: }
266: }
267:
268: public String getBlanketApprovePolicy() {
269: return blanketApprovePolicy;
270: }
271:
272: public void setBlanketApprovePolicy(String blanketApprovePolicy) {
273: this .blanketApprovePolicy = blanketApprovePolicy;
274: }
275:
276: public Long getBlanketApproveWorkgroupId() {
277: return blanketApproveWorkgroupId;
278: }
279:
280: public void setBlanketApproveWorkgroupId(
281: Long blanketApproveWorkgroupId) {
282: this .blanketApproveWorkgroupId = blanketApproveWorkgroupId;
283: }
284:
285: public String getDocTypeParentName() {
286: return docTypeParentName;
287: }
288:
289: public void setDocTypeParentName(String docTypeParentName) {
290: this .docTypeParentName = docTypeParentName;
291: }
292:
293: public RoutePathVO getRoutePath() {
294: return routePath;
295: }
296:
297: public void setRoutePath(RoutePathVO routePath) {
298: this.routePath = routePath;
299: }
300: }
|