Package org.apache.catalina.users
Class AbstractGroup
- java.lang.Object
-
- org.apache.catalina.users.AbstractGroup
-
- All Implemented Interfaces:
java.security.Principal,Group
- Direct Known Subclasses:
GenericGroup
public abstract class AbstractGroup extends java.lang.Object implements Group
Convenience base class for
Groupimplementations.- Since:
- 4.1
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdescriptionThe description of this group.protected java.lang.StringgroupnameThe group name of this group.
-
Constructor Summary
Constructors Constructor Description AbstractGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.StringgetGroupname()java.lang.StringgetName()Make the principal name the same as the group name.voidsetDescription(java.lang.String description)Set the description of this group.voidsetGroupname(java.lang.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
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceGroup- Returns:
- the description of this group.
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:GroupSet the description of this group.- Specified by:
setDescriptionin interfaceGroup- Parameters:
description- The new description
-
getGroupname
public java.lang.String getGroupname()
- Specified by:
getGroupnamein interfaceGroup- Returns:
- the group name of this group, which must be unique within the scope of a
UserDatabase.
-
setGroupname
public void setGroupname(java.lang.String groupname)
Description copied from interface:GroupSet the group name of this group, which must be unique within the scope of aUserDatabase.- Specified by:
setGroupnamein interfaceGroup- Parameters:
groupname- The new group name
-
getName
public java.lang.String getName()
Make the principal name the same as the group name.- Specified by:
getNamein interfacejava.security.Principal
-
-