fulmine.context
Class RemoteUpdateHandler

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface fulmine.context.IRemoteUpdateHandler
IRemoteUpdateHandler.ARG_POSITIONS
 
Field Summary
 
Fields inherited from interface fulmine.context.IRemoteUpdateHandler
RPC_KEY, RPC_NAME
 
Constructor Summary
RemoteUpdateHandler()
          Construct the handler with its context
 
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
 

Constructor Detail

RemoteUpdateHandler

public RemoteUpdateHandler()
Construct the handler with its context

Method Detail

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 container
type - the container type, used to locate the container
domain - the container domain, used to locate the container
fieldName - the field in the container to update
valueAsString - the new value for the field, in string form
permissionApp - the application permission of the context issuing the change, see IPermissionProfile
permissionCode - the permission of the context issuing the change, see IPermissionProfile
originatingRemoteContextIdentity - 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.