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:
- Dataprovider_1_0, Port
public class OpenCrxSecurity_1
- extends 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.
|
Method Summary |
void |
activate(short id,
Configuration configuration,
Layer_1 delegation)
|
protected void |
changePassword(ServiceHeader header,
MappedRecord passwordCredential,
MappedRecord changePasswordParams)
|
protected void |
checkPermission(ServiceHeader header,
DataproviderRequest request)
|
protected void |
completeObject(ServiceHeader header,
MappedRecord object)
|
protected DataproviderReply |
completeReply(ServiceHeader header,
DataproviderReply reply)
|
protected Object_2Facade |
createResult(DataproviderRequest request,
String structName)
|
Interaction |
getInteraction(Connection connection)
|
protected String |
getPrincipalName(ServiceHeader header)
|
protected void |
setAttributes(ServiceHeader header,
MappedRecord obj,
MappedRecord oldValues)
|
protected void |
updateRealm(ServiceHeader header,
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 Path PATH_PATTERN_PRINCIPALS
PATH_PATTERN_REALM
protected static final Path PATH_PATTERN_REALM
PATH_PATTERN_REALM_COMPOSITE
protected static final Path PATH_PATTERN_REALM_COMPOSITE
PATH_PATTERN_SUBJECTS
protected static final 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 Standard_1
- Throws:
ResourceException
activate
public void activate(short id,
Configuration configuration,
Layer_1 delegation)
throws ServiceException
- Overrides:
activate in class Layer_1
- Throws:
ServiceException
getPrincipalName
protected String getPrincipalName(ServiceHeader header)
throws ServiceException
- Throws:
ServiceException
completeObject
protected void completeObject(ServiceHeader header,
MappedRecord object)
throws ServiceException
- Throws:
ServiceException
completeReply
protected DataproviderReply completeReply(ServiceHeader header,
DataproviderReply reply)
throws ServiceException
- Throws:
ServiceException
createResult
protected Object_2Facade createResult(DataproviderRequest request,
String structName)
throws ServiceException
- Throws:
ServiceException
setAttributes
protected void setAttributes(ServiceHeader header,
MappedRecord obj,
MappedRecord oldValues)
throws ServiceException
- Throws:
ServiceException
changePassword
protected void changePassword(ServiceHeader header,
MappedRecord passwordCredential,
MappedRecord changePasswordParams)
throws ServiceException
- Throws:
ServiceException
checkPermission
protected void checkPermission(ServiceHeader header,
DataproviderRequest request)
throws ServiceException
- Throws:
ServiceException
updateRealm
protected void updateRealm(ServiceHeader header,
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.