public class AnnotationHandler extends Object implements InternalSecurityManager.CommitHandler
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationHandler.Factory
Creates
AnnotationHandler instances. |
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.CommitHandler
public void handleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user)
InternalSecurityManager.CommitHandler
handleCommit
in interface InternalSecurityManager.CommitHandler
user
- the committing user or null
if this commit is
triggered
by the system.InternalSecurityManager.CommitHandler2
protected 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) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html