Package com.netscape.cmscore.usrgrp
Class Group
- java.lang.Object
-
- com.netscape.cmscore.usrgrp.Group
-
- All Implemented Interfaces:
IAttrSet,IGroup,IGroupConstants,java.io.Serializable
public class Group extends java.lang.Object implements IGroup
A class represents a group.- Version:
- $Revision$, $Date$
- Author:
- cfu
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.netscape.certsrv.usrgrp.IGroupConstants
ATTR_DESCRIPTION, ATTR_ID, ATTR_MEMBERS, ATTR_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMemberName(java.lang.String name)Adds new member.voiddelete(java.lang.String name)Deletes an attribute value from this AttrSet.java.lang.Objectget(java.lang.String name)Gets an attribute value.java.lang.StringgetDescription()Retrieves group description.java.util.Enumeration<java.lang.String>getElements()Returns an enumeration of the names of the attributes existing within this AttrSet.java.lang.StringgetGroupID()Retrieves group identifier.java.util.Enumeration<java.lang.String>getMemberNames()Retrieves a list of member names.java.lang.StringgetName()Retrieves the group name.booleanisMember(java.lang.String name)Checks if the given name is member of this group.voidset(java.lang.String name, java.lang.Object object)Sets an attribute value within this AttrSet.
-
-
-
Constructor Detail
-
Group
public Group(IUsrGrp base, java.lang.String name)
Constructs local group.
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:IGroupRetrieves the group name.
-
getGroupID
public java.lang.String getGroupID()
Description copied from interface:IGroupRetrieves group identifier.- Specified by:
getGroupIDin interfaceIGroup- Returns:
- the group id
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IGroupRetrieves group description.- Specified by:
getDescriptionin interfaceIGroup- Returns:
- description
-
addMemberName
public void addMemberName(java.lang.String name)
Description copied from interface:IGroupAdds new member.- Specified by:
addMemberNamein interfaceIGroup- Parameters:
name- the given name.
-
getMemberNames
public java.util.Enumeration<java.lang.String> getMemberNames()
Description copied from interface:IGroupRetrieves a list of member names.- Specified by:
getMemberNamesin interfaceIGroup- Returns:
- a list of member names for this group.
-
isMember
public boolean isMember(java.lang.String name)
Description copied from interface:IGroupChecks if the given name is member of this group.
-
set
public void set(java.lang.String name, java.lang.Object object) throws EBaseExceptionDescription copied from interface:IAttrSetSets an attribute value within this AttrSet.- Specified by:
setin interfaceIAttrSet- Parameters:
name- the name of the attributeobject- the attribute object.- Throws:
EBaseException- on attribute handling errors.
-
get
public java.lang.Object get(java.lang.String name) throws EBaseExceptionDescription copied from interface:IAttrSetGets an attribute value.- Specified by:
getin interfaceIAttrSet- Parameters:
name- the name of the attribute to return.- Throws:
EBaseException- on attribute handling errors.
-
delete
public void delete(java.lang.String name) throws EBaseExceptionDescription copied from interface:IAttrSetDeletes an attribute value from this AttrSet.- Specified by:
deletein interfaceIAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
EBaseException- on attribute handling errors.
-
getElements
public java.util.Enumeration<java.lang.String> getElements()
Description copied from interface:IAttrSetReturns an enumeration of the names of the attributes existing within this AttrSet.- Specified by:
getElementsin interfaceIAttrSet- Returns:
- an enumeration of the attribute names.
-
-