public class AbstractEditor extends Object implements DocumentEditor
Constructor and Description |
---|
AbstractEditor() |
Modifier and Type | Method and Description |
---|---|
EditorForm |
addORDeleteFields(EditorForm editorForm,
javax.servlet.http.HttpServletRequest request) |
EditorForm |
addORRemoveAccessInformationAndHoldingsNotes(EditorForm editorForm,
javax.servlet.http.HttpServletRequest request) |
EditorForm |
addORRemoveExtentOfOwnership(EditorForm editorForm,
javax.servlet.http.HttpServletRequest request) |
EditorForm |
addORRemoveItemNote(EditorForm editorForm,
javax.servlet.http.HttpServletRequest request) |
EditorForm |
bulkUpdate(EditorForm editorForm,
List<String> ids) |
EditorForm |
copy(EditorForm editorForm) |
EditorForm |
createNewRecord(EditorForm editorForm,
BibTree bibTree) |
EditorForm |
delete(EditorForm editorForm) |
EditorForm |
deleteDocument(EditorForm editorForm) |
protected EditorForm |
deleteFromDocStore(EditorForm editorForm)
This method returns error message if it has exception else deletes record.
|
EditorForm |
deleteVerify(EditorForm editorForm) |
EditorForm |
editNewRecord(EditorForm editorForm,
BibTree bibTree) |
DocstoreClientLocator |
getDocstoreClientLocator() |
DocstoreClient |
getDocstoreLocalClient() |
protected Holdings |
getHoldingsRecord(String eResourceID) |
protected HoldingsTree |
getHoldingsTree(String eResourceID) |
protected Item |
getItemRecord() |
protected void |
getResponseFromDocStore(EditorForm editorForm,
String docId,
String operation)
This method deletes the record from docstore based on the doc type.
|
Boolean |
isValidUpdate(EditorForm editorForm) |
EditorForm |
loadDocument(EditorForm editorForm) |
protected void |
removeDocumentFromTree(EditorForm editorForm)
This method removes deleted record from documentForm bib tree to build left pane tree.
|
protected Holdings |
retrieveHoldings(String holdingsId) |
protected Item |
retrieveItem(String itemId) |
String |
saveDocument(BibTree bibTree,
EditorForm editorForm) |
EditorForm |
saveDocument(EditorForm editorForm) |
EditorForm |
showBibs(EditorForm editorForm) |
public AbstractEditor()
public DocstoreClient getDocstoreLocalClient()
public DocstoreClientLocator getDocstoreClientLocator()
protected void getResponseFromDocStore(EditorForm editorForm, String docId, String operation) throws Exception
editorForm
- docId
- operation
- Exception
protected EditorForm deleteFromDocStore(EditorForm editorForm)
editorForm
- protected void removeDocumentFromTree(EditorForm editorForm)
editorForm
- public EditorForm loadDocument(EditorForm editorForm)
loadDocument
in interface DocumentEditor
public EditorForm saveDocument(EditorForm editorForm)
saveDocument
in interface DocumentEditor
public EditorForm deleteDocument(EditorForm editorForm)
deleteDocument
in interface DocumentEditor
public EditorForm createNewRecord(EditorForm editorForm, BibTree bibTree)
createNewRecord
in interface DocumentEditor
public EditorForm editNewRecord(EditorForm editorForm, BibTree bibTree)
editNewRecord
in interface DocumentEditor
public String saveDocument(BibTree bibTree, EditorForm editorForm)
saveDocument
in interface DocumentEditor
public EditorForm addORDeleteFields(EditorForm editorForm, javax.servlet.http.HttpServletRequest request)
addORDeleteFields
in interface DocumentEditor
public EditorForm deleteVerify(EditorForm editorForm) throws Exception
deleteVerify
in interface DocumentEditor
Exception
public EditorForm delete(EditorForm editorForm) throws Exception
delete
in interface DocumentEditor
Exception
public EditorForm addORRemoveExtentOfOwnership(EditorForm editorForm, javax.servlet.http.HttpServletRequest request)
addORRemoveExtentOfOwnership
in interface DocumentEditor
public EditorForm addORRemoveAccessInformationAndHoldingsNotes(EditorForm editorForm, javax.servlet.http.HttpServletRequest request)
addORRemoveAccessInformationAndHoldingsNotes
in interface DocumentEditor
public EditorForm addORRemoveItemNote(EditorForm editorForm, javax.servlet.http.HttpServletRequest request)
addORRemoveItemNote
in interface DocumentEditor
public EditorForm showBibs(EditorForm editorForm)
showBibs
in interface DocumentEditor
public EditorForm copy(EditorForm editorForm)
copy
in interface DocumentEditor
public Boolean isValidUpdate(EditorForm editorForm)
isValidUpdate
in interface DocumentEditor
protected HoldingsTree getHoldingsTree(String eResourceID)
protected Item getItemRecord()
protected Holdings getHoldingsRecord(String eResourceID)
protected Holdings retrieveHoldings(String holdingsId) throws Exception
Exception
protected Item retrieveItem(String itemId) throws Exception
Exception
public EditorForm bulkUpdate(EditorForm editorForm, List<String> ids)
bulkUpdate
in interface DocumentEditor
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.