Class CreateTmaPoAction

  • All Implemented Interfaces:
    com.hybris.cockpitng.actions.CockpitAction<java.lang.Object,​java.lang.Object>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

    public class CreateTmaPoAction
    extends com.hybris.cockpitng.actions.create.CreateAction
    implements com.hybris.cockpitng.actions.CockpitAction<java.lang.Object,​java.lang.Object>
    Cockpit action for triggering the create TmaProductOfferingModel wizard starting from a preselected TmaProductSpecificationModel.
    Since:
    6.7
    • Field Summary

      • Fields inherited from class com.hybris.cockpitng.actions.create.CreateAction

        PARAM_ACTION_CONTEXT, SETTING_CONTEXT_COMPONENT_NAME, SETTING_INITIALIZE_ENTITY, SOCKET_INPUT_CREATED_OBJECT, SOCKET_OUTPUT_CREATE_CONTEXT, SOCKET_OUTPUT_CREATED_OBJECT, VALUE_SETTING_TARGET_COMPONENT_CONFIGURABLE_FLOW, VALUE_SETTING_TARGET_COMPONENT_EDITOR_AREA
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canPerform​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)  
      protected java.lang.String findTypeCode​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)  
      protected void sendConfiguredOutput​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx, java.lang.String typeCode)
      Sends the context with some predefined values to the configurable flow widget through the action's output socket.
      • Methods inherited from class com.hybris.cockpitng.actions.create.CreateAction

        canCreateInstance, getConfirmationMessage, getFieldSearchFacade, getNotificationService, getNotificationSource, getObjectFacade, getPermissionFacade, getTypeFacade, initializeDefaultEventListeners, isAllowed, needsConfirmation, perform, setFieldSearchFacade, setNotificationService, setObjectFacade, setPermissionFacade, setTypeFacade, shouldInitializeEntity
      • Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware

        addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, 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, perform
    • Constructor Detail

      • CreateTmaPoAction

        public CreateTmaPoAction()
    • Method Detail

      • canPerform

        public boolean canPerform​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
        Specified by:
        canPerform in interface com.hybris.cockpitng.actions.CockpitAction<java.lang.Object,​java.lang.Object>
        Overrides:
        canPerform in class com.hybris.cockpitng.actions.create.CreateAction
      • sendConfiguredOutput

        protected void sendConfiguredOutput​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx,
                                            java.lang.String typeCode)
                                     throws com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException
        Sends the context with some predefined values to the configurable flow widget through the action's output socket.
        Overrides:
        sendConfiguredOutput in class com.hybris.cockpitng.actions.create.CreateAction
        Parameters:
        ctx - the action's context
        typeCode - the item type code for which the configurable flow will be triggered
        Throws:
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException - exception thrown in case of issues when sending the context
      • findTypeCode

        protected java.lang.String findTypeCode​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
        Overrides:
        findTypeCode in class com.hybris.cockpitng.actions.create.CreateAction