public class ChangeCatalogGroupAttachmentReferenceMediator extends AbstractChangeBusinessObjectPartMediatorImpl
/CatalogGroup[]/AttachmentReference[]
.
It performs create, update and delete operations on the catalog group attachment reference noun part.Constructor and Description |
---|
ChangeCatalogGroupAttachmentReferenceMediator() |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.Object aCatGroupNoun,
java.lang.Object aAtchRefNounPart)
This method creates the attachment reference physical entities corresponding to the logical noun part and
adds to the root catalog group physical entity.
|
void |
delete(java.lang.Object aCatGroupNoun,
java.lang.Object aAtchRefNounPart)
This method deletes attachment reference for the catalog group.
|
java.lang.Object |
findPhysicalEntity(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method finds the catalog group attachment relation physical entity in the data graph corresponding to the logical object
|
java.lang.String[] |
getNounPartXPaths()
This method gets the
XPath for this noun part mediator. |
void |
update(java.lang.Object aCatGroupNoun,
java.lang.Object aAtchRefNounPart)
This method updates the physical entity of attachment reference corresponding to the logical noun part.
|
java.util.List |
validateChange(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the object to be changed is present in the physical data container.
|
java.util.List |
validateCreate(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the object to be created is present in the physical data container.
|
java.util.List |
validateDelete(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the object to be removed is present in the physical data container.
|
applyChanges, convertToBigDecimal, convertToDate, convertToDouble, convertToInteger, convertToLong, getNounParts, getParentPhysicalDataContainer, getPhysicalDataContainer, initialize
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
public ChangeCatalogGroupAttachmentReferenceMediator()
public void create(java.lang.Object aCatGroupNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
updateCatGroupAttachmentRelation()
to save the info. Then it calls the method
createAtchRelDesc()
to create the attachment reference description.aCatGroupNoun
- (CatalogGroupType) The catalog group logical noun that contains the noun partaAtchRefNounPart
- (AttachmentReferenceType) The attachment reference logical noun part.AbstractApplicationException
public void update(java.lang.Object aCatGroupNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
aCatGroupNoun
- (CatalogGroupType) The logical noun that contains the noun
partaAtchRefNounPart
- (AttachmentReferenceType) The noun part for which the
corresponding physical entities need to be updatedAbstractApplicationException
public void delete(java.lang.Object aCatGroupNoun, java.lang.Object aAtchRefNounPart) throws BusinessObjectMediatorException, DataMediatorException
aCatGroupNoun
- (CatalogGroupType) The logical noun of catalog groupaAtchRefNounPart
- (AttachmentReferenceType) The logical noun part of attachment reference that needs to be deletedBusinessObjectMediatorException
DataMediatorException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
aNoun
- (CatalogGroupType) The logical nounaNounPart
- (AttachmentReferenceType) The logical noun part.DataMediatorException
public java.lang.String[] getNounPartXPaths()
XPath
for this noun part mediator. For attachment reference mediator the path will be "/AttachmentReference[]"XPath
.public java.util.List validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
aNoun
- the noun objectaNounPart
- the noun part objectDataMediatorException
public java.util.List validateChange(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
aNoun
- the noun objectaNounPart
- the noun part objectDataMediatorException
public java.util.List validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
aNoun
- the noun objectaNounPart
- the noun part objectDataMediatorException