Package com.netscape.cmscore.usrgrp
Class Group
java.lang.Object
com.netscape.cmscore.usrgrp.Group
- All Implemented Interfaces:
IAttrSet
,Serializable
A class represents a group.
- Version:
- $Revision$, $Date$
- Author:
- cfu
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMemberName
(String name) Adds new member.void
Deletes an attribute value from this AttrSet.Gets an attribute value.Retrieves group description.Returns an enumeration of the names of the attributes existing within this AttrSet.Retrieves group identifier.Retrieves a list of member names.getName()
Retrieves the group name.boolean
Checks if the given name is member of this group.void
Sets an attribute value within this AttrSet.
-
Field Details
-
ATTR_NAME
Contant for groupName- See Also:
-
ATTR_ID
Constant for dn- See Also:
-
ATTR_DESCRIPTION
Constant for description- See Also:
-
ATTR_MEMBERS
Constant for uniquemember- See Also:
-
-
Constructor Details
-
Group
Constructs local group.
-
-
Method Details
-
getName
Retrieves the group name.- Returns:
- the group name
-
getGroupID
Retrieves group identifier.- Returns:
- the group id
-
getDescription
Retrieves group description.- Returns:
- description
-
addMemberName
Adds new member.- Parameters:
name
- the given name.
-
getMemberNames
Retrieves a list of member names.- Returns:
- a list of member names for this group.
-
isMember
Checks if the given name is member of this group.- Parameters:
name
- the given name- Returns:
- true if the given name is the member of this group; otherwise false.
-
set
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
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
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
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.
-