org.eclipse.emf.emfstore.internal.server.core
Class AbstractEmfstoreInterface

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.core.AbstractEmfstoreInterface
Direct Known Subclasses:
AdminEmfStoreImpl, EMFStoreImpl

public abstract class AbstractEmfstoreInterface
extends Object

Super class of all EmfstoreInterfaces. Emfstore interfaces performs sanity checks, runs accesscontrol and then delegates the method call to the relating subinterface which actually implements the functionality. Using InternalCommand it is possible to access the interface without accesscontrol.

Author:
wesendon
See Also:
AbstractSubEmfstoreInterface, EMFStoreInterface

Constructor Summary
AbstractEmfstoreInterface(ServerSpace serverSpace, AuthorizationControl authorizationControl)
          Default constructor.
 
Method Summary
 void runCommand(InternalCommand<? extends AbstractEmfstoreInterface> command)
          Runs an internal command, in order to avoid accesscontrol.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEmfstoreInterface

public AbstractEmfstoreInterface(ServerSpace serverSpace,
                                 AuthorizationControl authorizationControl)
                          throws FatalESException
Default constructor.

Parameters:
serverSpace - the server space
authorizationControl - access control
Throws:
FatalESException - if initialization fails
Method Detail

runCommand

public void runCommand(InternalCommand<? extends AbstractEmfstoreInterface> command)
Runs an internal command, in order to avoid accesscontrol.

Parameters:
command - internal command


Copyright © 2015. All Rights Reserved.