public interface WidgetManager
A widget manager operates in two execution environments. The J2EE execution environment represents the execution of the widget manager in the same JVM as the WebSphere Commerce application. The J2SE execution environment represents the execution of the widget manager on a JVM separate from the WebSphere Commerce application. This typically happens in the context of data load being executed through the command line utility. The widget manager is aware of its current execution environment and can choose different code flow paths accordingly. Each widget can alternately register two different widget managers based on the execution environment.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright field.
|
static java.lang.String |
CURRENT_ENVIRONMENT
Constant representing the current execution environment.
|
static java.lang.String |
EXECUTION_TYPE_J2EE
Constant representing the J2EE execution environment.
|
static java.lang.String |
EXECUTION_TYPE_J2SE
Constant representing the J2SE execution environment.
|
Modifier and Type | Method and Description |
---|---|
void |
create(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget)
This method persists the widget information when a widget is being added
to a page layout.
|
void |
createExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method persists the widget extended data when a extended data is being added
to a widget.
|
void |
delete(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method deletes the widget information when a widget is being removed
from a page layout.
|
void |
deleteExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method deletes the widget extended data when a extended data is being removed
from a widget.
|
com.ibm.commerce.pagelayout.facade.datatypes.WidgetDefinitionType |
getWidgetDefinition()
Returns the logical widget definition data object for this widget.
|
void |
init(com.ibm.commerce.pagelayout.facade.datatypes.WidgetDefinitionType widgetDefinition)
This method initializes the widget manager with the widget definition that uses it.
|
void |
retrieve(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO,
java.lang.Object... parameters)
This method is used to populate the widget object when the page layout is
being retrieved in a service request.
|
void |
retrieve(com.ibm.commerce.pagelayout.facade.datatypes.PageDesignType aPageDesign,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
java.lang.Object... parameters)
This method is used to populate the widget object when the page layout is
being retrieved in a service request.
|
void |
retrieveExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO,
java.lang.Integer[] aStorePath,
java.lang.Integer[] aLanguageIds,
SelectionCriteria aCriteria,
java.lang.Object... parameters)
This method is used to populate the extended data of widget object when the page layout is
being retrieved in a service request.
|
void |
undo(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet,
java.lang.String widgetId,
LayoutManagementResourceManager layoutResourceManager)
This method is called when undo is invoked.
|
void |
update(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method persists the widget information when a widget is being
updated on a page layout.
|
void |
updateExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method persists the widget extended data when a extended data is being updated
on a widget.
|
java.util.List<ClientError> |
validateChange(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method validates the widget information when the widget is being
updated on a page layout.
|
java.util.List<ClientError> |
validateChangeExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method validates the extended data information when the extended data is being
updated on a widget.
|
java.util.List<ClientError> |
validateCreate(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget)
This method validates the widget information when the widget is being
added to a page layout.
|
java.util.List<ClientError> |
validateCreateExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method validates the extended data information when the extended data is being
added to a widget.
|
java.util.List<ClientError> |
validateDelete(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method validates the widget information when the widget is being
deleted from a page layout.
|
java.util.List<ClientError> |
validateDeleteExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout,
com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget,
com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData,
com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO)
This method validates the extended data information when the extended data is being
deleted from a widget.
|
static final java.lang.String COPYRIGHT
static final java.lang.String EXECUTION_TYPE_J2EE
static final java.lang.String EXECUTION_TYPE_J2SE
static final java.lang.String CURRENT_ENVIRONMENT
com.ibm.commerce.pagelayout.facade.datatypes.WidgetDefinitionType getWidgetDefinition()
java.util.List<ClientError> validateCreate(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget) throws LayoutException
aLayout
- The layout object to which the widget is being added.aWidget
- The widget being added to the page layout.LayoutException
- This exception is to provide the implementation classes the
convenience of throwing an exception instead of returning a
list of application errors.java.util.List<ClientError> validateCreateExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget is being updated.aWidget
- The widget where the extended data is being created.aExtendedData
- The extended data being added to the widget.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to provide the implementation classes the
convenience of throwing an exception instead of returning a
list of application errors.java.util.List<ClientError> validateChange(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget being updated on a page layout.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to provide the implementation classes the
convenience of throwing an exception instead of returning a
list of application errors.java.util.List<ClientError> validateChangeExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget is being updated.aWidget
- The widget where the extended data is being updated.aExtendedData
- The extended data being updated on the widget.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to provide the implementation classes the
convenience of throwing an exception instead of returning a
list of application errors.java.util.List<ClientError> validateDelete(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget being deleted from a page layout.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to provide the implementation classes the
convenience of throwing an exception instead of returning a
list of application errors.java.util.List<ClientError> validateDeleteExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget is being upated.aWidget
- The widget where the extended data is being deleted.aExtendedData
- The extended data being deleted from the widget.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to provide the implementation classes the
convenience of throwing an exception instead of returning a
list of application errors.void create(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget) throws LayoutException
aLayout
- The layout object in which the widget is being created.aWidget
- The widget being added to the page layout.LayoutException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while persisting
the widget.void createExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget where the extended data is being created.aExtendedData
- The extended data being created from the page layout.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while deleting the
widget.void update(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget being updated on a page layout.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while persisting
the widget.void updateExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget where the extended data is being updated.aExtendedData
- The extended data being created from the page layout.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while deleting the
widget.void delete(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget being removed from the page layout.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while deleting the
widget.void deleteExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.datatypes.ExtendedDataType aExtendedData, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget where the extended data is being deleted.aExtendedData
- The extended data being created from the page layout.aWidgetSDO
- The physical data object object of the widget.LayoutException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while deleting the
widget.void retrieve(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO, java.lang.Object... parameters) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget object that needs to be populated.aWidgetSDO
- The physical data object object of the widget.parameters
- This list would contain the selection criteria object.LayoutException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while retrieving
the widget information.void retrieveExtendedData(com.ibm.commerce.pagelayout.facade.datatypes.LayoutType aLayout, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, com.ibm.commerce.pagelayout.facade.server.entity.datatypes.PageLayoutWidget aWidgetSDO, java.lang.Integer[] aStorePath, java.lang.Integer[] aLanguageIds, SelectionCriteria aCriteria, java.lang.Object... parameters) throws LayoutException
aLayout
- The layout object to which the widget belongs to.aWidget
- The widget object that needs to be populated.aWidgetSDO
- The physical data object object of the widget.aStorePath
- The store path of the request.aLanguageIds
- The requested language ids.aCriteria
- The selection criteria of the request.parameters
- This list would contain the selection criteria object.LayoutException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while retrieving
the widget information.void retrieve(com.ibm.commerce.pagelayout.facade.datatypes.PageDesignType aPageDesign, com.ibm.commerce.pagelayout.facade.datatypes.WidgetType aWidget, java.lang.Object... parameters) throws PageDesignException
aPageDesign
- The page design object to which the widget belongs to.aWidget
- The widget object that needs to be populated.parameters
- This list would contain the selection criteria object.PageDesignException
- This exception is to allow implementation classes to indicate
its invoker about the error that occurred while retrieving
the widget information.void init(com.ibm.commerce.pagelayout.facade.datatypes.WidgetDefinitionType widgetDefinition)
widgetDefinition
- The widget definition objectvoid undo(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, java.lang.String widgetId, LayoutManagementResourceManager layoutResourceManager) throws LayoutException
tgchDataSet
- The change history recordwidgetId
- The widget idlayoutResourceManager
- The Layout Resource ManagerLayoutException
- If there is an error. This should be raised if all undo actions performed by the
underlying infrastructure should be rolled back.