Coverage Report - org.kuali.rice.kew.dto.ModifiableDocumentContentDTO
 
Classes in this File Line Coverage Branch Coverage Complexity
ModifiableDocumentContentDTO
0%
0/42
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2009 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  
 /**
 20  
  * Tracks changed to document content for lazy loading
 21  
  *
 22  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 23  
  */
 24  
 public class ModifiableDocumentContentDTO extends DocumentContentDTO {
 25  
 
 26  
         private static final long serialVersionUID = 5174192500065617616L;
 27  
 
 28  0
         private boolean modified = false;
 29  
         
 30  0
         public ModifiableDocumentContentDTO(DocumentContentDTO documentContentVO) {
 31  0
                 super.setRouteHeaderId(documentContentVO.getRouteHeaderId());
 32  0
                 super.setApplicationContent(documentContentVO.getApplicationContent());
 33  0
                 super.setAttributeContent(documentContentVO.getAttributeContent());
 34  0
                 super.setSearchableContent(documentContentVO.getSearchableContent());
 35  0
                 super.setAttributeDefinitions(documentContentVO.getAttributeDefinitions());
 36  0
                 super.setSearchableDefinitions(documentContentVO.getSearchableDefinitions());
 37  0
         }
 38  
         
 39  
         public boolean isModified() {
 40  0
                 return modified;
 41  
         }
 42  
         
 43  
         public void resetModified() {
 44  0
                 modified = false;
 45  0
         }
 46  
 
 47  
         public void addAttributeDefinition(WorkflowAttributeDefinitionDTO definition) {
 48  0
                 modified = true;
 49  0
                 super.addAttributeDefinition(definition);
 50  0
         }
 51  
 
 52  
         public void addSearchableDefinition(WorkflowAttributeDefinitionDTO definition) {
 53  0
                 modified = true;
 54  0
                 super.addSearchableDefinition(definition);
 55  0
         }
 56  
 
 57  
         public void removeAttributeDefinition(WorkflowAttributeDefinitionDTO definition) {
 58  0
                 modified = true;
 59  0
                 super.removeAttributeDefinition(definition);
 60  0
         }
 61  
 
 62  
         public void removeSearchableDefinition(WorkflowAttributeDefinitionDTO definition) {
 63  0
                 modified = true;
 64  0
                 super.removeSearchableDefinition(definition);
 65  0
         }
 66  
 
 67  
         public void setApplicationContent(String applicationContent) {
 68  0
                 modified = true;
 69  0
                 super.setApplicationContent(applicationContent);
 70  0
         }
 71  
 
 72  
         public void setAttributeContent(String attributeContent) {
 73  0
                 modified = true;
 74  0
                 super.setAttributeContent(attributeContent);
 75  0
         }
 76  
 
 77  
         public void setAttributeDefinitions(WorkflowAttributeDefinitionDTO[] attributeDefinitions) {
 78  0
                 modified = true;
 79  0
                 super.setAttributeDefinitions(attributeDefinitions);
 80  0
         }
 81  
 
 82  
         public void setRouteHeaderId(Long routeHeaderId) {
 83  0
                 modified = true;
 84  0
                 super.setRouteHeaderId(routeHeaderId);
 85  0
         }
 86  
 
 87  
         public void setSearchableContent(String searchableContent) {
 88  0
                 modified = true;
 89  0
                 super.setSearchableContent(searchableContent);
 90  0
         }
 91  
 
 92  
         public void setSearchableDefinitions(WorkflowAttributeDefinitionDTO[] searchableDefinitions) {
 93  0
                 modified = true;
 94  0
                 super.setSearchableDefinitions(searchableDefinitions);
 95  0
         }        
 96  
         
 97  
 }