© 2001 BEA Systems, Inc.


com.bea.p13n.security.realm
Class RDBMSGroup

java.lang.Object
  |
  +--weblogic.security.acl.DefaultGroupImpl
        |
        +--weblogic.security.acl.FlatGroup
              |
              +--com.bea.p13n.security.realm.RDBMSGroup

public class RDBMSGroup
extends weblogic.security.acl.FlatGroup

This class is the representation of a group from the database. By extending FlatGroup, this class will cache membership information for the duration specified in the CachingRealm's MBean setting (GroupMembershipCacheTTL).


Inner classes inherited from class weblogic.security.acl.FlatGroup
weblogic.security.acl.FlatGroup.Source
 
Fields inherited from class weblogic.security.acl.FlatGroup
LIFETIME_DEFAULT_SEC, members
 
Method Summary
 boolean addMember(java.security.Principal principal)
          Add a member to this group.
protected  java.lang.Class getUserClass()
           
protected  boolean isInternalMember(java.security.Principal member)
          Determine if a principal is a member of this group *directly*, not through a group hierarchy.
 boolean removeMember(java.security.Principal principal)
          Remove a member from this group.
 
Methods inherited from class weblogic.security.acl.FlatGroup
addMemberInternal, ensureFreshness, equals, getCacheTTLMillis, hashCode, isMember, members, removeMemberInternal, setCacheTTL, toString
 
Methods inherited from class weblogic.security.acl.DefaultGroupImpl
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getUserClass

protected java.lang.Class getUserClass()

Returns:
the type of user this realm knows about
Overrides:
getUserClass in class weblogic.security.acl.FlatGroup

addMember

public boolean addMember(java.security.Principal principal)
Add a member to this group. The new member can be either a user or a group, but must belong to this realm.

Parameters:
principal - the new member
Returns:
true if the member was added, false if it was already a member
Overrides:
addMember in class weblogic.security.acl.DefaultGroupImpl

removeMember

public boolean removeMember(java.security.Principal principal)
Remove a member from this group. The member can be either a user or a group, but must belong to this realm.

Parameters:
principal - the member to remove
Returns:
true if the member was removed, false if it was not a member
Overrides:
removeMember in class weblogic.security.acl.DefaultGroupImpl

isInternalMember

protected boolean isInternalMember(java.security.Principal member)
Determine if a principal is a member of this group *directly*, not through a group hierarchy. This way we can check before we add/remove a member, because even if a user is a member of a child group, we might still want to add it to this group.

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved