public class AccessControl_2.DefaultRealm extends Object
| Constructor and Description |
|---|
AccessControl_2.DefaultRealm(org.openmdx.base.naming.Path realmIdentity)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<String> |
getPermissions(AccessControl_2.CachedPrincipal principal,
org.openmdx.base.naming.Path userIdentity,
short accessLevel,
SecurityKeys.Action action,
javax.jdo.PersistenceManager pm)
Get permissions for given principal and access level.
|
protected org.openmdx.base.naming.Path |
getPrimaryGroup(AccessControl_2.CachedPrincipal principal,
javax.jdo.PersistenceManager pm)
Get primary group for given principal.
|
protected AccessControl_2.CachedPrincipal |
getPrincipal(String principalName,
javax.jdo.PersistenceManager pm)
Retrieve principal for given principal name.
|
org.openmdx.base.naming.Path |
getRealmIdentity()
Get identity of realm.
|
org.opencrx.kernel.layer.model.AccessControl_2.GetRunAsPrincipalResult |
getRunAsPrincipal(org.openmdx.base.rest.cci.RequestRecord request,
List<String> principalChain,
org.openmdx.base.dataprovider.cci.DataproviderRequestProcessor p,
javax.jdo.PersistenceManager pm)
Get runAs principal according to service header and available runAs permissions.
|
boolean |
hasPermission(org.openmdx.base.rest.cci.RequestRecord request,
org.openmdx.base.rest.spi.Object_2Facade secureObject,
org.openmdx.base.rest.spi.Object_2Facade parent,
AccessControl_2.CachedPrincipal principal,
org.openmdx.base.naming.Path userIdentity,
SecurityKeys.Action action,
Set<String> grantedPermissions,
org.openmdx.base.dataprovider.cci.DataproviderRequestProcessor p,
javax.jdo.PersistenceManager pm)
Return true if principal has permission to perform the request.
|
void |
restrictQuery(org.openmdx.base.rest.cci.QueryRecord request,
org.openmdx.base.rest.spi.Object_2Facade object,
AccessControl_2.CachedPrincipal principal,
org.openmdx.base.naming.Path userIdentity,
javax.jdo.PersistenceManager pm)
Restrict query according to permissions of given principal.
|
public AccessControl_2.DefaultRealm(org.openmdx.base.naming.Path realmIdentity)
throws javax.resource.ResourceException
realmIdentity - org.openmdx.base.exception.ServiceExceptionjavax.resource.ResourceExceptionprotected AccessControl_2.CachedPrincipal getPrincipal(String principalName, javax.jdo.PersistenceManager pm) throws javax.resource.ResourceException
principalName - org.openmdx.base.exception.ServiceExceptionjavax.resource.ResourceExceptionpublic org.opencrx.kernel.layer.model.AccessControl_2.GetRunAsPrincipalResult getRunAsPrincipal(org.openmdx.base.rest.cci.RequestRecord request,
List<String> principalChain,
org.openmdx.base.dataprovider.cci.DataproviderRequestProcessor p,
javax.jdo.PersistenceManager pm)
throws javax.resource.ResourceException
header - request - interaction - org.openmdx.base.exception.ServiceExceptionjavax.resource.ResourceExceptionprotected org.openmdx.base.naming.Path getPrimaryGroup(AccessControl_2.CachedPrincipal principal, javax.jdo.PersistenceManager pm) throws javax.resource.ResourceException
principal - org.openmdx.base.exception.ServiceExceptionjavax.resource.ResourceExceptionprotected Set<String> getPermissions(AccessControl_2.CachedPrincipal principal, org.openmdx.base.naming.Path userIdentity, short accessLevel, SecurityKeys.Action action, javax.jdo.PersistenceManager pm)
request - principal - userIdentity - accessLevel - action - public org.openmdx.base.naming.Path getRealmIdentity()
public boolean hasPermission(org.openmdx.base.rest.cci.RequestRecord request,
org.openmdx.base.rest.spi.Object_2Facade secureObject,
org.openmdx.base.rest.spi.Object_2Facade parent,
AccessControl_2.CachedPrincipal principal,
org.openmdx.base.naming.Path userIdentity,
SecurityKeys.Action action,
Set<String> grantedPermissions,
org.openmdx.base.dataprovider.cci.DataproviderRequestProcessor p,
javax.jdo.PersistenceManager pm)
throws javax.resource.ResourceException
request - secureObject - parent - principal - userIdentity - action - grantedPermissions - interaction - org.openmdx.base.exception.ServiceExceptionjavax.resource.ResourceExceptionpublic void restrictQuery(org.openmdx.base.rest.cci.QueryRecord request,
org.openmdx.base.rest.spi.Object_2Facade object,
AccessControl_2.CachedPrincipal principal,
org.openmdx.base.naming.Path userIdentity,
javax.jdo.PersistenceManager pm)
throws org.openmdx.base.exception.ServiceException,
javax.resource.ResourceException
request - object - principal - userIdentity - org.openmdx.base.exception.ServiceExceptionjavax.resource.ResourceExceptionThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.