public class ChangeMarketingContentImageMapAreaPartMediator extends AbstractChangeBusinessObjectPartMediatorImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COLUMN_NAME_COLLIMGMAPAREA_ID
The column name for the primary key of the COLLIMGMAPAREA table.
|
static java.lang.String | COMMA_DELIMITER
The delimitor which is used in coordinates of image map area.
|
static java.lang.String | PARAM_CONTENT_COORDINATES
The query parameter name for the iamge map coordinates.
|
static java.lang.String | PARAM_CONTENT_LANGUAGE_ID
The query parameter name for the language id.
|
static java.lang.String | PARAM_CONTENT_UNIQUE_ID
The query parameter name for the unique id.
|
static java.lang.String | QUERY_SELECT_IMAGE_MAP_AREA_BY_CONTENT_UNIQUE_ID_LANGUAGE_ID_AND_COORDINATES
Select the image map area of a marketing content by content unique id, language id and coordinates.
|
Constructor and Description |
---|
ChangeMarketingContentImageMapAreaPartMediator() |
Modifier and Type | Method and Description |
---|---|
void | create(java.lang.Object aNoun, java.lang.Object aNounPart)
This method populates the physical data container with the new Collimgmaparea object to create.
|
void | delete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method populates the physical data container with the Collimgmaparea object to delete.
|
protected java.lang.String | findImageMapAreaByCoordinates(java.lang.String contentId, java.lang.String langId, java.lang.String coordinates)
Finds the image map area by marketing content id, language id and coordinates.
|
java.lang.Object | findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart)
This method returns the Collimgmaparea physical SDO from the PhysicalDataContainer that was created in the initializePhysicalDataContainer method.
|
java.lang.String[] | getNounPartXPaths()
This method gets the xpath for the image map area noun part that is part of the marketing content noun.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.Map aMapNounPart)
This method initializes the physical data container for this mediator.
|
protected static boolean | isNumeric(java.lang.String str)
Checks if a string is numeric.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart)
This method sets the unique ID in the noun part if it does not have the unique ID set, but has the external identifier set.
|
void | update(java.lang.Object aNoun, java.lang.Object aNounPart)
This method updates the physical data container with the modified Collimgmaparea object.
|
java.util.List | validateChange(java.lang.Object aNoun, java.lang.Object aNounPart)
This method validates changes to the logical marketing content image map area noun part.
|
protected void | validateCoordindates(AreaType area, Collimgmaparea collimgmaparea, java.util.List validationErrors)
This method checks if the the coordinates of image map area is valid.
|
java.util.List | validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart)
This method checks if the logical marketing content image map area noun part can be created.
|
java.util.List | validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method determines whether the logical marketing content image map area noun part can be deleted.
|
protected void | validatePropetyLength(AreaType area, java.util.List validationErrors)
This method checks if the lengths of image map area properties do not exceed the database column limits Three shapes are supported: rect, circle and poly.
|
protected void | validateShape(AreaType area, java.util.List validationErrors)
This method checks if the the shape of image map area is valid.
|
public static final java.lang.String COMMA_DELIMITER
public static final java.lang.String PARAM_CONTENT_UNIQUE_ID
public static final java.lang.String PARAM_CONTENT_LANGUAGE_ID
public static final java.lang.String PARAM_CONTENT_COORDINATES
public static final java.lang.String COLUMN_NAME_COLLIMGMAPAREA_ID
public static final java.lang.String QUERY_SELECT_IMAGE_MAP_AREA_BY_CONTENT_UNIQUE_ID_LANGUAGE_ID_AND_COORDINATES
public ChangeMarketingContentImageMapAreaPartMediator()
public void create(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public void update(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public void delete(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.lang.String[] getNounPartXPaths()
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.Map aMapNounPart) throws DataMediatorException
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart)
protected static boolean isNumeric(java.lang.String str)
protected void validatePropetyLength(AreaType area, java.util.List validationErrors)
protected void validateShape(AreaType area, java.util.List validationErrors)
protected java.lang.String findImageMapAreaByCoordinates(java.lang.String contentId, java.lang.String langId, java.lang.String coordinates) throws DataMediatorException
protected void validateCoordindates(AreaType area, Collimgmaparea collimgmaparea, java.util.List validationErrors)
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
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException