Class ActionConfig


  • public class ActionConfig
    extends java.lang.Object
    ActionConfig holds the configuration of a single action. These are held as part of the collection of actions that may respond to an event. See EventConfig

    Note that we also define all of the IDs of inductive automation's built-in action types here on this class, because it is a convenient place in common scope to define them.

    • Field Detail

      • SCRIPT_ACTION_ID

        public static final java.lang.String SCRIPT_ACTION_ID
        See Also:
        Constant Field Values
      • type

        public final java.lang.String type
      • config

        public final com.inductiveautomation.ignition.common.gson.JsonObject config
      • enabled

        @Nullable
        public final java.lang.Boolean enabled
        If null, action is enabled.
    • Constructor Detail

      • ActionConfig

        public ActionConfig​(ActionConfig.ActionScope scope,
                            java.lang.String type,
                            boolean enabled,
                            com.inductiveautomation.ignition.common.gson.JsonObject config,
                            PermissionsConfig permissions)
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object