public class ChangeLayoutMediator extends AbstractChangeBusinessObjectMediatorImpl
Constructor and Description |
---|
ChangeLayoutMediator() |
Modifier and Type | Method and Description |
---|---|
void | change(java.lang.Object aNoun)
This method updates the last updated time stamp of the PageLayout being modified.
|
void | create(java.lang.Object aNoun)
This method populates the physical data container with the physical SDO object to create.
|
protected void | createChildWidgetPart(AuthoringWidgetType rootWidget, java.util.Map<AuthoringWidgetType,java.util.List<AuthoringWidgetType>> parentChildRelMap, java.lang.Object aNoun, java.lang.Object aPhysicalEntity)
This method creates the child widget part recursively.
|
protected void | createPageLayoutTemplateRelation(LayoutType layoutType, java.lang.Long pageLayoutId)
This method creates the template relation for the newly created layout.
|
protected void | createWidgetNounPart(LayoutType layoutType, java.lang.Object aPhysicalEntity)
This method creates the widget part of layout.
|
void | delete(java.lang.Object aNoun)
This method updates the physical data container with the physical SDO object to delete.
|
java.lang.Object | findPhysicalEntity(java.lang.Object aNoun)
This method returns the physical SDO from the PhysicalDataContainer that was created in the initializePhysicalDataContainer method that matches the provided noun.
|
protected CommerceFoundationFactory | getCommerceFoundationFactory()
Returns an instance of the Commerce foundation factory.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.List aListNoun)
This method initializes the physical data container for this mediator.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object aNoun)
This method resolves the layout noun.
|
protected void | resolveWidgetDefinitions(java.util.List<AuthoringWidgetType> widgetList)
This method resolves the Widget Definition Unique Ids of the Widget Definitions in the Widgets where only the Widget Definition Identifiers are specified in the request Noun.
|
java.util.List | validateChange(java.lang.Object aNoun)
This method checks if the logical Layout Noun can be updated.
|
java.util.List | validateCreate(java.lang.Object aNoun)
This method checks if the logical Layout noun can be created.
|
java.util.List | validateDelete(java.lang.Object aNoun)
This method checks if the logical Layout noun can be deleted.
|
protected java.util.List<ApplicationError> | validateWidgetChildSlot(java.util.Set<java.lang.String> slotNames, AuthoringWidgetType widget)
This method checks whether the child slots for a given widget are valid or not.
|
public void create(java.lang.Object aNoun) throws AbstractApplicationException
protected void createPageLayoutTemplateRelation(LayoutType layoutType, java.lang.Long pageLayoutId)
protected final void createWidgetNounPart(LayoutType layoutType, java.lang.Object aPhysicalEntity) throws AbstractApplicationException
protected final void createChildWidgetPart(AuthoringWidgetType rootWidget, java.util.Map<AuthoringWidgetType,java.util.List<AuthoringWidgetType>> parentChildRelMap, java.lang.Object aNoun, java.lang.Object aPhysicalEntity) throws AbstractApplicationException
public void change(java.lang.Object aNoun) throws AbstractApplicationException
public void delete(java.lang.Object aNoun) throws AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun) throws DataMediatorException
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.List aListNoun) throws DataMediatorException
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun) throws DataMediatorException
protected void resolveWidgetDefinitions(java.util.List<AuthoringWidgetType> widgetList) throws DataMediatorException
protected CommerceFoundationFactory getCommerceFoundationFactory()
public java.util.List validateCreate(java.lang.Object aNoun) throws DataMediatorException
protected java.util.List<ApplicationError> validateWidgetChildSlot(java.util.Set<java.lang.String> slotNames, AuthoringWidgetType widget)
public java.util.List validateChange(java.lang.Object aNoun) throws DataMediatorException
public java.util.List validateDelete(java.lang.Object aNoun) throws DataMediatorException