|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.registry.jdbc.handlers.Handler
org.wso2.registry.jdbc.handlers.UIEnabledHandler
public abstract class UIEnabledHandler
Base class for handler implementations which generate custom UIs. There are three main categaries of custom UIs. Those are: Browse: Displays the resource contents in read-only mode. Edit: Provides controls for editing the contents of an existing resource. New: Provides controls for creating a new resource. Hanlder may provide any number of UIs under above three categaries. For example handler may provide two UIs to browse the contents of an XML file. Handler implementations should provide the UI key and descriptive name for the UI for each of the UIs there are generating. Edit and New UIs should have an associated EditProcessor implementation to convert the UI inputs to resource content.
Field Summary |
---|
Fields inherited from class org.wso2.registry.jdbc.handlers.Handler |
---|
authorizationUtil, resourceDAO |
Constructor Summary | |
---|---|
UIEnabledHandler()
|
Method Summary | |
---|---|
Resource |
get(RequestContext requestContext)
Implementation of the get(...) method of the Handler class. |
Resource |
getBrowseView(java.lang.String browseViewKey,
RequestContext requestContext)
Implementations of this method should generate a HTML UI for rendering the resource content and set it as the content of the returned resource. |
abstract java.lang.String[] |
getBrowseViews()
Implementations have to implement this, if they provide more than one browse view. |
java.lang.String |
getDefaultBrowseView()
Among the multiple views that a handler may generate, one view is identified as the default view, which is used to render the contents, if UI is not specified. |
java.lang.String |
getDefaultEditView()
Among the multiple views that a handler may generate, one view is identified as the default view, which is used to edit the contents, if UI is not specified. |
java.lang.String |
getDefaultNewView()
Among the multiple views that a handler may generate, one view is identified as the default view, which is used to render the new resource creation UI, if UI is not specified. |
Resource |
getEditView(java.lang.String editViewKey,
RequestContext requestContext)
Implementations of this method should generate a HTML UI for editing the resource content and set it as the content of the returned resource. |
abstract java.lang.String[] |
getEditViews()
Implementations have to implement this, if they provide more than edit browse view. |
Resource |
getNewView(java.lang.String newViewKey,
RequestContext requestContext)
Implementations of this method should generate a HTML UI for creating a new resource content and set it as the content of the returned resource. |
java.lang.String[] |
getNewViews()
Implementations have to implement this, if they provide more than one new view. |
Resource |
getRawResource(RequestContext requestContext)
Returns a Resource instance specified in the requestContext. |
Methods inherited from class org.wso2.registry.jdbc.handlers.Handler |
---|
delete, importChild, importResource, put, putChild |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UIEnabledHandler()
Method Detail |
---|
public Resource get(RequestContext requestContext) throws RegistryException
get
in class Handler
requestContext
- Details of the request.
RegistryException
public Resource getRawResource(RequestContext requestContext) throws RegistryException
requestContext
- Request details.
RegistryException
public abstract java.lang.String[] getBrowseViews()
public abstract java.lang.String[] getEditViews()
public java.lang.String[] getNewViews()
public java.lang.String getDefaultBrowseView()
public java.lang.String getDefaultEditView()
public java.lang.String getDefaultNewView()
public Resource getBrowseView(java.lang.String browseViewKey, RequestContext requestContext) throws RegistryException
browseViewKey
- UI key of the browse UI.requestContext
- Details of the request.
RegistryException
public Resource getEditView(java.lang.String editViewKey, RequestContext requestContext) throws RegistryException
editViewKey
- UI key of the edit UI.requestContext
- Details of the request.
RegistryException
public Resource getNewView(java.lang.String newViewKey, RequestContext requestContext) throws RegistryException
newViewKey
- UI key of the new resource UI.requestContext
- Details of the request.
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |