Modifier and Type | Field and Description |
---|---|
protected String |
description
The description of this group.
|
protected String |
groupname
The group name of this group.
|
Constructor and Description |
---|
AbstractGroup() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addRole(Role role)
Add a new
Role to those assigned specifically to this group. |
String |
getDescription()
Return the description of this group.
|
String |
getGroupname()
Return the group name of this group, which must be unique
within the scope of a
UserDatabase . |
String |
getName()
Make the principal name the same as the group name.
|
abstract Iterator<Role> |
getRoles()
Return the set of
Role s assigned specifically to this group. |
abstract UserDatabase |
getUserDatabase()
Return the
UserDatabase within which this Group is defined. |
abstract Iterator<User> |
getUsers()
Return an Iterator over the set of
User s that
are members of this group. |
abstract boolean |
isInRole(Role role)
Is this group specifically assigned the specified
Role ? |
abstract void |
removeRole(Role role)
Remove a
Role from those assigned to this group. |
abstract void |
removeRoles()
Remove all
Role s from those assigned to this group. |
void |
setDescription(String description)
Set the description of this group.
|
void |
setGroupname(String groupname)
Set the group name of this group, which must be unique
within the scope of a
UserDatabase . |
protected String description
protected String groupname
public String getDescription()
getDescription
in interface Group
public void setDescription(String description)
setDescription
in interface Group
description
- The new descriptionpublic String getGroupname()
UserDatabase
.getGroupname
in interface Group
UserDatabase
.public void setGroupname(String groupname)
UserDatabase
.setGroupname
in interface Group
groupname
- The new group namepublic abstract Iterator<Role> getRoles()
Role
s assigned specifically to this group.public abstract UserDatabase getUserDatabase()
UserDatabase
within which this Group is defined.getUserDatabase
in interface Group
UserDatabase
within which this Group is defined.public abstract Iterator<User> getUsers()
User
s that
are members of this group.public abstract void addRole(Role role)
Role
to those assigned specifically to this group.public abstract boolean isInRole(Role role)
Role
?public abstract void removeRole(Role role)
Role
from those assigned to this group.removeRole
in interface Group
role
- The old rolepublic abstract void removeRoles()
Role
s from those assigned to this group.removeRoles
in interface Group
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.