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: * Tracks changed to document content for lazy loading
021: *
022: * @author ewestfal
023: */
024: public class ModifiableDocumentContentVO extends DocumentContentVO {
025:
026: private static final long serialVersionUID = 5174192500065617616L;
027:
028: private boolean modified = false;
029:
030: public ModifiableDocumentContentVO(
031: DocumentContentVO documentContentVO) {
032: super .setRouteHeaderId(documentContentVO.getRouteHeaderId());
033: super .setApplicationContent(documentContentVO
034: .getApplicationContent());
035: super .setAttributeContent(documentContentVO
036: .getAttributeContent());
037: super .setSearchableContent(documentContentVO
038: .getSearchableContent());
039: super .setAttributeDefinitions(documentContentVO
040: .getAttributeDefinitions());
041: super .setSearchableDefinitions(documentContentVO
042: .getSearchableDefinitions());
043: }
044:
045: public boolean isModified() {
046: return modified;
047: }
048:
049: public void resetModified() {
050: modified = false;
051: }
052:
053: public void addAttributeDefinition(
054: WorkflowAttributeDefinitionVO definition) {
055: modified = true;
056: super .addAttributeDefinition(definition);
057: }
058:
059: public void addSearchableDefinition(
060: WorkflowAttributeDefinitionVO definition) {
061: modified = true;
062: super .addSearchableDefinition(definition);
063: }
064:
065: public void removeAttributeDefinition(
066: WorkflowAttributeDefinitionVO definition) {
067: modified = true;
068: super .removeAttributeDefinition(definition);
069: }
070:
071: public void removeSearchableDefinition(
072: WorkflowAttributeDefinitionVO definition) {
073: modified = true;
074: super .removeSearchableDefinition(definition);
075: }
076:
077: public void setApplicationContent(String applicationContent) {
078: modified = true;
079: super .setApplicationContent(applicationContent);
080: }
081:
082: public void setAttributeContent(String attributeContent) {
083: modified = true;
084: super .setAttributeContent(attributeContent);
085: }
086:
087: public void setAttributeDefinitions(
088: WorkflowAttributeDefinitionVO[] attributeDefinitions) {
089: modified = true;
090: super .setAttributeDefinitions(attributeDefinitions);
091: }
092:
093: public void setRouteHeaderId(Long routeHeaderId) {
094: modified = true;
095: super .setRouteHeaderId(routeHeaderId);
096: }
097:
098: public void setSearchableContent(String searchableContent) {
099: modified = true;
100: super .setSearchableContent(searchableContent);
101: }
102:
103: public void setSearchableDefinitions(
104: WorkflowAttributeDefinitionVO[] searchableDefinitions) {
105: modified = true;
106: super.setSearchableDefinitions(searchableDefinitions);
107: }
108:
109: }
|