public interface WebletContext
Modifier and Type | Method and Description |
---|---|
void |
fetchAppCookie(FetchAppCookieCallback callback)
Get the APP scope level cookies associated with the Tasklet.
|
void |
fetchInputBean(FetchJSONCallback callback)
Get the input JavaBean associated with this Weblet from the server and return as
a JSON object.
|
void |
fetchInputBean(FetchPOJOCallback callback)
Get the input JavaBean associated with this Weblet from the server and return as
a POJO.
|
long |
getBundleID()
Unique ID of Weblet assoicated with continaer this SFB/Weblet is configured in.
|
java.lang.String |
getBundleName()
User defined name associated with Weblet.
|
long |
getID()
Unique ID of the application or workflow/job that this Weblet is part of.
|
java.lang.String |
getName()
Name of the application or workflow/job that this Weblet is part of.
|
UniversalClient |
getUniversalClient()
Messaging client that can be used to access Mule endpoint services and SOAFaces
endpoint services.
|
com.google.gwt.i18n.client.Dictionary |
getURLParameters()
Any parameters passed to the servlet/URL that references this Weblet can be
accessed from this Dictionary.
|
java.lang.String |
getUsername()
Username of user accessing this Weblet.
|
void |
saveAppCookie(FetchAppCookieCallback callback)
Save all changes made by this client to the AppCookie.
|
void |
saveInputBean(com.google.gwt.user.client.rpc.AsyncCallback callback)
A Weblet can optionally define a JavaBean in it's MANIFEST.MF file that will then
be avilable to the Weblet for reading and writing to.
|
long getID()
java.lang.String getName()
long getBundleID()
java.lang.String getBundleName()
java.lang.String getUsername()
com.google.gwt.i18n.client.Dictionary getURLParameters()
void saveInputBean(com.google.gwt.user.client.rpc.AsyncCallback callback)
IsSerializable
to be returned as a POJO. If not a
POJO that implements IsSerializable it must be fetched as JSON object.
This method saves the input JavaBean, that has been fetched via fetchInputBean()
, back
to the server. The method Weblet.onSaveInputBean()
will first be called automatically before the input JavaBean is saved to the server.
Before trying to save the input JavaBean to the server, the
the Weblet.onSaveInputBean()
method is called by the container to validate the input JavaBean. Note that
implementing/overriding onsaveInputBean()
is optional.
If the onSaveInptuBean()
call is not successful (that would mean
SuccessFailCallback.returnSuccess()
is not called) then the
input JavaBean will not be saved to the server and nothing will be
returned to this callback
.
AsyncCallback.onFailure()
exceptions that can be returned
if there is a problem include:
BeanTransferException
where there is a server-side problem
saving the input JavaBean.callback
- Callback will be invoked when save operation has completed.void fetchInputBean(FetchPOJOCallback callback)
FetchPOJOCallback.onFailure()
exceptions that can be returned
if there is a problem include:
BeanTransferException
when there is a server-side problem
fetching the input JavaBean.callback
- Return results of input JavaBean as a POJO.void fetchInputBean(FetchJSONCallback callback)
IsSerializable
.
FetchJSONCallback.onFailure()
exceptions that can be returned
if there is a problem include:
BeanTransferException
where there is a server-side problem
fetching the input JavaBean.callback
- Return results of input JavaBean as a JSON.void fetchAppCookie(FetchAppCookieCallback callback)
callback
- This callback will be able to return the current cookie map for this Weblet/Tasklet.void saveAppCookie(FetchAppCookieCallback callback)
callback
- This callback will be able to return the newly updated
cookie map for this Weblet/Tasklet.UniversalClient getUniversalClient()
Copyright © Grand Logic, Inc. All Rights Reserved.