org.opencrx.security.layer.application
Class OpenCrxSecurity_1
java.lang.Object
org.openmdx.compatibility.base.dataprovider.spi.Layer_1
org.openmdx.compatibility.base.dataprovider.layer.application.ProvidingUid_1
org.opencrx.security.layer.application.OpenCrxSecurity_1
- All Implemented Interfaces:
- Dataprovider_1_0, Layer_1_0, Layer_1_1, Layer_1_2, Operation_1_0
public class OpenCrxSecurity_1
- extends ProvidingUid_1
This plugin implements the models org:openmdx:security:realm1,
org:openmdx:security1:authorization1, org:openmdx:security:authentication1.
It must be able to manage the following classes:
- realm1: Group, Permission, Principal, Policy, Privilege, Realm, Role
- authorization1: Policy, Privilege
- authentication1: Password
This plugin delegates all object retrievals, updates and creations to the
persistence plugin which is typically the database plugin
(e.g. super.get(header, request), super.replace(header, request)). An
LDAP implementation of this plugin must delegate requests to an LDAP
service.
|
Method Summary |
void |
activate(short id,
Configuration configuration,
Layer_1_0 delegation)
|
protected void |
checkPermission(ServiceHeader header,
DataproviderRequest request)
|
protected void |
completeObject(ServiceHeader header,
Set fetchSet,
DataproviderObject_1_0 object)
|
DataproviderReply |
create(ServiceHeader header,
DataproviderRequest request)
|
void |
epilog(ServiceHeader header,
DataproviderRequest[] requests,
DataproviderReply[] replies)
|
DataproviderReply |
find(ServiceHeader header,
DataproviderRequest request)
|
DataproviderReply |
get(ServiceHeader header,
DataproviderRequest request)
|
DataproviderReply |
operation(ServiceHeader header,
DataproviderRequest request)
|
void |
prolog(ServiceHeader header,
DataproviderRequest[] requests)
|
DataproviderReply |
remove(ServiceHeader header,
DataproviderRequest request)
|
DataproviderReply |
replace(ServiceHeader header,
DataproviderRequest request)
|
DataproviderObject_1_0 |
retrieveObject(Path identity)
|
protected String |
uidAsString()
|
| Methods inherited from class org.openmdx.compatibility.base.dataprovider.spi.Layer_1 |
configurationSpecification, deactivate, epilog, getConfiguration, getDelegation, getDelegation, getId, getLenientProcessor, isLenient, modify, process, process, process, prolog, set, startPublishing, terminal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenCrxSecurity_1
public OpenCrxSecurity_1()
activate
public void activate(short id,
Configuration configuration,
Layer_1_0 delegation)
throws ServiceException,
Exception
- Specified by:
activate in interface Layer_1_0- Overrides:
activate in class Layer_1
- Throws:
ServiceException
Exception
completeObject
protected void completeObject(ServiceHeader header,
Set fetchSet,
DataproviderObject_1_0 object)
throws ServiceException
- Throws:
ServiceException
retrieveObject
public DataproviderObject_1_0 retrieveObject(Path identity)
throws ServiceException
- Throws:
ServiceException
prolog
public void prolog(ServiceHeader header,
DataproviderRequest[] requests)
throws ServiceException
- Specified by:
prolog in interface Layer_1_0- Overrides:
prolog in class Layer_1
- Throws:
ServiceException
epilog
public void epilog(ServiceHeader header,
DataproviderRequest[] requests,
DataproviderReply[] replies)
throws ServiceException
- Specified by:
epilog in interface Layer_1_0- Overrides:
epilog in class Layer_1
- Throws:
ServiceException
checkPermission
protected void checkPermission(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Throws:
ServiceException
remove
public DataproviderReply remove(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
remove in interface Layer_1_0- Overrides:
remove in class Layer_1
- Throws:
ServiceException
create
public DataproviderReply create(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
create in interface Layer_1_0- Overrides:
create in class ProvidingUid_1
- Throws:
ServiceException
replace
public DataproviderReply replace(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
replace in interface Layer_1_0- Overrides:
replace in class Layer_1
- Throws:
ServiceException
get
public DataproviderReply get(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
get in interface Layer_1_0- Overrides:
get in class Layer_1
- Throws:
ServiceException
operation
public DataproviderReply operation(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
operation in interface Operation_1_0- Overrides:
operation in class Layer_1
- Throws:
ServiceException
find
public DataproviderReply find(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Specified by:
find in interface Layer_1_0- Overrides:
find in class Layer_1
- Throws:
ServiceException
uidAsString
protected final String uidAsString()
This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.