public class ChangeLayoutWidgetPartMediator extends AbstractChangeBusinessObjectPartMediatorImpl
Constructor and Description |
---|
ChangeLayoutWidgetPartMediator() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | composeWidgetSlotProperties(java.util.Map<java.lang.String,java.lang.String> propertyMap)
This method transforms the widget slot property to a string from a name value pair map.
|
void | create(java.lang.Object aNoun, java.lang.Object aNounPart)
This method creates the widget part for the layout.
|
protected void | createWidgetChildSlot(java.util.List<LayoutSlotType> childSlotList, java.lang.Long pageLayoutId, java.lang.Long pageLayoutWidgetId)
This method will create child slot information for widget.
|
protected void | createWidgetProperty(java.util.List<WidgetPropertyType> widgetPropertyList, java.lang.Long pageLayoutWidgetId)
This method will create the widget property information for that widget.
|
protected void | createWidgetRelation(WidgetIdentifierType parentIdentifier, java.lang.Long pageLayoutWidgetId, AuthoringWidgetType widgetType, java.util.Map<java.lang.String,AuthoringWidgetType> widgetMap)
This method creates widget parent and child relation.
|
void | delete(java.lang.Object noun, java.lang.Object nounPart)
This method deletes the widget from the layout by deleting the widget's properties, slots and removing it from the parent widget.
|
protected PageLayoutWidgetNameValuePair | findLayoutWidgetNVPEntity(java.util.List<PageLayoutWidgetNameValuePair> pageLayoutWidgetNVPList, java.lang.String name, java.lang.String value)
Find PageLayoutWidgetNameValuePair entity by property name and value.
|
java.lang.Object | findPhysicalEntity(java.lang.Object noun, java.lang.Object nounPart)
This method finds Layout in the physical data container that matches with the Layout noun
|
java.lang.String[] | getNounPartXPaths()
Returns the NounPart part XPaths supported by this 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 performs no actions as the resolve is done by the Change Layout mediator.
|
void | update(java.lang.Object noun, java.lang.Object nounPart)
This method updates the widget's properties.
|
protected void | updateWidgetProperty(AuthoringWidgetType widget, PageLayoutWidget pageLayoutWidget)
This method updates the widget properties if have.
|
java.util.List | validateChange(java.lang.Object noun, java.lang.Object nounPart)
This method checks if the logical Widget noun part can be updated.
|
java.util.List | validateCreate(java.lang.Object noun, java.lang.Object nounPart)
This method checks if the logical widget noun part can be created.
|
protected java.util.List<ApplicationError> | validateCreateWidgetPropertyList(java.util.List<WidgetPropertyType> widgetPropertyList, java.lang.String widgetName)
This method validates the list of WidgetPropertyType for create operation.
|
java.util.List | validateDelete(java.lang.Object noun, java.lang.Object nounPart)
This method performs custom business logic validation when deleting a noun part.
|
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.Map aMapNounPart) throws DataMediatorException
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
public void create(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
protected void createWidgetProperty(java.util.List<WidgetPropertyType> widgetPropertyList, java.lang.Long pageLayoutWidgetId)
protected void createWidgetChildSlot(java.util.List<LayoutSlotType> childSlotList, java.lang.Long pageLayoutId, java.lang.Long pageLayoutWidgetId)
protected java.lang.String composeWidgetSlotProperties(java.util.Map<java.lang.String,java.lang.String> propertyMap)
protected void createWidgetRelation(WidgetIdentifierType parentIdentifier, java.lang.Long pageLayoutWidgetId, AuthoringWidgetType widgetType, java.util.Map<java.lang.String,AuthoringWidgetType> widgetMap)
public void delete(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.lang.String[] getNounPartXPaths()
public void update(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected void updateWidgetProperty(AuthoringWidgetType widget, PageLayoutWidget pageLayoutWidget)
protected PageLayoutWidgetNameValuePair findLayoutWidgetNVPEntity(java.util.List<PageLayoutWidgetNameValuePair> pageLayoutWidgetNVPList, java.lang.String name, java.lang.String value)
public java.util.List validateChange(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.util.List validateCreate(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected java.util.List<ApplicationError> validateCreateWidgetPropertyList(java.util.List<WidgetPropertyType> widgetPropertyList, java.lang.String widgetName)
public java.util.List validateDelete(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException