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 void
addMemberName(java.lang.String name)
Adds new member.void
delete(java.lang.String name)
Deletes an attribute value from this AttrSet.java.lang.Object
get(java.lang.String name)
Gets an attribute value.java.lang.String
getDescription()
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.String
getGroupID()
Retrieves group identifier.java.util.Enumeration<java.lang.String>
getMemberNames()
Retrieves a list of member names.java.lang.String
getName()
Retrieves the group name.boolean
isMember(java.lang.String name)
Checks if the given name is member of this group.void
set(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:IGroup
Retrieves the group name.
-
getGroupID
public java.lang.String getGroupID()
Description copied from interface:IGroup
Retrieves group identifier.- Specified by:
getGroupID
in interfaceIGroup
- Returns:
- the group id
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IGroup
Retrieves group description.- Specified by:
getDescription
in interfaceIGroup
- Returns:
- description
-
addMemberName
public void addMemberName(java.lang.String name)
Description copied from interface:IGroup
Adds new member.- Specified by:
addMemberName
in interfaceIGroup
- Parameters:
name
- the given name.
-
getMemberNames
public java.util.Enumeration<java.lang.String> getMemberNames()
Description copied from interface:IGroup
Retrieves a list of member names.- Specified by:
getMemberNames
in interfaceIGroup
- Returns:
- a list of member names for this group.
-
isMember
public boolean isMember(java.lang.String name)
Description copied from interface:IGroup
Checks if the given name is member of this group.
-
set
public void set(java.lang.String name, java.lang.Object object) throws EBaseException
Description copied from interface:IAttrSet
Sets an attribute value within this AttrSet.- Specified by:
set
in 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 EBaseException
Description copied from interface:IAttrSet
Gets an attribute value.- Specified by:
get
in 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 EBaseException
Description copied from interface:IAttrSet
Deletes an attribute value from this AttrSet.- Specified by:
delete
in 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:IAttrSet
Returns an enumeration of the names of the attributes existing within this AttrSet.- Specified by:
getElements
in interfaceIAttrSet
- Returns:
- an enumeration of the attribute names.
-
-