|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectca.tnt.ldaputils.impl.LdapEntry
ca.tnt.ldaputils.impl.LdapGroup
public class LdapGroup
LDAPGroup implementation.
Created : 14-Apr-2006 6:57:16 PM MST MINOR : When removing members, check for existence, then fail silently if it does not exist. Otherwise, remove it.
| Field Summary | |
|---|---|
protected SortedSet<String> |
sortedMembers
REQUIRED_FEATURE replace with SortedMap of ILdapOrganization entries, once we have gotten around infinite recursion. |
| Fields inherited from class ca.tnt.ldaputils.impl.LdapEntry |
|---|
attributes, isNew, modificationItems, modified, objectClasses |
| Fields inherited from interface ca.tnt.ldaputils.ILdapEntry |
|---|
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE |
| Constructor Summary | |
|---|---|
LdapGroup()
|
|
| Method Summary | |
|---|---|
void |
addMember(ILdapEntry ldapEntry)
Add a member to this group. |
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
SortedSet<String> |
getBusinessCategories()
Retrieves a list of business categories for this group. |
SortedSet |
getMembers()
Returns a non-null SortedSet of group members. |
Map |
getMembers(String keyAttribute,
int objectType)
|
int |
hashCode()
|
void |
removeMember(ILdapEntry ldapEntry)
Remove a member from this group. |
String |
toString()
|
| Methods inherited from class ca.tnt.ldaputils.impl.LdapEntry |
|---|
convertInstance, getAttributes, getAttributeValues, getBindAttributes, getCn, getCN, getDescription, getDn, getObjectClasses, getStringAttribute, getStringValue, isObjectClass, modifyAttribute, modifyBatchAttribute, modifyBatchAttributes, save, setCn, setDn, setObjectClasses, updateAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ca.tnt.ldaputils.ILdapEntry |
|---|
convertInstance, getAttributeValues, getBindAttributes, getCn, getCN, getDescription, getDn, getObjectClasses, getStringValue, modifyAttribute, modifyBatchAttribute, modifyBatchAttributes, save, setCn, setDn |
| Field Detail |
|---|
protected final SortedSet<String> sortedMembers
| Constructor Detail |
|---|
public LdapGroup()
| Method Detail |
|---|
public Map getMembers(String keyAttribute,
int objectType)
throws InvalidNameException
getMembers in interface ILdapGroupkeyAttribute - key for the map
InvalidNameExceptionpublic SortedSet getMembers()
ILdapGroup
getMembers in interface ILdapGrouppublic void addMember(ILdapEntry ldapEntry)
ILdapGroup
addMember in interface ILdapGroupldapEntry - the ldap object corresponding to the member to add.public void removeMember(ILdapEntry ldapEntry)
ILdapGroup
removeMember in interface ILdapGroupldapEntry - the ldap object corresponding to the member to add.public String toString()
toString in class LdapEntrypublic boolean equals(Object o)
equals in class LdapEntrypublic int hashCode()
hashCode in class LdapEntrypublic int compareTo(Object o)
compareTo in interface ComparablecompareTo in class LdapEntrypublic SortedSet<String> getBusinessCategories()
getBusinessCategories in interface ILdapGroup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This documentation is part of the LDAP Persistence API (LPA).
Copyright Trenton D. Adams <lpa at trentonadams daught ca>
LPA is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
LPA is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with LPA. If not, see GNU Licenses.
See the COPYING file, in the git repository, for more information.