public class RepositoryItemCollectionUpdateHelperImpl
extends atg.service.validator.CollectionUpdateHelperImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
ITEM_TYPE |
Constructor and Description |
---|
RepositoryItemCollectionUpdateHelperImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createMatchingTargetItem(java.lang.Object pSourceIndexOrKey,
java.lang.Object pSourceItem,
java.lang.Object pTargetContainer,
ValidatorContext pContext)
Create a target item.
|
java.lang.Object |
createRepositoryItemInstance(java.lang.Object pSourceItem,
ValidatorContext pContext)
The method creates an instance of a repository item, using the
type ('itemType') passed in within
pSourceItem and
the configured repository property |
MutableRepository |
getRepository() |
void |
setRepository(MutableRepository pRepository) |
findMatchingTarget, removeUnmatchedTargetValues, setToSourceOrder
createMatchingTargetAlsoAdds, createTargetContainer, createTargetContainerAlsoSetsAsProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createMatchingTargetAlsoAdds, createTargetContainer, createTargetContainerAlsoSetsAsProperty
public static java.lang.String CLASS_VERSION
public static final java.lang.String ITEM_TYPE
public RepositoryItemCollectionUpdateHelperImpl()
public MutableRepository getRepository()
public void setRepository(MutableRepository pRepository)
pRepository
- the repository to setpublic java.lang.Object createRepositoryItemInstance(java.lang.Object pSourceItem, ValidatorContext pContext)
pSourceItem
and
the configured repository propertypSourceItem
- Item data to populate repository itempContext
- ValidatorContextpublic java.lang.Object createMatchingTargetItem(java.lang.Object pSourceIndexOrKey, java.lang.Object pSourceItem, java.lang.Object pTargetContainer, ValidatorContext pContext)
createMatchingTargetItem
in interface ContainerUpdateHelper
createMatchingTargetItem
in class atg.service.validator.ContainerUpdateHelperImpl
pSourceIndexOrKey
- for a collection, the current source
index. For a map, the current source key.pSourceItem
- the source item (for a collection, an item
in the source collection, for a Map, a value from the map) to
create a target equavilent ofpTargetContainer
- the target Collection or Map.