com.ibm.portal.content
Interface ContentNodeCopyCreationContext<T extends ContentNode>

All Superinterfaces:
CopyCreationContext<T>, CreationContext

public interface ContentNodeCopyCreationContext<T extends ContentNode>
extends CopyCreationContext<T>

Creation context for copying a content node. Controller implementations will copy the aspects of the given content node, e. g. for InternalContentURL the target nodes for every markup will be copied whereas for content pages the layout model will be copied (In this case the UniqueNameStrategy will be applied on the layout nodes, too).
A ContentNodeCopyCreationContext allows to retrieve a UniqueNameStrategy which manages the strategy how to proceed with unique names of new nodes.

Since:
6.1.0.1

Method Summary
 java.lang.Class<? extends ContentNode> getSourceClass()
          Returns the class object for the source node's ContentNode class.
 ContentModel<T> getSourceContentModel()
          Returns the source ContentModel in which the template (source) node can be found.
 PortletModel getSourcePortletModel()
          Returns the source PortletModel for the template (source) content node.
 UniqueNameStrategy getUniqueNameStrategy()
          Returns the UniqueNameStrategy
 
Methods inherited from interface com.ibm.portal.model.controller.context.CopyCreationContext
getNode
 

Method Detail

getSourceContentModel

ContentModel<T> getSourceContentModel()
Returns the source ContentModel in which the template (source) node can be found.

Returns:
The source content model.
See Also:
CopyCreationContext.getNode()

getSourcePortletModel

PortletModel getSourcePortletModel()
Returns the source PortletModel for the template (source) content node.

Returns:
The source portlet model.
See Also:
CopyCreationContext.getNode()

getUniqueNameStrategy

UniqueNameStrategy getUniqueNameStrategy()
Returns the UniqueNameStrategy

Returns:
the strategy for copying unique names or null if the creation context does not have a UniqueNameStrategy

getSourceClass

java.lang.Class<? extends ContentNode> getSourceClass()
Returns the class object for the source node's ContentNode class. In other words the return value of this method can be used to pass in to the controllers com.ibm.portal.ModelController.create(Class, CreationContext) method ().
In particular this method returns:

Returns:
The source node's content node class
Since:
6.1.0.3