Package org.apache.catalina.users
Class AbstractGroup
java.lang.Object
org.apache.catalina.users.AbstractGroup
- Direct Known Subclasses:
GenericGroup
Convenience base class for Group
implementations.
- Since:
- 4.1
- Author:
- Craig R. McClanahan
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Make the principal name the same as the group name.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 aUserDatabase
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.catalina.Group
addRole, getRoles, getUserDatabase, getUsers, isInRole, removeRole, removeRoles
-
Field Details
-
description
The description of this group. -
groupname
The group name of this group.
-
-
Constructor Details
-
AbstractGroup
public AbstractGroup()
-
-
Method Details
-
getDescription
- Specified by:
getDescription
in interfaceGroup
- Returns:
- the description of this group.
-
setDescription
Description copied from interface:Group
Set the description of this group.- Specified by:
setDescription
in interfaceGroup
- Parameters:
description
- The new description
-
getGroupname
- Specified by:
getGroupname
in interfaceGroup
- Returns:
- the group name of this group, which must be unique within the scope of a
UserDatabase
.
-
setGroupname
Description copied from interface:Group
Set the group name of this group, which must be unique within the scope of aUserDatabase
.- Specified by:
setGroupname
in interfaceGroup
- Parameters:
groupname
- The new group name
-
getName
Make the principal name the same as the group name.
-