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