
public class AnnotationHandler extends Object implements InternalSecurityManager.CommitHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationHandler.Factory |
| Modifier and Type | Field and Description |
|---|---|
static String |
DELIMITERS |
static String |
READ_KEY |
static String |
SOURCE_URI |
static String |
WRITE_KEY |
| Constructor and Description |
|---|
AnnotationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleClassPermission(Realm realm,
EClass eClass,
String key,
Access access) |
void |
handleCommit(InternalSecurityManager securityManager,
IStoreAccessor.CommitContext commitContext,
User user)
Called before the commit is security checked and passed to the repository.
|
protected void |
handlePackage(Realm realm,
EPackage ePackage) |
protected void |
handlePackagePermission(Realm realm,
EPackage ePackage,
String key,
Access access) |
protected void |
handlePackageUnits(InternalSecurityManager securityManager,
CDOPackageUnit[] packageUnits) |
protected void |
handlePermission(Realm realm,
EModelElement modelElement,
String key,
Access access,
EClass filterClass,
EReference filterFeature) |
void |
init(InternalSecurityManager securityManager,
boolean firstTime) |
String |
toString() |
public static final String SOURCE_URI
public static final String READ_KEY
public static final String WRITE_KEY
public static final String DELIMITERS
public void init(InternalSecurityManager securityManager, boolean firstTime)
init in interface InternalSecurityManager.CommitHandlerpublic void handleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user)
InternalSecurityManager.CommitHandlerhandleCommit in interface InternalSecurityManager.CommitHandleruser - the committing user or null if this commit is
triggered by the system.InternalSecurityManager.CommitHandler2protected void handlePackageUnits(InternalSecurityManager securityManager, CDOPackageUnit[] packageUnits)
protected void handlePackagePermission(Realm realm, EPackage ePackage, String key, Access access)
protected void handleClassPermission(Realm realm, EClass eClass, String key, Access access)
protected void handlePermission(Realm realm, EModelElement modelElement, String key, Access access, EClass filterClass, EReference filterFeature)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.