|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.tnt.ldaputils.impl.LdapEntry ca.tnt.ldaputils.impl.LdapOrganization
public class LdapOrganization
Implements an LDAP organization object.
Created : 16-Apr-2006 10:25:36 PM MST
Field Summary |
---|
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 | |
---|---|
LdapOrganization()
Initializes an empty SortedMap for the businessCategories. |
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
SortedMap<String,? extends ILdapGroup> |
getBusinessCategories()
Retrieves a Map of categories where the key is the category name, and the value is the ILdapGroup. |
String |
getCategoryDN()
returns the category dn with a bind variable. |
String |
getFacsimileTelephoneNumber()
|
String |
getLocality()
|
String |
getOrganization()
|
String |
getPostalAddress()
|
String |
getPostalCode()
|
String |
getPostOfficeBox()
|
String |
getStreet()
|
String |
getTelephoneNumber()
|
List |
getValues(Class classType,
Class refType,
Object instance)
Processes LdapEntity objects for the given classType, and return them in a list, for binding or updating. |
int |
hashCode()
|
Object |
processValues(List list,
Class refType)
Processes LdapEntity objects for the given classType. |
void |
setBusinessCategories(String[] categories,
int operation)
|
void |
setFacsimileTelephoneNumber(String fax,
int operation)
|
void |
setLocality(String city,
int operation)
|
void |
setOrganization(String organizationName,
int operation)
|
void |
setPostalAddress(String postalAddress,
int operation)
|
void |
setPostalCode(String postalCode,
int operation)
|
void |
setPostOfficeBox(String postOfficeBox,
int operation)
|
void |
setStreet(String street,
int operation)
|
void |
setTelephoneNumber(String telephoneNumber,
int operation)
|
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 |
Constructor Detail |
---|
public LdapOrganization()
Method Detail |
---|
public SortedMap<String,? extends ILdapGroup> getBusinessCategories()
ILdapOrganization
getBusinessCategories
in interface ILdapOrganization
public String getTelephoneNumber()
getTelephoneNumber
in interface ILdapOrganization
public String getFacsimileTelephoneNumber()
getFacsimileTelephoneNumber
in interface ILdapOrganization
public String getStreet()
getStreet
in interface ILdapOrganization
public String getPostOfficeBox()
getPostOfficeBox
in interface ILdapOrganization
public String getPostalCode()
getPostalCode
in interface ILdapOrganization
public String getPostalAddress()
getPostalAddress
in interface ILdapOrganization
public String getLocality()
getLocality
in interface ILdapOrganization
public String getOrganization()
getOrganization
in interface ILdapOrganization
public void setBusinessCategories(String[] categories, int operation)
setBusinessCategories
in interface ILdapOrganization
public void setTelephoneNumber(String telephoneNumber, int operation)
setTelephoneNumber
in interface ILdapOrganization
public void setFacsimileTelephoneNumber(String fax, int operation)
setFacsimileTelephoneNumber
in interface ILdapOrganization
public void setStreet(String street, int operation)
setStreet
in interface ILdapOrganization
public void setPostOfficeBox(String postOfficeBox, int operation)
setPostOfficeBox
in interface ILdapOrganization
public void setPostalCode(String postalCode, int operation)
setPostalCode
in interface ILdapOrganization
public void setPostalAddress(String postalAddress, int operation)
setPostalAddress
in interface ILdapOrganization
public void setLocality(String city, int operation)
setLocality
in interface ILdapOrganization
public void setOrganization(String organizationName, int operation)
setOrganization
in interface ILdapOrganization
public String toString()
toString
in class LdapEntry
public String getCategoryDN()
public boolean equals(Object o)
equals
in class LdapEntry
public int hashCode()
hashCode
in class LdapEntry
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class LdapEntry
public Object processValues(List list, Class refType)
TypeHandler
Map
aggregateField
The type handler MUST handle ALL collection types that LdapEntity
aggregates are stored in, except List
, SortedSet
, or
native java arrays. If it does not, the data simply won't be stored in
the object. The data will then either be whatever your default
constructor sets it to, or null. YOUR PROBLEM, not ours. ;)
processValues
in interface TypeHandler
list
- the data that we need to put into a Collection of some
sort.refType
- the type of the field
public List getValues(Class classType, Class refType, Object instance)
TypeHandler
getValues
in interface TypeHandler
classType
- the Class of the field that we're trying to handle.refType
- the type of the fieldinstance
- the instance of the field, might be a collection, or
some other type
|
||||||||||
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.