|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencrx.kernel.layer.model.AccessControl_1.DefaultRealm
public class AccessControl_1.DefaultRealm
Default realm implementation. Overload for custom-specific policies.
Constructor Summary | |
---|---|
AccessControl_1.DefaultRealm(Path realmIdentity)
Constructor |
Method Summary | |
---|---|
protected Set<String> |
getPermissions(DataproviderRequest request,
AccessControl_1.CachedPrincipal principal,
Path userIdentity,
short accessLevel,
SecurityKeys.Action action)
Get permissions for given principal and access level. |
protected Path |
getPrimaryGroup(AccessControl_1.CachedPrincipal principal)
Get primary group for given principal. |
protected AccessControl_1.CachedPrincipal |
getPrincipal(String principalName)
Retrieve principal for given principal name. |
Path |
getRealmIdentity()
Get identity of realm. |
org.opencrx.kernel.layer.model.AccessControl_1.GetRunAsPrincipalResult |
getRunAsPrincipal(ServiceHeader header,
DataproviderRequest request,
AccessControl_1.LayerInteraction interaction)
Get runAs principal according to service header and available runAs permissions. |
boolean |
hasPermission(DataproviderRequest request,
Object_2Facade secureObject,
Object_2Facade parent,
AccessControl_1.CachedPrincipal principal,
Path userIdentity,
SecurityKeys.Action action,
Set<String> grantedPermissions,
AccessControl_1.LayerInteraction interaction)
Return true if principal has permission to perform the request. |
void |
restrictQuery(DataproviderRequest request,
Object_2Facade object,
AccessControl_1.CachedPrincipal principal,
Path userIdentity)
Restrict query according to permissions of given principal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessControl_1.DefaultRealm(Path realmIdentity) throws ServiceException
realmIdentity
-
ServiceException
Method Detail |
---|
protected AccessControl_1.CachedPrincipal getPrincipal(String principalName) throws ServiceException
principalName
-
ServiceException
public org.opencrx.kernel.layer.model.AccessControl_1.GetRunAsPrincipalResult getRunAsPrincipal(ServiceHeader header, DataproviderRequest request, AccessControl_1.LayerInteraction interaction) throws ServiceException
header
- request
- interaction
-
ServiceException
protected Path getPrimaryGroup(AccessControl_1.CachedPrincipal principal) throws ServiceException
principal
-
ServiceException
protected Set<String> getPermissions(DataproviderRequest request, AccessControl_1.CachedPrincipal principal, Path userIdentity, short accessLevel, SecurityKeys.Action action)
request
- principal
- userIdentity
- accessLevel
- action
-
public Path getRealmIdentity()
public boolean hasPermission(DataproviderRequest request, Object_2Facade secureObject, Object_2Facade parent, AccessControl_1.CachedPrincipal principal, Path userIdentity, SecurityKeys.Action action, Set<String> grantedPermissions, AccessControl_1.LayerInteraction interaction) throws ServiceException
request
- secureObject
- parent
- principal
- userIdentity
- action
- grantedPermissions
- interaction
-
ServiceException
public void restrictQuery(DataproviderRequest request, Object_2Facade object, AccessControl_1.CachedPrincipal principal, Path userIdentity) throws ServiceException
request
- object
- principal
- userIdentity
-
ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |