ca.tnt.ldaputils
Interface ILdapGroup

Package class diagram package ILdapGroup
All Superinterfaces:
ILdapEntry
All Known Implementing Classes:
LdapGroup

public interface ILdapGroup
extends ILdapEntry

Author:
trenta

Field Summary
 
Fields inherited from interface ca.tnt.ldaputils.ILdapEntry
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE
 
Method Summary
 void addMember(ILdapEntry ldapEntry)
          Add a member to this group.
 SortedSet<String> getBusinessCategories()
           
 SortedSet getMembers()
          Returns a non-null SortedSet of group members.
 Map getMembers(String keyAttribute, int objectType)
           
 void removeMember(ILdapEntry ldapEntry)
          Remove a member from this group.
 
Methods inherited from interface ca.tnt.ldaputils.ILdapEntry
convertInstance, getAttributeValues, getBindAttributes, getCn, getCN, getDescription, getDn, getObjectClasses, getStringValue, modifyAttribute, modifyBatchAttribute, modifyBatchAttributes, save, setCn, setDn
 

Method Detail

getMembers

Map getMembers(String keyAttribute,
               int objectType)
               throws InvalidNameException
Parameters:
keyAttribute - key for the map
objectType -
Returns:
map of members with organization as the key. The members are of type @link{LDAPFactory.LDAP_TNT_BUSINESS} @param keyAttribute
Throws:
InvalidNameException

addMember

void addMember(ILdapEntry ldapEntry)
Add a member to this group.

Parameters:
ldapEntry - the ldap object corresponding to the member to add.

removeMember

void removeMember(ILdapEntry ldapEntry)
Remove a member from this group.

Parameters:
ldapEntry - the ldap object corresponding to the member to add.

getMembers

SortedSet getMembers()
Returns a non-null SortedSet of group members. If there are no members, the set's size is ZERO.

Returns:
all members in DN format, in alphabetical order.

getBusinessCategories

SortedSet<String> getBusinessCategories()