Coverage Report - org.kuali.rice.kew.dto.DocumentTypeDTO
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentTypeDTO
0%
0/74
N/A
1.043
 
 1  
 /*
 2  
  * Copyright 2005-2008 The Kuali Foundation
 3  
  * 
 4  
  * 
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  * 
 9  
  * http://www.opensource.org/licenses/ecl2.php
 10  
  * 
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.kuali.rice.kew.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 
 21  
 /**
 22  
  * Transport object for document type.
 23  
  * 
 24  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 25  
  */
 26  
 public class DocumentTypeDTO implements Serializable {
 27  
     static final long serialVersionUID = 5266872451859573823L;
 28  
 
 29  
     private Long docTypeParentId;
 30  
     private String docTypeParentName;
 31  
     private boolean docTypeActiveInd;
 32  
     private boolean docTypeActiveInherited;
 33  
     private String docTypeDescription;
 34  
     // this value is the resolved and potentially inherited value
 35  
     private String docTypeHandlerUrl;
 36  
     // this value is the resolved and potentially inherited value
 37  
     private String helpDefinitionUrl;
 38  
     private String docSearchHelpUrl;
 39  
     private Long docTypeId;
 40  
     private String docTypeLabel;
 41  
     private String name;
 42  0
     private Integer docTypeVersion = new Integer(0);
 43  
     private String postProcessorName;
 44  
     private boolean docTypeDefaultApprovePolicy;
 45  
     private boolean docTypeDefaultApprovePolicyInherited;
 46  
     private String docTypeJndiFactoryClass;
 47  
     private String docTypeJndiUrl;
 48  
     private String docTypeCurrentInd;
 49  
     private String blanketApproveGroupId;
 50  
     private String blanketApprovePolicy;
 51  
     private RoutePathDTO routePath;
 52  
     
 53  0
     public DocumentTypeDTO() {
 54  0
     }
 55  
 
 56  
     /**
 57  
      * True if the documents for this group should default to approve status if
 58  
      * no action requests are generated for the document.
 59  
      * 
 60  
      * @return true if the documents should be auto-approved if no action
 61  
      *         requests are generated
 62  
      */
 63  
     public boolean isDefaultApprovePolicy() {
 64  0
         return docTypeDefaultApprovePolicy;
 65  
     }
 66  
 
 67  
     public Long getDocTypeParentId() {
 68  0
         return docTypeParentId;
 69  
     }
 70  
 
 71  
     public boolean isDocTypeActiveInd() {
 72  0
         return docTypeActiveInd;
 73  
     }
 74  
 
 75  
     public boolean isDocTypeActiveInherited() {
 76  0
         return docTypeActiveInherited;
 77  
     }
 78  
 
 79  
     public String getDocTypeDescription() {
 80  0
         return docTypeDescription;
 81  
     }
 82  
 
 83  
     public String getDocTypeHandlerUrl() {
 84  0
         return docTypeHandlerUrl;
 85  
     }
 86  
 
 87  
     public Long getDocTypeId() {
 88  0
         return docTypeId;
 89  
     }
 90  
 
 91  
     /**
 92  
      * @deprecated Use getDocTypeLabel instead
 93  
      * @return
 94  
      */
 95  
     public String getDocTypeName() {
 96  0
         return docTypeLabel;
 97  
     }
 98  
 
 99  
     public String getName() {
 100  0
         return name;
 101  
     }
 102  
 
 103  
     /**
 104  
      * @deprectated No longer needed or used
 105  
      * @return
 106  
      */
 107  
     public Integer getDocTypeVersion() {
 108  0
         return docTypeVersion;
 109  
     }
 110  
 
 111  
     public String getPostProcessorName() {
 112  0
         return postProcessorName;
 113  
     }
 114  
 
 115  
     /**
 116  
      * @deprectated No longer needed or used
 117  
      * @param docTypeVersion
 118  
      */
 119  
     public void setDocTypeVersion(Integer docTypeVersion) {
 120  0
         this.docTypeVersion = docTypeVersion;
 121  0
     }
 122  
 
 123  
     public void setName(String docTypeShortname) {
 124  0
         this.name = docTypeShortname;
 125  0
     }
 126  
 
 127  
     /**
 128  
      * @deprecated use setDocTypeLabel instead
 129  
      * @param docTypeName
 130  
      */
 131  
     public void setDocTypeName(String docTypeName) {
 132  0
         this.docTypeLabel = docTypeName;
 133  0
     }
 134  
 
 135  
     public void setDocTypeId(Long docTypeId) {
 136  0
         this.docTypeId = docTypeId;
 137  0
     }
 138  
 
 139  
     public void setDocTypeHandlerUrl(String docTypeHandlerUrl) {
 140  0
         this.docTypeHandlerUrl = docTypeHandlerUrl;
 141  0
     }
 142  
 
 143  
     public void setDocTypeDescription(String docTypeDescription) {
 144  0
         this.docTypeDescription = docTypeDescription;
 145  0
     }
 146  
 
 147  
     public void setDocTypeActiveInherited(boolean docTypeActiveInherited) {
 148  0
         this.docTypeActiveInherited = docTypeActiveInherited;
 149  0
     }
 150  
 
 151  
     public void setDocTypeActiveInd(boolean docTypeActiveInd) {
 152  0
         this.docTypeActiveInd = docTypeActiveInd;
 153  0
     }
 154  
 
 155  
     public void setDocTypeParentId(Long docGrpId) {
 156  0
         this.docTypeParentId = docGrpId;
 157  0
     }
 158  
 
 159  
     public void setPostProcessorName(String postProcessorName) {
 160  0
         this.postProcessorName = postProcessorName;
 161  0
     }
 162  
 
 163  
     public String getHelpDefinitionUrl() {
 164  0
         return this.helpDefinitionUrl;
 165  
     }
 166  
 
 167  
     public void setHelpDefinitionUrl(String helpDefinitionUrl) {
 168  0
         this.helpDefinitionUrl = helpDefinitionUrl;
 169  0
     }
 170  
     
 171  
     /**
 172  
      * @return the docSearchHelpUrl
 173  
      */
 174  
     public String getDocSearchHelpUrl() {
 175  0
         return this.docSearchHelpUrl;
 176  
     }
 177  
     
 178  
     /**
 179  
      * @param docSearchHelpUrl the docSearchHelpUrl to set
 180  
      */
 181  
     public void setDocSearchHelpUrl(String docSearchHelpUrl) {
 182  0
         this.docSearchHelpUrl = docSearchHelpUrl;
 183  0
     }
 184  
 
 185  
     public String getDocTypeLabel() {
 186  0
         return docTypeLabel;
 187  
     }
 188  
 
 189  
     public void setDocTypeLabel(String docTypeLabel) {
 190  0
         this.docTypeLabel = docTypeLabel;
 191  0
     }
 192  
 
 193  
     public boolean getDocTypeDefaultApprovePolicy() {
 194  0
         return docTypeDefaultApprovePolicy;
 195  
     }
 196  
 
 197  
     public void setDocTypeDefaultApprovePolicy(
 198  
             boolean docTypeDefaultApprovePolicy) {
 199  0
         this.docTypeDefaultApprovePolicy = docTypeDefaultApprovePolicy;
 200  0
     }
 201  
 
 202  
     public boolean isDocTypeDefaultApprovePolicyInherited() {
 203  0
         return docTypeDefaultApprovePolicyInherited;
 204  
     }
 205  
 
 206  
     public void setDocTypeDefaultApprovePolicyInherited(
 207  
             boolean docTypeDefaultApprovePolicyInherited) {
 208  0
         this.docTypeDefaultApprovePolicyInherited = docTypeDefaultApprovePolicyInherited;
 209  0
     }
 210  
 
 211  
     public String getDocTypeJndiFactoryClass() {
 212  0
         return docTypeJndiFactoryClass;
 213  
     }
 214  
 
 215  
     public String getDocTypeJndiUrl() {
 216  0
         return docTypeJndiUrl;
 217  
     }
 218  
 
 219  
     public void setDocTypeJndiFactoryClass(String docTypeJndiFactoryClass) {
 220  0
         this.docTypeJndiFactoryClass = docTypeJndiFactoryClass;
 221  0
     }
 222  
 
 223  
     public void setDocTypeJndiUrl(String docTypeJndiUrl) {
 224  0
         this.docTypeJndiUrl = docTypeJndiUrl;
 225  0
     }
 226  
     
 227  
     public String getDocTypeCurrentInd() {
 228  0
         return docTypeCurrentInd;
 229  
     }
 230  
 
 231  
     public void setDocTypeCurrentInd(String docTypeCurrentInd) {
 232  0
         this.docTypeCurrentInd = docTypeCurrentInd;
 233  0
     }
 234  
 
 235  
     public boolean equals(Object object) {
 236  
         /* just compare the doctype id for now */
 237  
         try {
 238  0
             DocumentTypeDTO docTypeVO = (DocumentTypeDTO) object;
 239  
 
 240  0
             return this.docTypeId.equals(docTypeVO.getDocTypeId());
 241  0
         } catch (Exception ex) {
 242  0
             return false;
 243  
         }
 244  
     }
 245  
 
 246  
     public String getBlanketApprovePolicy() {
 247  0
                 return blanketApprovePolicy;
 248  
         }
 249  
 
 250  
         public void setBlanketApprovePolicy(String blanketApprovePolicy) {
 251  0
                 this.blanketApprovePolicy = blanketApprovePolicy;
 252  0
         }
 253  
 
 254  
         public String getBlanketApproveGroupId() {
 255  0
         return blanketApproveGroupId;
 256  
     }
 257  
 
 258  
     public void setBlanketApproveGroupId(String blanketApproveGroupId) {
 259  0
         this.blanketApproveGroupId = blanketApproveGroupId;
 260  0
     }
 261  
     public String getDocTypeParentName() {
 262  0
         return docTypeParentName;
 263  
     }
 264  
     public void setDocTypeParentName(String docTypeParentName) {
 265  0
         this.docTypeParentName = docTypeParentName;
 266  0
     }
 267  
 
 268  
     public RoutePathDTO getRoutePath() {
 269  0
         return routePath;
 270  
     }
 271  
 
 272  
     public void setRoutePath(RoutePathDTO routePath) {
 273  0
         this.routePath = routePath;
 274  0
     }
 275  
 }