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.String
ATTR_DESCRIPTION
Constant for descriptionstatic java.lang.String
ATTR_ID
Constant for dnstatic java.lang.String
ATTR_MEMBERS
Constant for uniquememberstatic java.lang.String
ATTR_NAME
Contant 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 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.
-
-
-
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 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.
-
-