com.ibm.portal.model.command.instantiation
Interface InstantiateTemplateContentNodeCommand.Context
- All Superinterfaces:
- CommandContext<InstantiateTemplateContentNodeCommand>
- Enclosing interface:
- InstantiateTemplateContentNodeCommand
-
public static interface InstantiateTemplateContentNodeCommand.Context
- extends CommandContext<InstantiateTemplateContentNodeCommand>
The command context. It provides read access to source models (where
template node resides) and write access to target
ContentModelController (where instantiated node has been
inserted). Implementations can assume that all those models reside in
current JVM.
getContentModel
ContentModel<ContentNode> getContentModel()
- Provides read access to source content model that contains the
template node.
- Returns:
- the source ContentModel
getPortletModel
PortletModel getPortletModel()
- Provides read access to source portlet model.
- Returns:
- the source PortletModel
getContentModelController
ContentModelController<ContentNode,ModifiableContentNode> getContentModelController()
- Provides the ContentModelController for the target model where
instantiated content node has been inserted. Implementations of the
command must not commit or dispose that controller.
- Returns:
- the target ContentModelController
getUniqueNameStrategie
UniqueNameStrategy getUniqueNameStrategie()
- Returns:
- the strategy how to deal with unique names