Package com.netscape.cmscore.usrgrp
Class Group
- java.lang.Object
-
- com.netscape.cmscore.usrgrp.Group
-
- All Implemented Interfaces:
IAttrSet,java.io.Serializable
public class Group extends java.lang.Object implements IAttrSet
A class represents a group.- Version:
- $Revision$, $Date$
- Author:
- cfu
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_DESCRIPTIONConstant for descriptionstatic java.lang.StringATTR_IDConstant for dnstatic java.lang.StringATTR_MEMBERSConstant for uniquememberstatic java.lang.StringATTR_NAMEContant for groupName
-
Constructor Summary
Constructors Constructor Description Group(java.lang.String name)Constructs local group.
-
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.
-
-
-
Field Detail
-
ATTR_NAME
public static final java.lang.String ATTR_NAME
Contant for groupName- See Also:
- Constant Field Values
-
ATTR_ID
public static final java.lang.String ATTR_ID
Constant for dn- See Also:
- Constant Field Values
-
ATTR_DESCRIPTION
public static final java.lang.String ATTR_DESCRIPTION
Constant for description- See Also:
- Constant Field Values
-
ATTR_MEMBERS
public static final java.lang.String ATTR_MEMBERS
Constant for uniquemember- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
Retrieves the group name.- Returns:
- the group name
-
getGroupID
public java.lang.String getGroupID()
Retrieves group identifier.- Returns:
- the group id
-
getDescription
public java.lang.String getDescription()
Retrieves group description.- Returns:
- description
-
addMemberName
public void addMemberName(java.lang.String name)
Adds new member.- Parameters:
name- the given name.
-
getMemberNames
public java.util.Enumeration<java.lang.String> getMemberNames()
Retrieves a list of member names.- Returns:
- a list of member names for this group.
-
isMember
public boolean isMember(java.lang.String name)
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
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.
-
-