Class AnnotationHandler
- java.lang.Object
-
- org.eclipse.emf.cdo.server.spi.security.AnnotationHandler
-
- All Implemented Interfaces:
InternalSecurityManager.CommitHandler
public class AnnotationHandler extends java.lang.Object implements InternalSecurityManager.CommitHandler
If the meaning of this type isn't clear, there really should be more of a description here...- Author:
- Eike Stepper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationHandler.FactoryCreatesAnnotationHandlerinstances.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELIMITERSstatic java.lang.StringREAD_KEYstatic java.lang.StringSOURCE_URIstatic java.lang.StringWRITE_KEY
-
Constructor Summary
Constructors Constructor Description AnnotationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleClassPermission(Realm realm, org.eclipse.emf.ecore.EClass eClass, java.lang.String key, Access access)voidhandleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user)Called before the commit is security checked and passed to the repository.protected voidhandlePackage(Realm realm, org.eclipse.emf.ecore.EPackage ePackage)protected voidhandlePackagePermission(Realm realm, org.eclipse.emf.ecore.EPackage ePackage, java.lang.String key, Access access)protected voidhandlePackageUnits(InternalSecurityManager securityManager, CDOPackageUnit[] packageUnits)protected voidhandlePermission(Realm realm, org.eclipse.emf.ecore.EModelElement modelElement, java.lang.String key, Access access, org.eclipse.emf.ecore.EClass filterClass, org.eclipse.emf.ecore.EReference filterFeature)voidinit(InternalSecurityManager securityManager, boolean firstTime)java.lang.StringtoString()
-
-
-
Field Detail
-
SOURCE_URI
public static final java.lang.String SOURCE_URI
- See Also:
- Constant Field Values
-
READ_KEY
public static final java.lang.String READ_KEY
- See Also:
- Constant Field Values
-
WRITE_KEY
public static final java.lang.String WRITE_KEY
- See Also:
- Constant Field Values
-
DELIMITERS
public static final java.lang.String DELIMITERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(InternalSecurityManager securityManager, boolean firstTime)
- Specified by:
initin interfaceInternalSecurityManager.CommitHandler
-
handleCommit
public void handleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user)
Description copied from interface:InternalSecurityManager.CommitHandlerCalled before the commit is security checked and passed to the repository.- Specified by:
handleCommitin interfaceInternalSecurityManager.CommitHandleruser- the committing user ornullif this commit istriggeredby the system.- See Also:
InternalSecurityManager.CommitHandler2
-
handlePackageUnits
protected void handlePackageUnits(InternalSecurityManager securityManager, CDOPackageUnit[] packageUnits)
-
handlePackage
protected void handlePackage(Realm realm, org.eclipse.emf.ecore.EPackage ePackage)
-
handlePackagePermission
protected void handlePackagePermission(Realm realm, org.eclipse.emf.ecore.EPackage ePackage, java.lang.String key, Access access)
-
handleClassPermission
protected void handleClassPermission(Realm realm, org.eclipse.emf.ecore.EClass eClass, java.lang.String key, Access access)
-
handlePermission
protected void handlePermission(Realm realm, org.eclipse.emf.ecore.EModelElement modelElement, java.lang.String key, Access access, org.eclipse.emf.ecore.EClass filterClass, org.eclipse.emf.ecore.EReference filterFeature)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-