View Javadoc
1   package org.kuali.ole.describe.controller;
2   
3   import org.kuali.ole.describe.form.EditorForm;
4   import org.kuali.ole.docstore.common.document.BibTree;
5   
6   import javax.servlet.http.HttpServletRequest;
7   import java.util.List;
8   
9   /**
10   * Defines the operations to be supported by a document editor.
11   * Each operation takes an EditorForm as input and returns a different EditorForm as output.
12   */
13  public interface DocumentEditor {
14  
15      public EditorForm loadDocument(EditorForm editorForm);
16  
17      public EditorForm saveDocument(EditorForm editorForm);
18  
19      public EditorForm deleteDocument(EditorForm editorForm);
20  
21      public EditorForm createNewRecord(EditorForm editorForm, BibTree bibTree);
22  
23      public EditorForm editNewRecord(EditorForm editorForm, BibTree bibTree);
24  
25      public String saveDocument(BibTree bibTree, EditorForm form);
26  
27      public EditorForm addORDeleteFields(EditorForm editorForm, HttpServletRequest request);
28  
29      public EditorForm deleteVerify(EditorForm editorForm) throws Exception;
30  
31      public EditorForm delete(EditorForm editorForm) throws Exception;
32  
33      public EditorForm addORRemoveExtentOfOwnership(EditorForm editorForm, HttpServletRequest request);
34  
35      public EditorForm addORRemoveAccessInformationAndHoldingsNotes(EditorForm editorForm, HttpServletRequest request);
36  
37      public EditorForm addORRemoveItemNote(EditorForm editorForm, HttpServletRequest request);
38  
39      public EditorForm addORRemoveItemDonor(EditorForm editorForm, HttpServletRequest request);
40  
41      public EditorForm showBibs(EditorForm editorForm);
42  
43      public EditorForm copy(EditorForm editorForm);
44  
45      Boolean isValidUpdate(EditorForm editorForm);
46  
47      public EditorForm bulkUpdate(EditorForm editorForm,List<String> ids);
48  
49  }