public class ChangeMarketingContentAttachmentReferenceMediator extends AbstractChangeBusinessObjectPartMediatorImpl
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.
|
protected Atchreldsc | createAtchRelDesc(AttachmentReferenceType aAtchRefNounPart, long atchRelId)
This method creates the physical object of attachment relation description if the language ID is specified in the noun part.
|
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.
|
protected java.lang.Integer | getAtchObjectTypeId()
This method gets the attachment object type identifier for the marketing content.
|
protected java.lang.Integer | getAttachmentRefUsageId(java.lang.String atchUsageIdentifier)
This method gets the attachment reference usage identifier based on the specified usage identifier.
|
java.lang.String[] | getNounPartXPaths()
This method gets the xpath for the attachment reference noun part.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.Map aMapNounPart)
This method initializes the physical data container for this mediator.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart)
This method performs no actions as an attachment reference does not have an external identifier.
|
void | update(java.lang.Object aMarketingContentNoun, java.lang.Object aAtchRefNounPart)
This method updates the physical data container with the modified Atchrel object.
|
protected void | updateAttachmentRelDescription(AttachmentReferenceType aAtchRefNounPart, Atchreldsc atchRelDes)
This method updates the attachment reference description attributes.
|
protected void | updateCollateralAttachmentRelation(AttachmentReferenceType aNounPart, Atchrel anEntityForUpdate)
This method updates the fields of the attachment relation 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.
|
public ChangeMarketingContentAttachmentReferenceMediator()
public void create(java.lang.Object aMarketingContentNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
protected Atchreldsc createAtchRelDesc(AttachmentReferenceType aAtchRefNounPart, long atchRelId) throws BusinessObjectMediatorException
protected void updateAttachmentRelDescription(AttachmentReferenceType aAtchRefNounPart, Atchreldsc atchRelDes)
public void update(java.lang.Object aMarketingContentNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
protected void updateCollateralAttachmentRelation(AttachmentReferenceType aNounPart, Atchrel anEntityForUpdate) throws AbstractApplicationException
public void delete(java.lang.Object aMarketingContentNoun, java.lang.Object aAtchRefNounPart) throws BusinessObjectMediatorException, DataMediatorException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
public java.lang.String[] getNounPartXPaths()
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.Map aMapNounPart) throws DataMediatorException
protected java.lang.Integer getAtchObjectTypeId() throws DataMediatorException
protected java.lang.Integer getAttachmentRefUsageId(java.lang.String atchUsageIdentifier) throws DataMediatorException
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart)
public java.util.List validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
public java.util.List validateChange(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
public java.util.List validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException