public class ChangeCatalogEntryAttachmentReferenceMediator extends AbstractChangeBusinessObjectPartMediatorImpl
/CatalogEntry[]/AttachmentReference[]
.
It performs create, update and delete operations on the catalog entry attachment reference noun part.Constructor and Description |
---|
ChangeCatalogEntryAttachmentReferenceMediator() |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.Object aCatEntryNoun,
java.lang.Object aAtchRefNounPart)
This method creates the attachment reference physical entities corresponding to the logical noun part and
adds to the root catalog entry physical entity.
|
void |
delete(java.lang.Object aCatEntryNoun,
java.lang.Object aAtchRefNounPart)
This method deletes attachment reference for the catalog entry.
|
java.lang.Object |
findPhysicalEntity(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method finds the catalog entry 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 aCatEntryNoun,
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 ChangeCatalogEntryAttachmentReferenceMediator()
public void create(java.lang.Object aCatEntryNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
updateCatEntryAttachmentRelation()
to save the info. Then it calls the method
createAtchRelDesc()
to create the attachment reference description.aCatEntryNoun
- (CatalogEntryType) The logical noun that contains the noun partaAtchRefNounPart
- (AttachmentReferenceType) The noun part for which the
corresponding physical entities need to be createdAbstractApplicationException
public void update(java.lang.Object aCatEntryNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
aCatEntryNoun
- (CatalogEntryType) 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 aCatEntryNoun, java.lang.Object aAtchRefNounPart) throws BusinessObjectMediatorException, DataMediatorException
aCatEntryNoun
- (CatalogEntryType) The logical noun having the noun part to be deletedaAtchRefNounPart
- (AttachmentReferenceType) The logical noun part that needs to be deletedBusinessObjectMediatorException
DataMediatorException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
aNoun
- (CatalogEntryType) 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