|
Oracle Internet Directory API Reference 10g(9.0.4) B10423-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ldap.util.ModPropertySet
This class represents a set of attributes and their values used in a modification of any properties.
The ModPropertySet
class is used in many of the setProperties() methods. It is used in User creation to define the attributes for a new user. It can also be used with Util.ldapModify()
as a generic way to modify LDAP entries
For example, the following code modifies the "displayname" of the realm DN represented by the Subscriber
object.
// ctx is a valid DirContext // sub is a valid Subscriber ModPropertySet mps = new ModPropertySet(); mps.addProperty( LDIF.ATTRIBUTE_CHANGE_TYPE_REPLACE, "displayName", "new display name"); sub.setProperties( ctx, mps );
Constructor Summary | |
ModPropertySet() Constructs an empty ModPropertySet. |
Method Summary | |
void |
addProperty(int chgType, LDIFAttribute lattr) Creates a modification item for a particular attribute specified by an LDIFAttribute |
void |
addProperty(int chgType, java.lang.String attrName, byte[] byteArray) Creates a modification item for a particular attribute. |
void |
addProperty(int chgType, java.lang.String attrName, java.lang.String attrValue) Creates a modification item in the ModPropertySet for a particular attribute. |
void |
addProperty(int chgType, java.lang.String attrName, java.lang.String[] attrValueList) Creates a modification item for a particular attribute. |
java.lang.String[] |
getAttributeNames() Returns an array of String containing the name of all the properties - all the attribute names contained in this ModPropertySet. |
boolean |
isEmpty() Returns true if the property set does not contain any properties; false otherwise |
int |
size() Returns the size of this property set - the number of returned attributes for this particular search result entry |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModPropertySet()
Method Detail |
public final boolean isEmpty()
public final int size()
public final java.lang.String[] getAttributeNames()
public void addProperty(int chgType, java.lang.String attrName, java.lang.String attrValue)
chgType
- use one of LDIF.ATTRIBUTE_CHANGE_TYPE_ADD. LDIF.ATTRIBUTE_CHANGE_TYPE_REPLACE, or LDIF.ATTRIBUTE_CHANGE_TYPE_DELETE.attrName
- the attribute nameattrValue
- the attribute valuepublic void addProperty(int chgType, java.lang.String attrName, java.lang.String[] attrValueList)
chgType
- use one of LDIF.ATTRIBUTE_CHANGE_TYPE_ADD. LDIF.ATTRIBUTE_CHANGE_TYPE_REPLACE, or LDIF.ATTRIBUTE_CHANGE_TYPE_DELETE.attrName
- the attribute namepublic void addProperty(int chgType, java.lang.String attrName, byte[] byteArray)
chgType
- use one of LDIF.ATTRIBUTE_CHANGE_TYPE_ADD. LDIF.ATTRIBUTE_CHANGE_TYPE_REPLACE, or LDIF.ATTRIBUTE_CHANGE_TYPE_DELETE.attrName
- the attribute namebyteArray
- value of the attribute as raw bytespublic void addProperty(int chgType, LDIFAttribute lattr)
LDIFAttribute
chgType
- use one of LDIF.ATTRIBUTE_CHANGE_TYPE_ADD. LDIF.ATTRIBUTE_CHANGE_TYPE_REPLACE, or LDIF.ATTRIBUTE_CHANGE_TYPE_DELETE.lattr
- a valid LDIFAttribute containing the attribute and values for the modification
|
Oracle Internet Directory API Reference 10g(9.0.4) B10423-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |