|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectUser
weblogic.security.acl.GroupImpl
public class GroupImpl
GroupImpl implements Group, which is used to represent a group of principals. (A principal represents an entity such as an individual user or a company).
Note that Group extends Principal. Thus, either a Principal or a Group can be passed as an argument to methods containing a Principal parameter. For example, you can add either a Principal or a Group to a Group object by calling the object's addMember method, passing it the Principal or Group.
Constructor Summary | |
---|---|
GroupImpl(String name)
Deprecated. Constructs a group with the specified name. |
Method Summary | |
---|---|
boolean |
addMember(Principal principal)
Deprecated. Adds the specified member to the group. |
boolean |
isMember(Principal principal)
Deprecated. Returns true if the specified Principal is a member of the group. |
Enumeration |
members()
Deprecated. Returns an Enumeration of the members in the group. |
boolean |
removeMember(Principal principal)
Deprecated. Removes the specified member from the group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, getName, hashCode, toString |
Constructor Detail |
---|
public GroupImpl(String name)
Method Detail |
---|
public boolean addMember(Principal principal)
addMember
in interface Group
principal
- Principal to add to this group
Throws
- IllegalArgumentException if the principal is
this group since a group can't contain itself.public boolean removeMember(Principal principal)
removeMember
in interface Group
principal
- Principal to remove from this group
public Enumeration members()
members
in interface Group
public boolean isMember(Principal principal)
isMember
in interface Group
principal
- Principal whose membership is to be checked
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |