1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.dto; |
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
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 | |
} |