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