org.opencrx.security.layer.application
Class OpenCrxSecurity_1
java.lang.Object
org.openmdx.application.dataprovider.spi.Layer_1
org.openmdx.application.dataprovider.layer.application.Standard_1
org.opencrx.security.layer.application.OpenCrxSecurity_1
- All Implemented Interfaces:
- org.openmdx.application.dataprovider.cci.Dataprovider_1_0, Port
public class OpenCrxSecurity_1
- extends org.openmdx.application.dataprovider.layer.application.Standard_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.
| Fields inherited from class org.openmdx.application.dataprovider.spi.Layer_1 |
compressUID, delegation |
|
Method Summary |
void |
activate(short id,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1 delegation)
|
protected void |
changePassword(org.openmdx.application.dataprovider.cci.ServiceHeader header,
MappedRecord passwordCredential,
MappedRecord changePasswordParams)
|
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,
MappedRecord object)
|
protected org.openmdx.application.dataprovider.cci.DataproviderReply |
completeReply(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderReply reply)
|
protected org.openmdx.base.rest.spi.Object_2Facade |
createResult(org.openmdx.application.dataprovider.cci.DataproviderRequest request,
String structName)
|
Interaction |
getInteraction(Connection connection)
|
protected String |
getPrincipalName(org.openmdx.application.dataprovider.cci.ServiceHeader header)
|
protected void |
setAttributes(org.openmdx.application.dataprovider.cci.ServiceHeader header,
MappedRecord obj,
MappedRecord oldValues)
|
protected void |
updateRealm(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
Update the realm if any object contained in the realm was modified. |
| Methods inherited from class org.openmdx.application.dataprovider.spi.Layer_1 |
configurationSpecification, deactivate, getConfiguration, getConnectionFactory, getDelegation, getId, getModel, newReplyId, process, terminal, uidAsString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_PATTERN_PRINCIPALS
protected static final org.openmdx.base.naming.Path PATH_PATTERN_PRINCIPALS
PATH_PATTERN_REALM
protected static final org.openmdx.base.naming.Path PATH_PATTERN_REALM
PATH_PATTERN_REALM_COMPOSITE
protected static final org.openmdx.base.naming.Path PATH_PATTERN_REALM_COMPOSITE
PATH_PATTERN_SUBJECTS
protected static final org.openmdx.base.naming.Path PATH_PATTERN_SUBJECTS
OpenCrxSecurity_1
public OpenCrxSecurity_1()
getInteraction
public Interaction getInteraction(Connection connection)
throws ResourceException
- Specified by:
getInteraction in interface Port- Overrides:
getInteraction in class org.openmdx.application.dataprovider.layer.application.Standard_1
- Throws:
ResourceException
activate
public void activate(short id,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1 delegation)
throws ServiceException
- Overrides:
activate in class org.openmdx.application.dataprovider.spi.Layer_1
- Throws:
ServiceException
getPrincipalName
protected String getPrincipalName(org.openmdx.application.dataprovider.cci.ServiceHeader header)
throws ServiceException
- Throws:
ServiceException
completeObject
protected void completeObject(org.openmdx.application.dataprovider.cci.ServiceHeader header,
MappedRecord object)
throws ServiceException
- Throws:
ServiceException
completeReply
protected org.openmdx.application.dataprovider.cci.DataproviderReply completeReply(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderReply reply)
throws ServiceException
- Throws:
ServiceException
createResult
protected org.openmdx.base.rest.spi.Object_2Facade createResult(org.openmdx.application.dataprovider.cci.DataproviderRequest request,
String structName)
throws ServiceException
- Throws:
ServiceException
setAttributes
protected void setAttributes(org.openmdx.application.dataprovider.cci.ServiceHeader header,
MappedRecord obj,
MappedRecord oldValues)
throws ServiceException
- Throws:
ServiceException
changePassword
protected void changePassword(org.openmdx.application.dataprovider.cci.ServiceHeader header,
MappedRecord passwordCredential,
MappedRecord changePasswordParams)
throws ServiceException
- Throws:
ServiceException
checkPermission
protected void checkPermission(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Throws:
ServiceException
updateRealm
protected void updateRealm(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
throws ServiceException
- Update the realm if any object contained in the realm was modified.
- Throws:
ServiceException
This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.