Class SearchByTypeAction
- java.lang.Object
-
- com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
-
- com.hybris.cockpitng.actions.search.SearchByTypeAction
-
- All Implemented Interfaces:
CockpitAction<java.lang.Object,java.lang.String>,ComponentWidgetAdapterAware
public class SearchByTypeAction extends AbstractComponentWidgetAdapterAware implements CockpitAction<java.lang.Object,java.lang.String>
-
-
Constructor Summary
Constructors Constructor Description SearchByTypeAction()
-
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.java.lang.StringgetConfirmationMessage(ActionContext<java.lang.Object> ctx)Returns the confirmation message to be shown to the user in the confirmation dialog if confirmation is needed (seeCockpitAction.needsConfirmation(ActionContext)).TypeFacadegetTypeFacade()booleanneedsConfirmation(ActionContext<java.lang.Object> ctx)Returns true if the action should be confirmed by user before being performed, false otherwise.ActionResult<java.lang.String>perform(ActionContext<java.lang.Object> ctx)Performs the action.voidsetTypeFacade(TypeFacade typeFacade)-
Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance
-
-
-
-
Method Detail
-
perform
public ActionResult<java.lang.String> perform(ActionContext<java.lang.Object> ctx)
Description copied from interface:CockpitActionPerforms the action.- Specified by:
performin interfaceCockpitAction<java.lang.Object,java.lang.String>- Parameters:
ctx- context containing the data and other information- Returns:
- the action result
-
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.String>- 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.String>- Parameters:
ctx- context containing the data and other information- Returns:
- true if the action should be confirmed by user before being performed, false otherwise
-
getConfirmationMessage
public java.lang.String getConfirmationMessage(ActionContext<java.lang.Object> ctx)
Description copied from interface:CockpitActionReturns the confirmation message to be shown to the user in the confirmation dialog if confirmation is needed (seeCockpitAction.needsConfirmation(ActionContext)).- Specified by:
getConfirmationMessagein interfaceCockpitAction<java.lang.Object,java.lang.String>- Parameters:
ctx- context containing the data and other information- Returns:
- the confirmation message to be shown to the user in the confirmation dialog
- See Also:
CockpitAction.needsConfirmation(ActionContext)
-
getTypeFacade
public TypeFacade getTypeFacade()
-
setTypeFacade
public void setTypeFacade(TypeFacade typeFacade)
-
-