|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.security.acl.DefaultGroupImpl | +--com.bea.p13n.security.realm.RDBMSGroup
This class is the representation of a group from the database. This class no longer extends FlatGroup. A new caching scheme has been implemented to cache the membership information. The RDBMSGroup now only concerns itself with caching its child groups, as opposed to caching all users and child groups. The RDBMSUser is now responsible for knowing what groups it belongs to. When a client invokes the isMember method, for example, RDBMSGroup will delegate to RDBMSUser to determine if the user belongs to the group. What was happening before is that FlatGroup was caching all Users for each group. This was not a problem until the group membership size grew large. Once this happened a call to update the cache could potentially do a large number of database queries.
Field Summary | |
static int |
LIFETIME_DEFAULT_SEC
Default cache lifetime, in seconds. |
Method Summary | |
boolean |
addMember(java.security.Principal principal)
Add a member to this group. |
protected boolean |
addMemberInternal(java.security.Principal principal)
Update this object's internal state when adding a member. |
boolean |
equals(java.lang.Object o)
|
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 |
isMember(java.security.Principal member)
Returns true if the passed principal is a member of the group. |
java.util.Enumeration |
members()
Returns an enumeration of the members in the group. |
boolean |
removeMember(java.security.Principal principal)
Remove a member from this group. |
protected boolean |
removeMemberInternal(java.security.Principal principal)
Update this object's internal state when removing a member. |
Methods inherited from class weblogic.security.acl.DefaultGroupImpl |
getName,
toString |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int LIFETIME_DEFAULT_SEC
Method Detail |
protected java.lang.Class getUserClass()
public boolean addMember(java.security.Principal principal)
principal
- the new memberprotected boolean addMemberInternal(java.security.Principal principal)
public boolean removeMember(java.security.Principal principal)
principal
- the member to removeprotected boolean removeMemberInternal(java.security.Principal principal)
public boolean isMember(java.security.Principal member)
member
- the principal whose membership is to be checked.protected boolean isInternalMember(java.security.Principal member)
public java.util.Enumeration members()
public boolean equals(java.lang.Object o)
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |