com.ibm.itim.common
Class AttributeChangeOperation

java.lang.Object
  extended by com.ibm.itim.common.ValueObject
      extended by com.ibm.itim.common.AttributeChangeOperation
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class AttributeChangeOperation
extends ValueObject

Represents a change operation on a collection of attributes. The specified action will be performed on all specified attributes.

See Also:
Serialized Form

Field Summary
static java.lang.String ACTION_ADD
          Deprecated. See ADD_ACTION.
static int ACTION_ADD_ENUM
          Deprecated. See ADD_ACTION.
static java.lang.String ACTION_CHANGE
          Deprecated. See REPLACE_ACTION.
static int ACTION_CHANGE_ENUM
          Deprecated. See REPLACE_ACTION.
static java.lang.String ACTION_REMOVE
          Deprecated. See REMOVE_ACTION.
static int ACTION_REMOVE_ENUM
          Deprecated. See REMOVE_ACTION.
static int ADD_ACTION
          Integer constant for the add action.
static int REMOVE_ACTION
          Integer constant for the remove action.
static int REPLACE_ACTION
          Integer constant for the change/replace action.
 
Constructor Summary
AttributeChangeOperation()
          Default constructor.
 
Method Summary
 java.lang.String getAction()
          Deprecated. See getModificationAction.
 java.util.Collection<AttributeValue> getChangeData()
          Returns a collection of the AttributeValue objects that hold the values of the attributes to be added, removed, or replaced.
 int getChangeDataSize()
          Returns the number of attributes in the subject of the action.
 int getModificationAction()
          Returns the action to be performed on the attribute.
 void setAction(java.lang.String action)
          Deprecated. See setModificationAction.
 void setChangeData(java.util.Collection<AttributeValue> subjectData)
          Replaces the subject of the change action with a collection of AttributeValue objects.
 void setModificationAction(int action)
          Sets the action to be performed on the attribute.
 java.lang.String toString()
          Returns a string representation of the attribute change operation.
 java.lang.String toXML()
          Returns an XML String representation of the attribute operation.
 
Methods inherited from class com.ibm.itim.common.ValueObject
clone, equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD_ACTION

public static final int ADD_ACTION
Integer constant for the add action.

See Also:
Constant Field Values

REMOVE_ACTION

public static final int REMOVE_ACTION
Integer constant for the remove action.

See Also:
Constant Field Values

REPLACE_ACTION

public static final int REPLACE_ACTION
Integer constant for the change/replace action.

See Also:
Constant Field Values

ACTION_ADD_ENUM

public static final int ACTION_ADD_ENUM
Deprecated. See ADD_ACTION.
Integer constant for the add action.

See Also:
Constant Field Values

ACTION_REMOVE_ENUM

public static final int ACTION_REMOVE_ENUM
Deprecated. See REMOVE_ACTION.
Integer constant for the remove action.

See Also:
Constant Field Values

ACTION_CHANGE_ENUM

public static final int ACTION_CHANGE_ENUM
Deprecated. See REPLACE_ACTION.
Integer constant for the change/replace action.

See Also:
Constant Field Values

ACTION_ADD

public static final java.lang.String ACTION_ADD
Deprecated. See ADD_ACTION.
String constant for the add action.

See Also:
Constant Field Values

ACTION_CHANGE

public static final java.lang.String ACTION_CHANGE
Deprecated. See REPLACE_ACTION.
String constant for the change/replace action.

See Also:
Constant Field Values

ACTION_REMOVE

public static final java.lang.String ACTION_REMOVE
Deprecated. See REMOVE_ACTION.
String constant for the remove action.

See Also:
Constant Field Values
Constructor Detail

AttributeChangeOperation

public AttributeChangeOperation()
Default constructor.

Method Detail

getAction

public java.lang.String getAction()
Deprecated. See getModificationAction.

Returns the string representation of the action to be performed.

Returns:
String representation of the action.

setAction

public void setAction(java.lang.String action)
Deprecated. See setModificationAction.

Sets the action to be performed on the attribute.

Parameters:
action - String representation of the action to be performed.

getModificationAction

public int getModificationAction()
Returns the action to be performed on the attribute.

Returns:
int representation of the action.

setModificationAction

public void setModificationAction(int action)
Sets the action to be performed on the attribute.

Parameters:
action - int representation of the action to be performed.

getChangeData

public java.util.Collection<AttributeValue> getChangeData()
Returns a collection of the AttributeValue objects that hold the values of the attributes to be added, removed, or replaced.

Returns:
Collection of AttributeValue objects.

setChangeData

public void setChangeData(java.util.Collection<AttributeValue> subjectData)
Replaces the subject of the change action with a collection of AttributeValue objects.

Parameters:
subjectData - Subject of action as a collection of AttributeValue objects.

getChangeDataSize

public int getChangeDataSize()
Returns the number of attributes in the subject of the action.

Returns:
number of attributes to be operated on.

toString

public java.lang.String toString()
Returns a string representation of the attribute change operation.

Overrides:
toString in class ValueObject
Returns:
String representation of the attribute operation.

toXML

public java.lang.String toXML()
Returns an XML String representation of the attribute operation.

Returns:
XML String representation of the attribute operation.


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.