public class AccessControl_1
extends org.openmdx.application.dataprovider.layer.model.Standard_1
Modifier and Type | Class and Description |
---|---|
class |
AccessControl_1.CachedPrincipal
CachedPrincipal
|
class |
AccessControl_1.DefaultRealm
Default realm implementation.
|
class |
AccessControl_1.LayerInteraction
LayerInteraction
|
Modifier and Type | Field and Description |
---|---|
protected static String |
ALL_PERMISSION |
protected List<Object> |
connectionFactories |
protected static org.openmdx.base.naming.Path |
EXTENT_PATTERN |
protected org.openmdx.base.mof.cci.Model_1_0 |
model |
protected static ConcurrentMap<org.openmdx.base.naming.Path,Object[]> |
objectCache |
protected org.openmdx.base.naming.Path |
realmIdentity |
protected static ConcurrentMap<org.openmdx.base.naming.Path,org.openmdx.base.naming.Path> |
sharedAssociationToCompositeParentPathMap |
protected boolean |
useExtendedAccessLevelBasic |
protected static org.openmdx.base.naming.Path |
USER_HOME_PATH_PATTERN |
Constructor and Description |
---|
AccessControl_1()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
activate(short id,
org.openmdx.application.configuration.Configuration configuration,
org.openmdx.application.dataprovider.spi.Layer_1 delegation) |
protected void |
completeObject(org.openmdx.application.dataprovider.cci.ServiceHeader header,
javax.resource.cci.MappedRecord object)
Complete derived attributes for returned objects.
|
protected void |
completeOwningUserAndGroup(org.openmdx.application.dataprovider.cci.ServiceHeader header,
javax.resource.cci.MappedRecord object)
Complete derived attributes.
|
protected org.openmdx.application.dataprovider.cci.DataproviderReply |
completeReply(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderReply reply)
Complete reply.
|
protected javax.resource.cci.MappedRecord |
createResult(org.openmdx.application.dataprovider.cci.DataproviderRequest request,
String structName)
Create request result.
|
protected org.openmdx.base.naming.Path |
getGroupIdentity(org.openmdx.base.naming.Path accessPath,
String qualifiedPrincipalName)
Get group identity for principal.
|
javax.resource.cci.Interaction |
getInteraction(javax.resource.cci.Connection connection) |
protected static ConcurrentMap<org.openmdx.base.naming.Path,Object[]> |
getObjectCache()
Get object cache.
|
protected String |
getPrincipalName(org.openmdx.application.dataprovider.cci.ServiceHeader header)
Extract principal name from request header.
|
protected String |
getQualifiedPrincipalName(org.openmdx.base.naming.Path principalIdentity)
Get qualified principal name.
|
protected String |
getQualifiedPrincipalName(org.openmdx.base.naming.Path accessPath,
String principalName)
Get qualified principal name.
|
protected AccessControl_1.DefaultRealm |
getRealm(org.openmdx.application.dataprovider.cci.ServiceHeader header,
org.openmdx.application.dataprovider.cci.DataproviderRequest request)
Get realm for given request.
|
protected org.openmdx.base.mof.cci.ModelElement_1_0 |
getReferencedType(org.openmdx.base.naming.Path accessPath,
org.openmdx.application.dataprovider.cci.FilterProperty[] filter)
Get type referenced by access path.
|
protected org.openmdx.base.naming.Path |
getUser(AccessControl_1.CachedPrincipal principal)
Get user identity for principal.
|
protected org.openmdx.base.naming.Path |
getUserIdentity(AccessControl_1.CachedPrincipal principal)
Get user identity for given principal.
|
protected org.openmdx.base.naming.Path |
getUserIdentity(String qualifiedPrincipalName)
Get user identity for given principal.
|
protected org.openmdx.base.naming.Path |
getUserIdentity(String realmName,
String principalName)
Get user identity for principal of given realm.
|
protected boolean |
isPrincipalGroup(javax.resource.cci.MappedRecord object)
Test whether object is instance of PrincipalGroup.
|
protected boolean |
isSecureObject(javax.resource.cci.MappedRecord object)
Test whether object's type is a subclass of SecureObject.
|
protected boolean |
isSecureObject(org.openmdx.base.mof.cci.ModelElement_1_0 type)
Test whether type is a subclass of SecureObject.
|
javax.jdo.PersistenceManager |
newDelegatingPersistenceManager()
Get persistence manager.
|
protected AccessControl_1.DefaultRealm |
newRealm(org.openmdx.base.naming.Path realmIdentity)
Allows to provide a custom-specific realm implementation.
|
completeObject, completeReply, getObjectClassName
protected static final org.openmdx.base.naming.Path EXTENT_PATTERN
protected static final org.openmdx.base.naming.Path USER_HOME_PATH_PATTERN
protected static final String ALL_PERMISSION
protected org.openmdx.base.naming.Path realmIdentity
protected org.openmdx.base.mof.cci.Model_1_0 model
protected boolean useExtendedAccessLevelBasic
protected static final ConcurrentMap<org.openmdx.base.naming.Path,Object[]> objectCache
protected static final ConcurrentMap<org.openmdx.base.naming.Path,org.openmdx.base.naming.Path> sharedAssociationToCompositeParentPathMap
public javax.resource.cci.Interaction getInteraction(javax.resource.cci.Connection connection) throws javax.resource.ResourceException
getInteraction
in interface org.openmdx.base.resource.spi.Port
getInteraction
in class org.openmdx.application.dataprovider.layer.model.Standard_1
javax.resource.ResourceException
protected org.openmdx.base.naming.Path getUserIdentity(AccessControl_1.CachedPrincipal principal)
principal
- protected org.openmdx.base.naming.Path getUserIdentity(String qualifiedPrincipalName)
qualifiedPrincipalName
- protected org.openmdx.base.naming.Path getUserIdentity(String realmName, String principalName)
realmName
- principalName
- protected org.openmdx.base.naming.Path getUser(AccessControl_1.CachedPrincipal principal) throws org.openmdx.base.exception.ServiceException
principal
- org.openmdx.base.exception.ServiceException
protected org.openmdx.base.naming.Path getGroupIdentity(org.openmdx.base.naming.Path accessPath, String qualifiedPrincipalName)
accessPath
- qualifiedPrincipalName
- protected String getQualifiedPrincipalName(org.openmdx.base.naming.Path accessPath, String principalName)
accessPath
- principalName
- protected String getQualifiedPrincipalName(org.openmdx.base.naming.Path principalIdentity)
principalIdentity
- protected void completeOwningUserAndGroup(org.openmdx.application.dataprovider.cci.ServiceHeader header, javax.resource.cci.MappedRecord object) throws org.openmdx.base.exception.ServiceException
header
- object
- org.openmdx.base.exception.ServiceException
protected void completeObject(org.openmdx.application.dataprovider.cci.ServiceHeader header, javax.resource.cci.MappedRecord object) throws org.openmdx.base.exception.ServiceException
header
- object
- org.openmdx.base.exception.ServiceException
protected org.openmdx.application.dataprovider.cci.DataproviderReply completeReply(org.openmdx.application.dataprovider.cci.ServiceHeader header, org.openmdx.application.dataprovider.cci.DataproviderReply reply) throws org.openmdx.base.exception.ServiceException
header
- reply
- org.openmdx.base.exception.ServiceException
protected boolean isPrincipalGroup(javax.resource.cci.MappedRecord object) throws org.openmdx.base.exception.ServiceException
object
- org.openmdx.base.exception.ServiceException
protected boolean isSecureObject(javax.resource.cci.MappedRecord object) throws org.openmdx.base.exception.ServiceException
object
- org.openmdx.base.exception.ServiceException
protected boolean isSecureObject(org.openmdx.base.mof.cci.ModelElement_1_0 type) throws org.openmdx.base.exception.ServiceException
type
- org.openmdx.base.exception.ServiceException
public javax.jdo.PersistenceManager newDelegatingPersistenceManager()
public void activate(short id, org.openmdx.application.configuration.Configuration configuration, org.openmdx.application.dataprovider.spi.Layer_1 delegation) throws org.openmdx.base.exception.ServiceException
activate
in class org.openmdx.application.dataprovider.spi.Layer_1
org.openmdx.base.exception.ServiceException
protected String getPrincipalName(org.openmdx.application.dataprovider.cci.ServiceHeader header)
header
- protected AccessControl_1.DefaultRealm newRealm(org.openmdx.base.naming.Path realmIdentity) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
protected AccessControl_1.DefaultRealm getRealm(org.openmdx.application.dataprovider.cci.ServiceHeader header, org.openmdx.application.dataprovider.cci.DataproviderRequest request) throws org.openmdx.base.exception.ServiceException
header
- request
- org.openmdx.base.exception.ServiceException
protected org.openmdx.base.mof.cci.ModelElement_1_0 getReferencedType(org.openmdx.base.naming.Path accessPath, org.openmdx.application.dataprovider.cci.FilterProperty[] filter) throws org.openmdx.base.exception.ServiceException
accessPath
- filter
- org.openmdx.base.exception.ServiceException
protected javax.resource.cci.MappedRecord createResult(org.openmdx.application.dataprovider.cci.DataproviderRequest request, String structName) throws org.openmdx.base.exception.ServiceException
request
- structName
- org.openmdx.base.exception.ServiceException
protected static ConcurrentMap<org.openmdx.base.naming.Path,Object[]> getObjectCache()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.