Class CloneAction
- java.lang.Object
-
- com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
-
- com.hybris.cockpitng.actions.clone.CloneAction
-
- All Implemented Interfaces:
CockpitAction<java.lang.Object,java.lang.Object>,ComponentWidgetAdapterAware
public class CloneAction extends AbstractComponentWidgetAdapterAware implements CockpitAction<java.lang.Object,java.lang.Object>
CloneAction supports cloning incoming object.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSOCKET_OUTPUT_CLONED_OBJECT
-
Constructor Summary
Constructors Constructor Description CloneAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanCreateInstance(DataType type)booleancanPerform(ActionContext<java.lang.Object> ctx)Returns true if the action can be performed for the given context, false otherwise.ObjectFacadegetObjectFacade()PermissionFacadegetPermissionFacade()TypeFacadegetTypeFacade()protected booleanisDifferentThanOneObject(ActionContext<java.lang.Object> ctx)protected booleanisTypeInstanceCreationAllowed(java.lang.String typeCode)ActionResult<java.lang.Object>perform(ActionContext<java.lang.Object> ctx)Performs the action.protected java.lang.ObjectresolveObjectToClone(ActionContext<java.lang.Object> ctx)-
Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.actions.CockpitAction
getConfirmationMessage, needsConfirmation
-
-
-
-
Field Detail
-
SOCKET_OUTPUT_CLONED_OBJECT
public static final java.lang.String SOCKET_OUTPUT_CLONED_OBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public ActionResult<java.lang.Object> perform(ActionContext<java.lang.Object> ctx)
Description copied from interface:CockpitActionPerforms the action.- Specified by:
performin interfaceCockpitAction<java.lang.Object,java.lang.Object>- Parameters:
ctx- context containing the data and other information- Returns:
- the action result
-
resolveObjectToClone
protected java.lang.Object resolveObjectToClone(ActionContext<java.lang.Object> ctx)
-
canPerform
public boolean canPerform(ActionContext<java.lang.Object> ctx)
Description copied from interface:CockpitActionReturns true if the action can be performed for the given context, false otherwise.- Specified by:
canPerformin interfaceCockpitAction<java.lang.Object,java.lang.Object>- Parameters:
ctx- context containing the data and other information- Returns:
- true if the action can be performed for the given context, false otherwise
-
isDifferentThanOneObject
protected boolean isDifferentThanOneObject(ActionContext<java.lang.Object> ctx)
-
isTypeInstanceCreationAllowed
protected boolean isTypeInstanceCreationAllowed(java.lang.String typeCode)
-
canCreateInstance
protected boolean canCreateInstance(DataType type)
-
getObjectFacade
public ObjectFacade getObjectFacade()
-
getPermissionFacade
public PermissionFacade getPermissionFacade()
-
getTypeFacade
public TypeFacade getTypeFacade()
-
-