Class EditAction
- java.lang.Object
-
- com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
-
- com.hybris.cockpitng.actions.edit.EditAction
-
- All Implemented Interfaces:
CockpitAction<java.lang.Object,java.lang.Object>,ComponentWidgetAdapterAware
public class EditAction extends AbstractComponentWidgetAdapterAware implements CockpitAction<java.lang.Object,java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOLLECTIONstatic java.lang.StringFORWARD_SELECTION_AS_KEYstatic java.lang.StringFORWARD_SELECTION_TO_SOCKET_KEYstatic java.lang.StringLISTstatic java.lang.StringSET
-
Constructor Summary
Constructors Constructor Description EditAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPerform(ActionContext<java.lang.Object> ctx)Returns true if the action can be performed for the given context, false otherwise.protected java.util.CollectionconvertToRequestedType(ActionContext<java.lang.Object> ctx, java.util.Collection<?> elements)booleanneedsConfirmation(ActionContext<java.lang.Object> ctx)Returns true if the action should be confirmed by user before being performed, false otherwise.ActionResult<java.lang.Object>perform(ActionContext<java.lang.Object> ctx)Performs the action.-
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
-
-
-
-
Field Detail
-
FORWARD_SELECTION_TO_SOCKET_KEY
public static final java.lang.String FORWARD_SELECTION_TO_SOCKET_KEY
- See Also:
- Constant Field Values
-
FORWARD_SELECTION_AS_KEY
public static final java.lang.String FORWARD_SELECTION_AS_KEY
- See Also:
- Constant Field Values
-
COLLECTION
public static final java.lang.String COLLECTION
- See Also:
- Constant Field Values
-
LIST
public static final java.lang.String LIST
- See Also:
- Constant Field Values
-
SET
public static final java.lang.String SET
- 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
-
convertToRequestedType
protected java.util.Collection convertToRequestedType(ActionContext<java.lang.Object> ctx, java.util.Collection<?> elements)
-
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
-
needsConfirmation
public boolean needsConfirmation(ActionContext<java.lang.Object> ctx)
Description copied from interface:CockpitActionReturns true if the action should be confirmed by user before being performed, false otherwise. This is evaluated by the action renderer.- Specified by:
needsConfirmationin interfaceCockpitAction<java.lang.Object,java.lang.Object>- Parameters:
ctx- context containing the data and other information- Returns:
- true if the action should be confirmed by user before being performed, false otherwise
-
-