org.eclipse.emf.emfstore.server.auth
Class ESMethodInvocation

java.lang.Object
  extended by org.eclipse.emf.emfstore.server.auth.ESMethodInvocation

public class ESMethodInvocation
extends Object

Represents an method invocation of a method contained in the EmfStore interface.

Since:
1.5
Author:
boehlke

Constructor Summary
ESMethodInvocation(String methodName, Object[] params)
          Creates a method invocation with given parameters.
 
Method Summary
 Object[] getAllParameters()
          Get the invocation parameters, including the session id.
 String getMethodName()
          Returns the original method name.
 Object[] getParameters()
          Get the invocation parameters.
 ESSessionId getSessionId()
          Get the session id of the invocation.
 ESMethod.MethodId getType()
          Get the methodId of the operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESMethodInvocation

public ESMethodInvocation(String methodName,
                          Object[] params)
                   throws InvalidInputException
Creates a method invocation with given parameters.

Parameters:
methodName - the name of the method
params - the parameters, including the session id
Throws:
InvalidInputException - throw if first parameter is not a session id
Method Detail

getType

public ESMethod.MethodId getType()
Get the methodId of the operation.

Returns:
the operation methodId which is an enumified method name

getParameters

public Object[] getParameters()
Get the invocation parameters.

Returns:
the parameters of the invocation

getAllParameters

public Object[] getAllParameters()
Get the invocation parameters, including the session id.

Returns:
the parameters of the invocation, including the session id

getSessionId

public ESSessionId getSessionId()
Get the session id of the invocation.

Returns:
the session id

getMethodName

public String getMethodName()
Returns the original method name.

Returns:
the method name


Copyright © 2016. All Rights Reserved.