|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.AbstractViewHandler
Base implementation of ViewHandler. Throws exceptions for methods, allowing you to implement only those that make sense for the your view.
Field Summary | |
static java.lang.String |
code_id
|
protected static Trace |
trace
|
Constructor Summary | |
AbstractViewHandler()
|
Method Summary | |
WavesetResult |
checkinView(ViewMaster vm,
GenericObject view,
java.util.Map options)
Save changes made to the view. |
boolean |
checkOption(java.util.Map options,
java.lang.String name)
|
GenericObject |
checkoutView(ViewMaster vm,
java.lang.String id,
java.util.Map options)
Get an read/write view of an existing object. |
WavesetResult |
commitView(ViewMaster vm,
GenericObject view,
java.util.Map options)
Save changes made to the view into the repository. |
GenericObject |
createView(ViewMaster vm,
java.util.Map options)
Create an empty object with an appropriate form. |
WavesetResult |
deleteView(ViewMaster vm,
java.lang.String id,
java.util.Map options)
This is not called for most views. |
Form |
getForm(ViewMaster vm,
GenericObject view,
java.lang.String formId,
java.util.Map options)
Get an alternative form for an existing view. |
GenericObject |
getFormOptions(Form form,
java.util.Map options)
Given an initial options map, combine it with options specified in the form. |
java.util.Map |
getOptions(GenericObject view,
java.util.Map options)
Utility for view handlers. |
GenericObject |
getPropertiesView(PersistentObject obj)
Given a PersistentObject, generate a view of any properties assigned to the view. |
GenericObject |
getView(ViewMaster vm,
java.lang.String id,
java.util.Map options)
Get a read-only view of an existing object. |
boolean |
isFormHandler()
By default, we return false here so that the ViewMaster will do form processing. |
GenericObject |
refreshView(ViewMaster vm,
GenericObject view,
java.util.Map options)
Refresh view contents. |
void |
saveViewOptions(java.util.Map options,
GenericObject view,
java.lang.String[] exclusions)
Save options passed through the API in the view for later. |
void |
setPropertiesView(GenericObject view,
PersistentObject obj)
Convert a properties view back into a PropertyList for a GenericObject. |
void |
throwUnsupported(java.lang.String methodName)
Throw the standard "method not supported message. |
void |
unlockView(ViewMaster vm,
GenericObject view,
java.util.Map options)
Unlock all object that underneath a particular view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
protected static Trace trace
Constructor Detail |
public AbstractViewHandler()
Method Detail |
public void throwUnsupported(java.lang.String methodName) throws WavesetException
WavesetException
public GenericObject createView(ViewMaster vm, java.util.Map options) throws WavesetException
ViewHandler
ViewMaster provides access to the repository, server cache, and authenticated session if necessary.
createView
in interface ViewHandler
WavesetException
public GenericObject getView(ViewMaster vm, java.lang.String id, java.util.Map options) throws WavesetException
ViewHandler
ViewMaster provides access to the repository, server cache, and authenticated session.
getView
in interface ViewHandler
WavesetException
public Form getForm(ViewMaster vm, GenericObject view, java.lang.String formId, java.util.Map options) throws WavesetException
ViewHandler
getForm
in interface ViewHandler
WavesetException
public GenericObject checkoutView(ViewMaster vm, java.lang.String id, java.util.Map options) throws WavesetException
ViewHandler
ViewMaster provides access to the repository, server cache, and authenticated session.
checkoutView
in interface ViewHandler
WavesetException
public void unlockView(ViewMaster vm, GenericObject view, java.util.Map options) throws WavesetException
ViewHandler
unlockView
in interface ViewHandler
WavesetException
public WavesetResult checkinView(ViewMaster vm, GenericObject view, java.util.Map options) throws WavesetException
ViewHandler
checkinView
in interface ViewHandler
WavesetException
public WavesetResult commitView(ViewMaster vm, GenericObject view, java.util.Map options) throws WavesetException
ViewHandler
commitView
in interface ViewHandler
WavesetException
public GenericObject refreshView(ViewMaster vm, GenericObject view, java.util.Map options) throws WavesetException
ViewHandler
refreshView
in interface ViewHandler
WavesetException
public boolean isFormHandler()
isFormHandler
in interface ViewHandler
public GenericObject getFormOptions(Form form, java.util.Map options) throws WavesetException
WavesetException
public void saveViewOptions(java.util.Map options, GenericObject view, java.lang.String[] exclusions)
public java.util.Map getOptions(GenericObject view, java.util.Map options)
public boolean checkOption(java.util.Map options, java.lang.String name)
public GenericObject getPropertiesView(PersistentObject obj) throws WavesetException
WavesetException
public void setPropertiesView(GenericObject view, PersistentObject obj)
public WavesetResult deleteView(ViewMaster vm, java.lang.String id, java.util.Map options) throws WavesetException
deleteView
in interface ViewHandler
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |