public class Entry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ADD
The possible change types
|
static int |
DELETE |
static int |
MODDN |
static int |
MODIFY |
static int |
MODRDN |
Constructor and Description |
---|
Entry() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(javax.naming.directory.Attribute attr)
Add an attribute to the entry
|
void |
addAttribute(java.lang.String id,
java.lang.Object value)
Add an attribute to the entry
|
void |
addModificationItem(int modOp,
java.lang.String id,
java.lang.Object value)
Add a modification item
|
javax.naming.directory.Attribute |
get(java.lang.String attributeId)
Returns a attribute given it's id
|
javax.naming.directory.Attributes |
getAttributes()
Get the entry's attributes
|
int |
getChangeType()
Get the change type
|
javax.naming.ldap.Control |
getControl() |
java.lang.String |
getDn() |
java.util.List<javax.naming.directory.ModificationItem> |
getModificationItems() |
java.lang.String |
getNewRdn() |
java.lang.String |
getNewSuperior() |
boolean |
isChangeAdd() |
boolean |
isChangeDelete() |
boolean |
isChangeModDn() |
boolean |
isChangeModify() |
boolean |
isChangeModRdn() |
boolean |
isDeleteOldRdn() |
boolean |
isEntry() |
void |
putAttribute(java.lang.String id,
java.lang.Object value)
Add an attribute value to an existing attribute
|
void |
setChangeType(int changeType)
Set the modification type
|
void |
setChangeType(java.lang.String changeType)
Set the change type
|
void |
setControl(javax.naming.ldap.Control control)
Add a control to the entry
|
void |
setDeleteOldRdn(boolean deleteOldRdn)
Set the flage deleteOldRdn
|
void |
setDn(java.lang.String dn)
Set the Distinguished Name
|
void |
setNewRdn(java.lang.String newRdn)
Set the new RDN
|
void |
setNewSuperior(java.lang.String newSuperior)
Set the new superior
|
int |
size() |
java.lang.String |
toString()
Return a String representing the Entry
|
public static final int ADD
public static final int MODIFY
public static final int MODDN
public static final int MODRDN
public static final int DELETE
public void setDn(java.lang.String dn)
dn
- The Distinguished Namepublic void setChangeType(int changeType)
changeType
- The change typepublic void setChangeType(java.lang.String changeType)
changeType
- The change typepublic void addModificationItem(int modOp, java.lang.String id, java.lang.Object value)
modOp
- The operation. One of : DirContext.ADD_ATTRIBUTE
DirContext.REMOVE_ATTRIBUTE DirContext.REPLACE_ATTRIBUTEid
- The attribute's IDvalue
- The attribute's valuepublic void addAttribute(javax.naming.directory.Attribute attr)
attr
- The attribute to be addedpublic void addAttribute(java.lang.String id, java.lang.Object value)
id
- The attribute IDvalue
- The attribute valuepublic void putAttribute(java.lang.String id, java.lang.Object value)
id
- The attribute IDvalue
- The attribute valuepublic int getChangeType()
public java.util.List<javax.naming.directory.ModificationItem> getModificationItems()
public java.lang.String getDn()
public int size()
public javax.naming.directory.Attribute get(java.lang.String attributeId)
attributeId
- The attribute Idpublic javax.naming.directory.Attributes getAttributes()
public boolean isDeleteOldRdn()
public void setDeleteOldRdn(boolean deleteOldRdn)
deleteOldRdn
- True if the old RDN should be deletedpublic java.lang.String getNewRdn()
public void setNewRdn(java.lang.String newRdn)
newRdn
- The new RDNpublic java.lang.String getNewSuperior()
public void setNewSuperior(java.lang.String newSuperior)
newSuperior
- The new Superiorpublic boolean isChangeAdd()
public boolean isChangeDelete()
public boolean isChangeModDn()
public boolean isChangeModRdn()
public boolean isChangeModify()
public boolean isEntry()
public javax.naming.ldap.Control getControl()
public void setControl(javax.naming.ldap.Control control)
control
- The controlpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © Copyright 2006-2019 The Scriptella Project Team.