public class ChangeCatalogAttachmentReferenceMediator extends AbstractChangeBusinessObjectPartMediatorImpl
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.
|
protected com.ibm.commerce.catalog.facade.server.entity.datatypes.AttachmentRelationDescription | 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 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.
|
protected java.lang.Integer | getAtchObjectTypeId()
This method gets the attachment object type id for the catalog.
|
protected java.lang.Integer | getAttachmentRefUsageId(java.lang.String atchUsageIdentifier)
This method gets the attachment reference usage id according to the usage identifier.
|
java.lang.String[] | getNounPartXPaths()
This method gets the XPath for this noun part mediator.
|
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 resolves the noun part which has only the external identifier.
|
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
|
protected void | updateAttachmentRelDescription(AttachmentReferenceType aAtchRefNounPart, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttachmentRelationDescription atchRelDes)
This method updates the physical object of attachment reference description attributes.
|
protected void | updateCatalogAttachmentRelation(CatalogType aCatalogNoun, AttachmentReferenceType aAtchRefNounPart, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttachmentRelation anAtchRefEntityForUpdate)
This method updates the fields of the catalog attachment relation physical object.
|
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.
|
public ChangeCatalogAttachmentReferenceMediator()
public void create(java.lang.Object aCatalogNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
protected com.ibm.commerce.catalog.facade.server.entity.datatypes.AttachmentRelationDescription createAtchRelDesc(AttachmentReferenceType aAtchRefNounPart, long atchRelId) throws BusinessObjectMediatorException
protected void updateAttachmentRelDescription(AttachmentReferenceType aAtchRefNounPart, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttachmentRelationDescription atchRelDes)
public void update(java.lang.Object aCatalogNoun, java.lang.Object aAtchRefNounPart) throws AbstractApplicationException
protected void updateCatalogAttachmentRelation(CatalogType aCatalogNoun, AttachmentReferenceType aAtchRefNounPart, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttachmentRelation anAtchRefEntityForUpdate) throws AbstractApplicationException
public void delete(java.lang.Object aCatalogNoun, 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