IP*Works! V9

ipworks
Class LDAPAttribute

java.lang.Object
  extended by ipworks.LDAPAttribute

public class LDAPAttribute
extends java.lang.Object

An attribute for the current entry.

This type describes an attribute for the current LDAP entry. The ModOp field is only used in Modify operations.

AttributeType: Attribute type for the current entry.

If the value of AttributeType is an empty string, then Value that contains the corresponding value is part of a set of values, and the attribute type for the set is specified in the previous attribute of the collection with a non-empty AttributeType .

ModOp: An operation to apply on attributes during an LDAP modify operation.

Possible values include:

amoAdd (0)
amoAdd will add the specified value to the given attribute, creating the attribute if it does not already exist.
amoDelete (1)
amoDelete will delete the specified value from the given attribute. If all or none of the values are specified for the value, the entire attribute will be deleted; otherwise only the specific value(s) listed will be removed.
amoReplace (2)
amoReplace will replace all existing values of the given attribute with the new values specified.

Value: Attribute value for the current entry.

If the value is part of a set of values, the AttributeType that contains the corresponding attribute type is an empty string, and the attribute type for the set is specified in the previous attribute of the collection with a non-empty AttributeType .

See Also:
Atom, Atom.LDAPAttribute

Field Summary
static int amoAdd
           
static int amoDelete
           
static int amoReplace
           
 
Constructor Summary
LDAPAttribute()
           
LDAPAttribute(java.lang.String attributeType)
           
LDAPAttribute(java.lang.String attributeType, java.lang.String value)
           
LDAPAttribute(java.lang.String attributeType, java.lang.String value, int LDAPAttributeModOp)
           
 
Method Summary
 java.lang.String getAttributeType()
           
 int getModOp()
           
 byte[] getValue()
           
 void setAttributeType(java.lang.String value)
           
 void setModOp(int value)
           
 void setValue(byte[] value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amoAdd

public static final int amoAdd
See Also:
Constant Field Values

amoDelete

public static final int amoDelete
See Also:
Constant Field Values

amoReplace

public static final int amoReplace
See Also:
Constant Field Values
Constructor Detail

LDAPAttribute

public LDAPAttribute()

LDAPAttribute

public LDAPAttribute(java.lang.String attributeType)

LDAPAttribute

public LDAPAttribute(java.lang.String attributeType,
                     java.lang.String value)

LDAPAttribute

public LDAPAttribute(java.lang.String attributeType,
                     java.lang.String value,
                     int LDAPAttributeModOp)
Method Detail

getAttributeType

public java.lang.String getAttributeType()

setAttributeType

public void setAttributeType(java.lang.String value)

getModOp

public int getModOp()

setModOp

public void setModOp(int value)

getValue

public byte[] getValue()

setValue

public void setValue(byte[] value)

IP*Works! V9

Copyright (c) 2013 /n software inc. - All rights reserved.