View Javadoc
1   /**
2    * Copyright 2005-2014 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.krms.impl.rule;
17  
18  import org.kuali.rice.kew.api.action.ActionRequest;
19  import org.kuali.rice.kew.api.action.ActionType;
20  import org.kuali.rice.kew.framework.postprocessor.ActionTakenEvent;
21  import org.kuali.rice.kew.framework.postprocessor.DocumentRouteLevelChange;
22  import org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange;
23  import org.kuali.rice.kim.api.identity.Person;
24  import org.kuali.rice.krad.bo.AdHocRoutePerson;
25  import org.kuali.rice.krad.bo.AdHocRouteWorkgroup;
26  import org.kuali.rice.krad.bo.DocumentHeader;
27  import org.kuali.rice.krad.bo.Note;
28  import org.kuali.rice.krad.bo.PersistableBusinessObject;
29  import org.kuali.rice.krad.bo.PersistableBusinessObjectExtension;
30  import org.kuali.rice.krad.maintenance.MaintenanceDocument;
31  import org.kuali.rice.krad.document.authorization.PessimisticLock;
32  import org.kuali.rice.krad.maintenance.Maintainable;
33  import org.kuali.rice.krad.rules.rule.event.DocumentEvent;
34  import org.kuali.rice.krad.util.NoteType;
35  import org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluator;
36  
37  import java.util.Collection;
38  import java.util.List;
39  
40  public class AgendaEditorMaintenanceDocumentDummy implements MaintenanceDocument {
41      protected Maintainable oldMaintainableObject;
42      protected Maintainable newMaintainableObject;
43  
44      public String getXmlDocumentContents() {
45          return null;
46      }
47  
48      public Maintainable getNewMaintainableObject() {
49          return this.newMaintainableObject;
50      }
51  
52      public Maintainable getOldMaintainableObject() {
53          return this.oldMaintainableObject;
54      }
55  
56      public void setXmlDocumentContents(String documentContents) {
57      }
58  
59      public void setNewMaintainableObject(Maintainable newMaintainableObject) {
60          this.newMaintainableObject = newMaintainableObject;
61      }
62  
63      public void setOldMaintainableObject(Maintainable oldMaintainableObject) {
64          this.oldMaintainableObject = oldMaintainableObject;
65      }
66  
67      public Object getDocumentDataObject() {
68          return null;
69      }
70  
71      public void populateXmlDocumentContentsFromMaintainables() {
72      }
73  
74      public void populateMaintainablesFromXmlDocumentContents() {
75      }
76  
77      public boolean isOldDataObjectInDocument() {
78          return false;
79      }
80  
81      public boolean isNew() {
82          return false;
83      }
84  
85      public boolean isEdit() {
86          return false;
87      }
88  
89      public boolean isNewWithExisting() {
90          return false;
91      }
92  
93      public boolean isFieldsClearedOnCopy() {
94          return false;
95      }
96  
97      public void setFieldsClearedOnCopy(boolean keysClearedOnCopy) {
98      }
99  
100     public boolean isDisplayTopicFieldInNotes() {
101         return false;
102     }
103 
104     public void setDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) {
105     }
106 
107     public DocumentHeader getDocumentHeader() {
108         return null;
109     }
110 
111     public void setDocumentHeader(DocumentHeader documentHeader) {
112     }
113 
114     public String getDocumentNumber() {
115         return null;
116     }
117 
118     public void setDocumentNumber(String documentHeaderId) {
119     }
120 
121     public void populateDocumentForRouting() {
122     }
123 
124     public String serializeDocumentToXml() {
125         return null;
126     }
127 
128     public String getXmlForRouteReport() {
129         return null;
130     }
131 
132     public void doRouteLevelChange(DocumentRouteLevelChange levelChangeEvent) {
133     }
134 
135     public void doActionTaken(ActionTakenEvent event) {
136     }
137 
138     public void afterActionTaken(ActionType performed, ActionTakenEvent event) {
139     }
140 
141     public void afterWorkflowEngineProcess(boolean successfullyProcessed) {
142     }
143 
144     public void beforeWorkflowEngineProcess() {
145     }
146 
147     public List<String> getWorkflowEngineDocumentIdsToLock() {
148         return null;
149     }
150 
151     public String getDocumentTitle() {
152         return null;
153     }
154 
155     public List<AdHocRoutePerson> getAdHocRoutePersons() {
156         return null;
157     }
158 
159     public List<AdHocRouteWorkgroup> getAdHocRouteWorkgroups() {
160         return null;
161     }
162 
163     public void setAdHocRoutePersons(List<AdHocRoutePerson> adHocRoutePersons) {
164     }
165 
166     public void setAdHocRouteWorkgroups(List<AdHocRouteWorkgroup> adHocRouteWorkgroups) {
167     }
168 
169     public void prepareForSave() {
170     }
171 
172     public void validateBusinessRules(DocumentEvent event) {
173     }
174 
175     public void prepareForSave(DocumentEvent event) {
176     }
177 
178     public void postProcessSave(DocumentEvent event) {
179     }
180 
181     public void processAfterRetrieve() {
182     }
183 
184     public boolean getAllowsCopy() {
185         return false;
186     }
187 
188     public List<DocumentEvent> generateSaveEvents() {
189         return null;
190     }
191 
192     public void doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) {
193     }
194 
195     public NoteType getNoteType() {
196         return null;
197     }
198 
199     public PersistableBusinessObject getNoteTarget() {
200         return null;
201     }
202 
203     public void addNote(Note note) {
204     }
205 
206     public List<Note> getNotes() {
207         return null;
208     }
209 
210     public void setNotes(List<Note> notes) {
211     }
212 
213     public Note getNote(int index) {
214         return null;
215     }
216 
217     public boolean removeNote(Note note) {
218         return false;
219     }
220 
221     public List<ActionRequest> getActionRequests() {
222         return null;
223     }
224 
225     public String getSuperUserAnnotation() {
226         return null;
227     }
228 
229     public void setSuperUserAnnotation(String superUserAnnotation) {
230     }
231 
232     public List<PessimisticLock> getPessimisticLocks() {
233         return null;
234     }
235 
236     public void refreshPessimisticLocks() {
237     }
238 
239     public void addPessimisticLock(PessimisticLock lock) {
240     }
241 
242     public List<String> getLockClearingMethodNames() {
243         return null;
244     }
245 
246     public List<String> getLockClearningMethodNames() {
247         return null;
248     }
249 
250     public String getBasePathToDocumentDuringSerialization() {
251         return null;
252     }
253 
254     public PropertySerializabilityEvaluator getDocumentPropertySerizabilityEvaluator() {
255         return null;
256     }
257 
258     public Object wrapDocumentWithMetadataForXmlSerialization() {
259         return null;
260     }
261 
262     public boolean useCustomLockDescriptors() {
263         return false;
264     }
265 
266     public String getCustomLockDescriptor(Person user) {
267         return null;
268     }
269 
270     public void setVersionNumber(Long versionNumber) {
271     }
272 
273     public void setObjectId(String objectId) {
274     }
275 
276     public PersistableBusinessObjectExtension getExtension() {
277         return null;
278     }
279 
280     public void setExtension(PersistableBusinessObjectExtension extension) {
281     }
282 
283     public void refreshNonUpdateableReferences() {
284     }
285 
286     public void refreshReferenceObject(String referenceObjectName) {
287     }
288 
289     public List<Collection<PersistableBusinessObject>> buildListOfDeletionAwareLists() {
290         return null;
291     }
292 
293     public boolean isNewCollectionRecord() {
294         return false;
295     }
296 
297     public void setNewCollectionRecord(boolean isNewCollectionRecord) {
298     }
299 
300     public void linkEditableUserFields() {
301     }
302 
303     public void refresh() {
304     }
305 
306     public String getObjectId() {
307         return null;
308     }
309 
310     public Long getVersionNumber() {
311         return null;
312     }
313 
314 }