Class CloneAction

    • Field Detail

      • SOCKET_OUTPUT_CLONED_OBJECT

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

      • CloneAction

        public CloneAction()
    • 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
      • resolveObjectToClone

        protected java.lang.Object resolveObjectToClone​(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
      • isDifferentThanOneObject

        protected boolean isDifferentThanOneObject​(ActionContext<java.lang.Object> ctx)
      • isTypeInstanceCreationAllowed

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

        protected boolean canCreateInstance​(DataType type)
      • getTypeFacade

        public TypeFacade getTypeFacade()