public interface CollectionUpdateHelper<C extends java.util.Collection<I>,I> extends ContainerUpdateHelper<C,I>
Created: October 03 2015
AnotherClass
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
I |
findMatchingTarget(java.lang.Object pSourceElement,
C pTargetContainer,
ValidatorContext<?> pContext)
Find a match for pSourceObject in the collection pTargetCollection.
|
void |
removeUnmatchedTargetValues(C pTargetCollection,
java.util.Collection<I> pUnmatchedElements,
ValidatorContext<?> pContext)
Remove the unmatched element (pUnmatchedElements) from
pTargetCollection.
|
void |
setToSourceOrder(C pTargetCollection,
java.util.List<I> pOrderedDestinationItems)
Set the target collection to the source order.
|
createMatchingTargetAlsoAdds, createMatchingTargetItem, createTargetContainer, createTargetContainerAlsoSetsAsProperty
static final java.lang.String CLASS_VERSION
I findMatchingTarget(java.lang.Object pSourceElement, C pTargetContainer, ValidatorContext<?> pContext) throws PropertyNotFoundException, java.beans.IntrospectionException, atg.core.exception.ItemNotFoundException
pSourceElement
- the source object to try to find a match forpTargetCollection
- the target collectionatg.core.exception.ItemNotFoundException
PropertyNotFoundException
java.beans.IntrospectionException
void removeUnmatchedTargetValues(C pTargetCollection, java.util.Collection<I> pUnmatchedElements, ValidatorContext<?> pContext)
pTargetCollection
- the collection from which elements should
be removed.pUnmatchedElements
- the unmatched elements to be removedpContext
- the update context.void setToSourceOrder(C pTargetCollection, java.util.List<I> pOrderedDestinationItems)
pTargetCollection
- the target collection.pOrderedDestinationItems
- the destination items (should be the same items as in pTargetCollection)
ordered in the same order they were matched in the source.