java.lang.Object
com.inductiveautomation.perspective.common.config.ActionConfig

public class ActionConfig extends 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 Details

    • SCRIPT_ACTION_ID

      public static final String SCRIPT_ACTION_ID
      See Also:
    • scope

      public final ActionConfig.ActionScope scope
    • type

      public final String type
    • config

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

      @Nullable public final Boolean enabled
      If null, action is enabled.
    • stopPropagation

      @Nullable public final Boolean stopPropagation
      If null, stopPropagation is disabled.
    • preventDefault

      @Nullable public final Boolean preventDefault
      If null, preventDefault is disabled.
    • permissions

      @Nullable public final PermissionsConfig permissions
  • Constructor Details

    • ActionConfig

      public ActionConfig(ActionConfig.ActionScope scope, String type, boolean enabled, boolean stopPropagation, boolean preventDefault, com.inductiveautomation.ignition.common.gson.JsonObject config, PermissionsConfig permissions)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • isPropagationStopped

      public boolean isPropagationStopped()
    • isDefaultPrevented

      public boolean isDefaultPrevented()
    • getPermissions

      @Nonnull public PermissionsConfig getPermissions()
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object