public class ChangeMarketingContentAttachmentReferenceMediator extends AbstractChangeBusinessObjectPartMediatorImpl
/MarketingContent[]/Attachment
.
It performs create, update, and delete operations on the attachment reference noun part.Constructor and Description |
---|
ChangeMarketingContentAttachmentReferenceMediator() |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.Object aMarketingContentNoun,
java.lang.Object aAtchRefNounPart)
This method creates the attachment reference physical entities corresponding to the logical noun part and
adds to the root marketing content physical entity.
|
void |
delete(java.lang.Object aMarketingContentNoun,
java.lang.Object aAtchRefNounPart)
This method deletes the attachment relations for the marketing content.
|
java.lang.Object |
findPhysicalEntity(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method returns the
Atchrel physical SDO from the
PhysicalDataContainer that was created in the
initializePhysicalDataContainer method. |
java.lang.String[] |
getNounPartXPaths()
This method gets the
xpath for the attachment reference noun part. |
void |
update(java.lang.Object aMarketingContentNoun,
java.lang.Object aAtchRefNounPart)
This method updates the physical data container with the modified
Atchrel
object. |
java.util.List |
validateChange(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the logical attachment reference noun part can be updated.
|
java.util.List |
validateCreate(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the logical attachment reference noun part can be created.
|
java.util.List |
validateDelete(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the logical attachment reference noun part can be deleted.
|
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 ChangeMarketingContentAttachmentReferenceMediator()
public void create(java.lang.Object aMarketingContentNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
updateCollateralAttachmentRelation()
method to save the information. Then it calls the
createAtchRelDesc()
method to create the attachment reference description.aMarketingContentNoun
- The logical MarketingContentType
SDO
business object that is the parent of the object to create.aAtchRefNounPart
- The logical AttachmentReferenceType
SDO
business object to create.AbstractApplicationException
public void update(java.lang.Object aMarketingContentNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
Atchrel
object. It sets all the attachment reference data from the logical marketing content noun.aMarketingContentNoun
- The logical MarketingContentType SDO
business object that contains the attachment reference.aAtchRefNounPart
- The logical AttachmentReferenceType SDO
business object to update.AbstractApplicationException
public void delete(java.lang.Object aMarketingContentNoun, java.lang.Object aAtchRefNounPart) throws BusinessObjectMediatorException, DataMediatorException
aMarketingContentNoun
- The logical MarketingContentType SDO
business object that contains the attachment reference.aAtchRefNounPart
- The logical AttachmentReferenceType SDO
business object to delete.BusinessObjectMediatorException
DataMediatorException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
Atchrel
physical SDO
from the
PhysicalDataContainer
that was created in the
initializePhysicalDataContainer
method.aNoun
- The logical MarketingContentType
SDO
business object that contains the attachment reference.aNounPart
- The logical AttachmentReferenceType
SDO
business object.Atchrel
object if it is found, otherwise it returns null.DataMediatorException
public java.lang.String[] getNounPartXPaths()
xpath
for the attachment reference noun part.xpath
for the attachment reference noun part.public java.util.List validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
aNoun
- The logical MarketingContentType SDO
business object that contains the attachment reference.aNounPart
- The logical AttachmentReferenceType SDO
business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.DataMediatorException
public java.util.List validateChange(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
aNoun
- The logical MarketingContentType SDO
business object that contains the attachment reference.aNounPart
- The logical AttachmentReferenceType SDO
business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.DataMediatorException
public java.util.List validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
aNoun
- The logical MarketingContentType SDO
business object that contains the attachment reference.aNounPart
- The logical AttachmentReferenceType SDO
business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.DataMediatorException