org.opencrx.kernel.layer.model
Class SecurityContext
java.lang.Object
org.opencrx.kernel.layer.model.SecurityContext
public class SecurityContext
- extends Object
A security context manages the subjects of one subject segment.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityContext
public SecurityContext(AccessControl_1 plugin,
org.openmdx.base.naming.Path realmIdentity)
getPrincipal
protected org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 getPrincipal(String principalName)
throws ServiceException
- Throws:
ServiceException
getUserHome
protected org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 getUserHome(org.openmdx.base.naming.Path principalIdentity)
throws ServiceException
- Throws:
ServiceException
getPrimaryGroup
protected org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 getPrimaryGroup(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 principal)
throws ServiceException
- Throws:
ServiceException
getGroup
protected org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 getGroup(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 principal)
throws ServiceException
- Get group principal for the given principal. The group principal is
the assigned to the same subject as the given principal and is of type
PrincipalGroup. The owningGroup of a openCRX object is a PrincipalGroup.
- Throws:
ServiceException
getSubgroups
protected Set getSubgroups(String qualifiedPrincipalName)
throws ServiceException
- Return set of qualified names of subgroups of specified group subject.
- Throws:
ServiceException
getSupergroups
protected Set getSupergroups(String qualifiedPrincipalName)
throws ServiceException
- Return set of qualified names of subgroups of specified group subject.
- Throws:
ServiceException
getMemberships
protected Set<String> getMemberships(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 principal,
org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 user,
short accessLevel,
boolean useExtendedAccessLevelBasic)
This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.