Class CreateAction

    • Field Detail

      • SOCKET_OUTPUT_CREATE_CONTEXT

        public static final java.lang.String SOCKET_OUTPUT_CREATE_CONTEXT
        See Also:
        Constant Field Values
      • SOCKET_OUTPUT_CREATED_OBJECT

        public static final java.lang.String SOCKET_OUTPUT_CREATED_OBJECT
        See Also:
        Constant Field Values
      • SOCKET_INPUT_CREATED_OBJECT

        public static final java.lang.String SOCKET_INPUT_CREATED_OBJECT
        See Also:
        Constant Field Values
      • SETTING_INITIALIZE_ENTITY

        public static final java.lang.String SETTING_INITIALIZE_ENTITY
        See Also:
        Constant Field Values
      • SETTING_CONTEXT_COMPONENT_NAME

        public static final java.lang.String SETTING_CONTEXT_COMPONENT_NAME
        See Also:
        Constant Field Values
      • VALUE_SETTING_TARGET_COMPONENT_CONFIGURABLE_FLOW

        @Deprecated(since="6.6",
                    forRemoval=true)
        public static final java.lang.String VALUE_SETTING_TARGET_COMPONENT_CONFIGURABLE_FLOW
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 6.6
        See Also:
        Constant Field Values
      • VALUE_SETTING_TARGET_COMPONENT_EDITOR_AREA

        @Deprecated(since="6.6",
                    forRemoval=true)
        public static final java.lang.String VALUE_SETTING_TARGET_COMPONENT_EDITOR_AREA
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 6.6
        See Also:
        Constant Field Values
      • PARAM_ACTION_CONTEXT

        public static final java.lang.String PARAM_ACTION_CONTEXT
        See Also:
        Constant Field Values
    • Constructor Detail

      • CreateAction

        public CreateAction()
    • Method Detail

      • perform

        public ActionResult<java.lang.Object> perform​(ActionContext<java.lang.Object> ctx)
        Description copied from interface: CockpitAction
        Performs the action.
        Specified by:
        perform in interface CockpitAction<java.lang.Object,​java.lang.Object>
        Parameters:
        ctx - context containing the data and other information
        Returns:
        the action result
      • findTypeCode

        protected java.lang.String findTypeCode​(ActionContext<java.lang.Object> ctx)
      • shouldInitializeEntity

        protected boolean shouldInitializeEntity​(ActionContext<java.lang.Object> ctx)
      • canPerform

        public boolean canPerform​(ActionContext<java.lang.Object> ctx)
        Description copied from interface: CockpitAction
        Returns true if the action can be performed for the given context, false otherwise.
        Specified by:
        canPerform in interface CockpitAction<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
      • isAllowed

        protected boolean isAllowed​(java.lang.String typeCode)
      • canCreateInstance

        protected boolean canCreateInstance​(DataType type)
      • needsConfirmation

        public boolean needsConfirmation​(ActionContext<java.lang.Object> ctx)
        Description copied from interface: CockpitAction
        Returns true if the action should be confirmed by user before being performed, false otherwise. This is evaluated by the action renderer.
        Specified by:
        needsConfirmation in interface CockpitAction<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
      • setPermissionFacade

        public void setPermissionFacade​(PermissionFacade permissionFacade)
      • getTypeFacade

        public TypeFacade getTypeFacade()
      • setTypeFacade

        public void setTypeFacade​(TypeFacade typeFacade)
      • setObjectFacade

        public void setObjectFacade​(ObjectFacade objectFacade)
      • setFieldSearchFacade

        public void setFieldSearchFacade​(FieldSearchFacade fieldSearchFacade)
      • setNotificationService

        public void setNotificationService​(NotificationService notificationService)