org.eclipse.emf.emfstore.internal.client.model.impl.api
Class ESServerCallImpl<U>

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerCallImpl<U>
Type Parameters:
U - the actual return type of the call
All Implemented Interfaces:
ESServerCall, InternalAPIDelegator<ESServerCall,ServerCall<U>>

public class ESServerCallImpl<U>
extends Object
implements ESServerCall, InternalAPIDelegator<ESServerCall,ServerCall<U>>

Mapping between ESServerCall and ServerCall.

Note that this class does not inherit from AbstractAPIImpl since ServerCall is not a modeled class.

Author:
emueller

Constructor Summary
ESServerCallImpl(ServerCall<U> serverCall)
          Constructor.
 
Method Summary
 ESLocalProject getLocalProject()
          Returns the ESLocalProject this server call is associated with.
 ESServer getServer()
          Returns the ESServer this server call is meant to be executed against.
 ESUsersession getUsersession()
          Returns the user session used by the server call.
 ServerCall<U> toInternalAPI()
          Returns the internal interface of this class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESServerCallImpl

public ESServerCallImpl(ServerCall<U> serverCall)
Constructor.

Parameters:
serverCall - the server call to be wrapped
Method Detail

getUsersession

public ESUsersession getUsersession()
Returns the user session used by the server call.

Specified by:
getUsersession in interface ESServerCall
Returns:
the user session in use
See Also:
ESServerCall.getUsersession()

getLocalProject

public ESLocalProject getLocalProject()
Returns the ESLocalProject this server call is associated with.

Specified by:
getLocalProject in interface ESServerCall
Returns:
the local project associated with this server call
See Also:
ESServerCall.getLocalProject()

getServer

public ESServer getServer()
Returns the ESServer this server call is meant to be executed against.

Specified by:
getServer in interface ESServerCall
Returns:
the server this call is meant to be executed against
See Also:
ESServerCall.getServer()

toInternalAPI

public ServerCall<U> toInternalAPI()
Returns the internal interface of this class.

Specified by:
toInternalAPI in interface InternalAPIDelegator<ESServerCall,ServerCall<U>>
Returns:
the internal interface of this class
See Also:
InternalAPIDelegator.toInternalAPI()


Copyright © 2015. All Rights Reserved.