public class ChangeLayoutPageLocationPartCmdImpl extends AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl implements ChangeLayoutPartActionCmd
Constructor and Description |
---|
ChangeLayoutPageLocationPartCmdImpl()
This method is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | changePageLocationActivities(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationsToBeUpdated)
This method updates the Page Location Activities in a batch for all the Page Locations to be Changed(Updated).
|
protected void | createPageLocationActivities(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationsToBeAdded)
This method creates the Page Location Activities in a batch for all the Page Locations to be Added(Created).
|
protected void | deletePageLocationActivities(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationsToBeDeleted)
This method deletes the Page Location Activities in a batch for all the Page Locations to be Deleted(Removed).
|
protected java.lang.String | getApplyToSubPage(PageLocationPageType pageLocationPageType)
Returns what type of sub pages the layout should be applied to.
|
protected PageLocationActivityHelper | getPageLocationActivityHelper()
This method returns the instance of Page Location Activity Helper used by this class.
|
protected boolean | isPropagateToSubLevels(PageLocationPageType pageLocationPageType)
Returns if the layout should be propagated to sub levels.
|
void | performExecute()
This method performs the main logic of this command.
|
void | reset()
This method resets the command so it can be reused.
|
protected java.util.List | resolveObjectIds(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationTypesMap)
This method resolves Object Ids with given Object Names for the Pages in the Page Locations to be Added and Updated.
|
protected java.util.List | resolveStoreIds(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationTypesMap)
This method resolves storeIds for the given Object Ids for the Pages in the Page Locations to be Added and Updated.
|
void | setPageLocationActivityHelper(java.lang.String activityHelperClassName)
This method sets the Page Location Activity Helper used by this class.
|
protected void | updatePageLocationActivity(PageLocationType pageLocationType, java.lang.String layoutId, java.lang.String deviceClass, PageLocationActivity pageLocationActivity)
This method sets information from a Page Location noun part into a Page Location Activity.
|
void | validate()
Validates the Page Location noun parts based on the actions requested on the noun part.
|
protected void | validateAdd(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters)
This method validates whether the add action can be performed on the specified Page Location noun part to the Layout noun.
|
protected void | validateChange(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters)
This method validates whether the change action can be performed on the specified Page Location noun part to the Layout noun.
|
protected void | validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters)
This method validates whether the delete action can be performed on the specified Page Location noun part to the Layout noun.
|
public ChangeLayoutPageLocationPartCmdImpl()
public void reset()
public void performExecute() throws java.lang.Exception
protected void createPageLocationActivities(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationsToBeAdded) throws AbstractApplicationException
protected void changePageLocationActivities(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationsToBeUpdated) throws AbstractApplicationException
protected void deletePageLocationActivities(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationsToBeDeleted) throws AbstractApplicationException
protected void updatePageLocationActivity(PageLocationType pageLocationType, java.lang.String layoutId, java.lang.String deviceClass, PageLocationActivity pageLocationActivity) throws PageLayoutApplicationException
protected boolean isPropagateToSubLevels(PageLocationPageType pageLocationPageType)
protected java.lang.String getApplyToSubPage(PageLocationPageType pageLocationPageType)
protected void validateAdd(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void validateChange(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters) throws AbstractApplicationException
public void validate() throws AbstractApplicationException
protected java.util.List resolveObjectIds(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationTypesMap) throws PageLayoutApplicationException
Based upon the Page Groups of the Pages of the Page Locations, it uses the respective Client Facade and makes a service call to the respective component to fetch the ids of the Objects. It returns validation errors when the object can not be found with the object name in the respective component.
protected java.util.List resolveStoreIds(java.util.Map<LayoutType,java.util.List<PageLocationType>> pageLocationTypesMap) throws PageLayoutApplicationException
Based upon the Page Groups of the Pages of the Page Locations, it uses the respective Client Facade and makes a service call to the respective component to fetch the storeIds of the Objects. It returns validation errors when the object can not be found with the object id in the respective component.
public void setPageLocationActivityHelper(java.lang.String activityHelperClassName) throws PageLayoutSystemException
protected PageLocationActivityHelper getPageLocationActivityHelper()