org.opencrx.security.layer.application
Class OpenCrxSecurity_1
java.lang.Object
org.openmdx.application.dataprovider.spi.Layer_1
org.openmdx.compatibility.base.dataprovider.layer.application.ProvidingUid_1
org.opencrx.security.layer.application.OpenCrxSecurity_1
- All Implemented Interfaces:
- org.openmdx.application.dataprovider.cci.Dataprovider_1_0, org.openmdx.application.dataprovider.spi.Layer_1_0, org.openmdx.application.dataprovider.spi.Layer_1_1, org.openmdx.application.dataprovider.spi.Layer_1_2, org.openmdx.application.dataprovider.spi.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,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1_0 delegation)
|
protected void |
checkPermission(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
protected void |
completeObject(org.openmdx.application.dataprovider.cci.ServiceHeader header,
Set fetchSet,
org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 object)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
create(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
void |
epilog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests,
org.openmdx.application.dataprovider.cci.DataproviderReply[] replies)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
find(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
get(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
operation(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
void |
prolog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
remove(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
org.openmdx.application.dataprovider.cci.DataproviderReply |
replace(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
|
org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 |
retrieveObject(org.openmdx.base.naming.Path identity)
|
protected String |
uidAsString()
|
| Methods inherited from class org.openmdx.application.dataprovider.spi.Layer_1 |
configurationSpecification, deactivate, epilog, getConfiguration, getDelegation, getDelegation, getId, getLenientProcessor, getModel, isBypassedByLenientRequests, isLenient, modify, process, 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,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1_0 delegation)
throws ServiceException
- Specified by:
activate in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
activate in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
completeObject
protected void completeObject(org.openmdx.application.dataprovider.cci.ServiceHeader header,
Set fetchSet,
org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 object)
throws ServiceException
- Throws:
ServiceException
retrieveObject
public org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 retrieveObject(org.openmdx.base.naming.Path identity)
throws ServiceException
- Throws:
ServiceException
prolog
public void prolog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests)
throws ServiceException
- Specified by:
prolog in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
prolog in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
epilog
public void epilog(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest[] requests,
org.openmdx.application.dataprovider.cci.DataproviderReply[] replies)
throws ServiceException
- Specified by:
epilog in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
epilog in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
checkPermission
protected void checkPermission(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Throws:
ServiceException
remove
public org.openmdx.application.dataprovider.cci.DataproviderReply remove(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
remove in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
remove in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
create
public org.openmdx.application.dataprovider.cci.DataproviderReply create(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
create in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
create in class ProvidingUid_1
- Throws:
ServiceException
replace
public org.openmdx.application.dataprovider.cci.DataproviderReply replace(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
replace in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
replace in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
get
public org.openmdx.application.dataprovider.cci.DataproviderReply get(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
get in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
get in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
operation
public org.openmdx.application.dataprovider.cci.DataproviderReply operation(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
operation in interface org.openmdx.application.dataprovider.spi.Operation_1_0- Overrides:
operation in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
find
public org.openmdx.application.dataprovider.cci.DataproviderReply find(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Specified by:
find in interface org.openmdx.application.dataprovider.spi.Layer_1_0- Overrides:
find in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
uidAsString
protected final String uidAsString()
This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.