fulmine.context
Class RemoteUpdateHandler
java.lang.Object
fulmine.context.RemoteUpdateHandler
- All Implemented Interfaces:
- IRemoteUpdateHandler
public class RemoteUpdateHandler
- extends Object
- implements IRemoteUpdateHandler
A remote update handler that allows remote contexts to change the state of
local containers as long as the permissions are valid.
- Author:
- Ramon Servadei
|
Method Summary |
String |
handle(String identity,
int type,
int domain,
String fieldName,
String valueAsString,
int permissionApp,
int permissionCode,
String originatingRemoteContextIdentity)
Handle the RPC call to update a local container from a remote context. |
void |
setContext(IFulmineContext context)
Setter for the context |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteUpdateHandler
public RemoteUpdateHandler()
- Construct the handler with its context
handle
public String handle(String identity,
int type,
int domain,
String fieldName,
String valueAsString,
int permissionApp,
int permissionCode,
String originatingRemoteContextIdentity)
- Description copied from interface:
IRemoteUpdateHandler
- Handle the RPC call to update a local container from a remote context.
- Specified by:
handle in interface IRemoteUpdateHandler
- Parameters:
identity - the container identity, used to locate the containertype - the container type, used to locate the containerdomain - the container domain, used to locate the containerfieldName - the field in the container to updatevalueAsString - the new value for the field, in string formpermissionApp - the application permission of the context issuing the change,
see IPermissionProfilepermissionCode - the permission of the context issuing the change, see
IPermissionProfileoriginatingRemoteContextIdentity - the identity of the remote context issuing the command
- Returns:
- a string indicating the status of the operation
setContext
public void setContext(IFulmineContext context)
- Description copied from interface:
IRemoteUpdateHandler
- Setter for the context
- Specified by:
setContext in interface IRemoteUpdateHandler
- Parameters:
context - the context
Copyright © 2007-2009. All Rights Reserved.