|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILdapEntry
Implements LDAP objects.
Field Summary | |
---|---|
static int |
ADD_ATTRIBUTE
Used in setting attributes. |
static int |
REMOVE_ATTRIBUTE
Used in setting attributes. |
static int |
REPLACE_ATTRIBUTE
Used in setting attributes. |
Method Summary | |
---|---|
ILdapEntry |
convertInstance(int type)
|
List |
getAttributeValues(String attribute)
|
Attributes |
getBindAttributes()
|
String |
getCn()
|
String |
getCN()
|
String |
getDescription()
|
LdapName |
getDn()
|
List |
getObjectClasses()
Get's the types of objects this is. |
String |
getStringValue(String attribute)
|
void |
modifyAttribute(int operation,
String attribute,
Object value)
Sets the given attribute right now, and does not delay. |
void |
modifyBatchAttribute(int operation,
String attribute,
Object value)
Please note, the preferred method is to call setXXXX() where XXXX is the attribute name, followed by save(). |
void |
modifyBatchAttributes()
Runs the batch modifications requested through the modifyBatchAttribute(int, String, Object) |
void |
save()
Because LDAP operations are expensive, we have a save method. |
void |
setCn(String cn)
|
void |
setDn(LdapName dn)
|
Field Detail |
---|
static final int ADD_ATTRIBUTE
DirContext.ADD_ATTRIBUTE
static final int REPLACE_ATTRIBUTE
DirContext.REPLACE_ATTRIBUTE
static final int REMOVE_ATTRIBUTE
modifyBatchAttribute(int, java.lang.String, java.lang.Object)
several times with REMOVE_ATTRIBUTE, then all the
attributes with the specified values will be removed.
The value of this constant is 2
DirContext.REMOVE_ATTRIBUTE
Method Detail |
---|
List getObjectClasses()
String getCN()
LdapName getDn()
String getDescription()
ILdapEntry convertInstance(int type) throws NamingException
type
- the object type to convert to
NamingException
- if any conversion problems occur.List getAttributeValues(String attribute)
String getStringValue(String attribute)
void modifyAttribute(int operation, String attribute, Object value)
operation
- on of ADD_ATTRIBUTE, REPLACE_ATTRIBUTE,
REMOVE_ATTRIBUTEattribute
- the name of the attributevalue
- the value of the attributeADD_ATTRIBUTE
,
REPLACE_ATTRIBUTE
,
REMOVE_ATTRIBUTE
void modifyBatchAttribute(int operation, String attribute, Object value)
operation
- one of ADD_ATTRIBUTE, REPLACE_ATTRIBUTE,
REMOVE_ATTRIBUTEattribute
- the name of the attributevalue
- the value of the attributeADD_ATTRIBUTE
,
REPLACE_ATTRIBUTE
,
REMOVE_ATTRIBUTE
void modifyBatchAttributes()
modifyBatchAttribute(int, String, Object)
void save()
Attributes getBindAttributes()
void setDn(LdapName dn)
String getCn()
void setCn(String cn)
|
||||||||||
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.