Class Group

java.lang.Object
com.netscape.cmscore.usrgrp.Group
All Implemented Interfaces:
IAttrSet, Serializable

public class Group extends Object implements IAttrSet
A class represents a group.
Version:
$Revision$, $Date$
Author:
cfu
See Also:
  • Field Details

  • Constructor Details

    • Group

      public Group(String name)
      Constructs local group.
  • Method Details

    • getName

      public String getName()
      Retrieves the group name.
      Returns:
      the group name
    • getGroupID

      public String getGroupID()
      Retrieves group identifier.
      Returns:
      the group id
    • getDescription

      public String getDescription()
      Retrieves group description.
      Returns:
      description
    • addMemberName

      public void addMemberName(String name)
      Adds new member.
      Parameters:
      name - the given name.
    • getMemberNames

      public Enumeration<String> getMemberNames()
      Retrieves a list of member names.
      Returns:
      a list of member names for this group.
    • isMember

      public boolean isMember(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(String name, Object object) throws EBaseException
      Description copied from interface: IAttrSet
      Sets an attribute value within this AttrSet.
      Specified by:
      set in interface IAttrSet
      Parameters:
      name - the name of the attribute
      object - the attribute object.
      Throws:
      EBaseException - on attribute handling errors.
    • get

      public Object get(String name) throws EBaseException
      Description copied from interface: IAttrSet
      Gets an attribute value.
      Specified by:
      get in interface IAttrSet
      Parameters:
      name - the name of the attribute to return.
      Throws:
      EBaseException - on attribute handling errors.
    • delete

      public void delete(String name) throws EBaseException
      Description copied from interface: IAttrSet
      Deletes an attribute value from this AttrSet.
      Specified by:
      delete in interface IAttrSet
      Parameters:
      name - the name of the attribute to delete.
      Throws:
      EBaseException - on attribute handling errors.
    • getElements

      public Enumeration<String> getElements()
      Description copied from interface: IAttrSet
      Returns an enumeration of the names of the attributes existing within this AttrSet.
      Specified by:
      getElements in interface IAttrSet
      Returns:
      an enumeration of the attribute names.