Top Description Fields Constructors Methods
org.apache.catalina.users

public abstract Class AbstractGroup

extends Object
implements Group
Class Inheritance
All Implemented Interfaces
org.apache.catalina.Group, java.security.Principal
Known Direct Subclasses
org.apache.catalina.users.GenericGroup
Imports
java.util.Iterator, org.apache.catalina.Group, .Role, .User, .UserDatabase

Convenience base class for Group implementations.

Author
Craig R. McClanahan
Since
4.1

Field Summary

Modifier and TypeField and Description
protected String
description

The description of this group.

protected String
groupname

The group name of this group.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
addRole(Role
The new role
role
)

Redeclares org.apache.catalina.Group.addRole.

Add a new Role to those assigned specifically to this group.

public String
getDescription()

Implements org.apache.catalina.Group.getDescription.

Return the description of this group.

public String
getGroupname()

Implements org.apache.catalina.Group.getGroupname.

Return the group name of this group, which must be unique within the scope of a UserDatabase.

public String
getName()

Implements java.security.Principal.getName.

Make the principal name the same as the group name.

public abstract Iterator<Role>
getRoles()

Redeclares org.apache.catalina.Group.getRoles.

Return the set of Roles assigned specifically to this group.

public abstract UserDatabase
getUserDatabase()

Redeclares org.apache.catalina.Group.getUserDatabase.

Return the UserDatabase within which this Group is defined.

public abstract Iterator<User>
getUsers()

Redeclares org.apache.catalina.Group.getUsers.

Return an Iterator over the set of org.apache.catalina.Users that are members of this group.

public abstract boolean
isInRole(Role
The role to check
role
)

Redeclares org.apache.catalina.Group.isInRole.

Is this group specifically assigned the specified Role?

public abstract void
removeRole(Role
The old role
role
)

Redeclares org.apache.catalina.Group.removeRole.

Remove a Role from those assigned to this group.

public abstract void
removeRoles()

Redeclares org.apache.catalina.Group.removeRoles.

Remove all Roles from those assigned to this group.

public void
setDescription(String
The new description
description
)

Implements org.apache.catalina.Group.setDescription.

Set the description of this group.

public void
setGroupname(String
The new group name
groupname
)

Implements org.apache.catalina.Group.setGroupname.

Set the group name of this group, which must be unique within the scope of a UserDatabase.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionback to summary
protected String description

The description of this group.

groupnameback to summary
protected String groupname

The group name of this group.

Constructor Detail

AbstractGroupback to summary
public AbstractGroup()

Method Detail

addRoleback to summary
public abstract void addRole(Role role)

Redeclares org.apache.catalina.Group.addRole.

Add a new Role to those assigned specifically to this group.

Parameters
role:Role

The new role

Annotations
@Override
getDescriptionback to summary
public String getDescription()

Implements org.apache.catalina.Group.getDescription.

Return the description of this group.

Returns:String

Doc from org.apache.catalina.Group.getDescription.

the description of this group.

Annotations
@Override
getGroupnameback to summary
public String getGroupname()

Implements org.apache.catalina.Group.getGroupname.

Return the group name of this group, which must be unique within the scope of a UserDatabase.

Returns:String

Doc from org.apache.catalina.Group.getGroupname.

the group name of this group, which must be unique within the scope of a UserDatabase.

Annotations
@Override
getNameback to summary
public String getName()

Implements java.security.Principal.getName.

Make the principal name the same as the group name.

Returns:String

Doc from java.security.Principal.getName.

the name of this Principal.

Annotations
@Override
getRolesback to summary
public abstract Iterator<Role> getRoles()

Redeclares org.apache.catalina.Group.getRoles.

Return the set of Roles assigned specifically to this group.

Returns:Iterator<Role>

Doc from org.apache.catalina.Group.getRoles.

the set of Roles assigned specifically to this group.

Annotations
@Override
getUserDatabaseback to summary
public abstract UserDatabase getUserDatabase()

Redeclares org.apache.catalina.Group.getUserDatabase.

Return the UserDatabase within which this Group is defined.

Returns:UserDatabase

Doc from org.apache.catalina.Group.getUserDatabase.

the UserDatabase within which this Group is defined.

Annotations
@Override
getUsersback to summary
public abstract Iterator<User> getUsers()

Redeclares org.apache.catalina.Group.getUsers.

Return an Iterator over the set of org.apache.catalina.Users that are members of this group.

Returns:Iterator<User>

Doc from org.apache.catalina.Group.getUsers.

the set of Users that are members of this group.

Annotations
@Override
isInRoleback to summary
public abstract boolean isInRole(Role role)

Redeclares org.apache.catalina.Group.isInRole.

Is this group specifically assigned the specified Role?

Parameters
role:Role

The role to check

Returns:boolean

Doc from org.apache.catalina.Group.isInRole.

true if the group is assigned to the specified role otherwise false

Annotations
@Override
removeRoleback to summary
public abstract void removeRole(Role role)

Redeclares org.apache.catalina.Group.removeRole.

Remove a Role from those assigned to this group.

Parameters
role:Role

The old role

Annotations
@Override
removeRolesback to summary
public abstract void removeRoles()

Redeclares org.apache.catalina.Group.removeRoles.

Remove all Roles from those assigned to this group.

Annotations
@Override
setDescriptionback to summary
public void setDescription(String description)

Implements org.apache.catalina.Group.setDescription.

Set the description of this group.

Parameters
description:String

The new description

Annotations
@Override
setGroupnameback to summary
public void setGroupname(String groupname)

Implements org.apache.catalina.Group.setGroupname.

Set the group name of this group, which must be unique within the scope of a UserDatabase.

Parameters
groupname:String

The new group name

Annotations
@Override