|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nimx.services.datacontrol.cachedmap.AttrModification
public class AttrModification
This data object encapsulate the transient data when processing a batch modification.
This is a "transaction operation container" object. It condense multiple ADD/REMOVE operations on the same attribute to the same ADD/REMOVE operation. It also perform validation logic to ensures the following:
Field Summary | |
---|---|
protected java.lang.String |
_attrName
|
protected com.nitido.nimx.services.datacontrol.cachedmap.CacheSetting |
_cacheSetting
|
protected java.lang.String |
_userSpaceKey
|
Constructor Summary | |
---|---|
AttrModification(java.lang.String userSpaceKey,
java.lang.String attrName,
com.nitido.nimx.services.datacontrol.cachedmap.CacheSetting cacheSetting)
The default constructor. |
Method Summary | |
---|---|
int |
appendAddCommand(java.io.Serializable[] values)
Append a set of values to be added to the target attribute. |
int |
appendModCommand(java.io.Serializable[] values)
Append a set of values to be MODIFY on the target attribute. |
int |
appendRemoveCommand(java.io.Serializable[] values)
Append a set of values to be removed from the target attribute. |
java.util.ArrayList |
getAddList()
Get the list of values to be added. |
java.io.Serializable[] |
getAddValues()
Get the array of add values. |
java.io.Serializable[] |
getModValues()
Get the array of modification values. |
java.util.ArrayList |
getRemoveList()
Get the list of values to be removed. |
java.io.Serializable[] |
getRemoveValues()
Get the array of remove values. |
boolean |
needRefetch()
Check if this attrModification object's command requires "refetching". |
java.lang.String |
toString()
Generates the debug string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String _userSpaceKey
protected final java.lang.String _attrName
protected final com.nitido.nimx.services.datacontrol.cachedmap.CacheSetting _cacheSetting
Constructor Detail |
---|
public AttrModification(java.lang.String userSpaceKey, java.lang.String attrName, com.nitido.nimx.services.datacontrol.cachedmap.CacheSetting cacheSetting)
userSpaceKey
- The user space key of the values to be modified/added/removed.attrName
- The LDAP attribute name that the user space key is mapped to.cacheSetting
- The cache setting associated to the specified user space key.Method Detail |
---|
public int appendModCommand(java.io.Serializable[] values) throws DataControlException
values
- The new values of the attribute. If this parameter is null, an
empty array, or the first member is null, this method will treat the
request as a "remove" command and will call the
appendRemoveCommand(null).
DataControlException
public int appendAddCommand(java.io.Serializable[] values) throws DataControlException
values
- The new values to be added to the attribute.
DataControlException
public int appendRemoveCommand(java.io.Serializable[] values) throws DataControlException
On the other hand, if you have specified valid values to be removed, The method will be successful even if you have invoked appendAddCommand() and appendRemoveCommand( with valid values ) before. You may invoke this method more than once, the new values will just be appended to the existing pending "REMOVE" values. However, this method will not check for duplication of the values to be added. Moreover, if the appendModCommand has been invoked before, this method will throw an exception. It is because you cannot have the "replace existing values" and "removing values" at the same time. (Otherwise, we will need to monitor also the sequence of the commands that were being launched. Moreover, some LDAP server simply doesn't allow it.)
values
- The new values to be added to the attribute.
DataControlException
public java.io.Serializable[] getModValues()
public java.io.Serializable[] getAddValues()
public java.io.Serializable[] getRemoveValues()
public java.util.ArrayList getAddList()
public java.util.ArrayList getRemoveList()
public boolean needRefetch()
public java.lang.String toString()
toString
in class java.lang.Object
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.