org.openmdx.portal.servlet
Class DefaultRoleMapper

java.lang.Object
  extended by org.openmdx.portal.servlet.DefaultRoleMapper
All Implemented Interfaces:
Serializable, RoleMapper_1_0

public class DefaultRoleMapper
extends Object
implements Serializable, RoleMapper_1_0

See Also:
Serialized Form

Constructor Summary
DefaultRoleMapper()
           
 
Method Summary
 javax.jmi.reflect.RefObject checkPrincipal(javax.jmi.reflect.RefObject realm, String principalName)
          Checks whether the specified principal exists in the realm and if the principal is not disabled.
 String getAdminPrincipal(String realmName)
          Return the principal which can act as administrator for the given realm.
protected  List getIsMemberOfGroup(javax.jmi.reflect.RefObject loginPrincipal, String segmentName)
           
 List getUserInRoles(javax.jmi.reflect.RefObject loginRealm, String principalName)
          Return set of roles for specified principal in given realm.
 boolean isRootPrincipal(String principalName)
          Return true if the given principal is root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRoleMapper

public DefaultRoleMapper()
Method Detail

getIsMemberOfGroup

protected List getIsMemberOfGroup(javax.jmi.reflect.RefObject loginPrincipal,
                                  String segmentName)

checkPrincipal

public javax.jmi.reflect.RefObject checkPrincipal(javax.jmi.reflect.RefObject realm,
                                                  String principalName)
Description copied from interface: RoleMapper_1_0
Checks whether the specified principal exists in the realm and if the principal is not disabled.

Specified by:
checkPrincipal in interface RoleMapper_1_0
Returns:
the checked principal if it exists and is not disabled

getUserInRoles

public List getUserInRoles(javax.jmi.reflect.RefObject loginRealm,
                           String principalName)
Return set of roles for specified principal in given realm. This role mapper is based on the openMDX/security model.

Specified by:
getUserInRoles in interface RoleMapper_1_0

getAdminPrincipal

public String getAdminPrincipal(String realmName)
Description copied from interface: RoleMapper_1_0
Return the principal which can act as administrator for the given realm.

Specified by:
getAdminPrincipal in interface RoleMapper_1_0

isRootPrincipal

public boolean isRootPrincipal(String principalName)
Description copied from interface: RoleMapper_1_0
Return true if the given principal is root.

Specified by:
isRootPrincipal in interface RoleMapper_1_0


This software is published under the BSD license. Copyright © 2006-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.