fulmine.context
Interface IRemoteUpdateHandler

All Known Implementing Classes:
RemoteUpdateHandler

public interface IRemoteUpdateHandler

An object that handles update operations, issued from remote contexts, to local containers. The updates occur using the RPC mechanism.

Author:
Ramon Servadei

Nested Class Summary
static class IRemoteUpdateHandler.ARG_POSITIONS
          Holds the argument positions for the handle(String, int, int, String, String, int, int, String) method.
 
Field Summary
static String RPC_KEY
          The RPC key for the 'update remote container' RPC
static String RPC_NAME
          The name for the 'update remote container' RPC
 
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
 

Field Detail

RPC_NAME

static final String RPC_NAME
The name for the 'update remote container' RPC

See Also:
Constant Field Values

RPC_KEY

static final String RPC_KEY
The RPC key for the 'update remote container' RPC

See Also:
Constant Field Values
Method Detail

handle

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.

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

void setContext(IFulmineContext context)
Setter for the context

Parameters:
context - the context


Copyright © 2007-2009. All Rights Reserved.