+

Search Tips   |   Advanced Search

 PREV CLASS   NEXT CLASS
Tree 
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.ibm.portal.content
Interface LayoutNodeCopyCreationContext<T extends LayoutNode>

All Superinterfaces:
CopyCreationContext<T>, CreationContext
public interface LayoutNodeCopyCreationContext<T extends LayoutNode>
extends CopyCreationContext<T>

Creation context for copying a layout node. Controller implementations will copy the aspects of the given layout node.
A LayoutNodeCopyCreationContext allows to retrieve a UniqueNameStrategy which manages the strategy how to proceed with unique names of new nodes.

Since:
8.5

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

Method Detail

getSourceClass

java.lang.Class<? extends LayoutNode> getSourceClass()
Returns the class object for the source node's LayoutNode 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 layout node class

getSourceLayoutModel

LayoutModel<T> getSourceLayoutModel()
Returns the source LayoutModel 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) layout 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
 PREV CLASS   NEXT CLASS
Tree 
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD