Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
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.
Method Summary | |
boolean | addMember(Principal user)
|
boolean | isMember(Principal member)
|
Enumeration | members()
|
boolean | removeMember(Principal user)
|
Method Detail |
public boolean addMember(Principal user)
user
- the principal to add to this group.
public boolean removeMember(Principal user)
user
- the principal to remove from this group.
public boolean isMember(Principal member)
member
- the principal whose membership is to be checked.
public Enumeration members()
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |