Class PluggableComponentInfo

java.lang.Object
com.codebarrel.automation.api.addons.PluggableComponentInfo

public class PluggableComponentInfo extends Object
  • Constructor Details

    • PluggableComponentInfo

      public PluggableComponentInfo()
    • PluggableComponentInfo

      public PluggableComponentInfo(com.codebarrel.automation.api.config.ComponentType component, String type, String name, String description, String iconUrl, boolean projectSafe)
      Creates a PluggableComponentInfo with default isRestricted = false. This constructor maintains backward compatibility.
      Parameters:
      component - the component type (TRIGGER, CONDITION, or ACTION)
      type - the unique component key
      name - the display name
      description - the component description
      iconUrl - the icon URL
      projectSafe - whether the component can be used in project-scoped rules
    • PluggableComponentInfo

      public PluggableComponentInfo(com.codebarrel.automation.api.config.ComponentType component, String type, String name, String description, String iconUrl, boolean projectSafe, boolean isRestricted)
      Creates a PluggableComponentInfo with restriction information.
      Parameters:
      component - the component type (TRIGGER, CONDITION, or ACTION)
      type - the unique component key
      name - the display name
      description - the component description
      iconUrl - the icon URL
      projectSafe - whether the component can be used in project-scoped rules
      isRestricted - whether the component is restricted for the current user based on their group membership
  • Method Details

    • getComponent

      public com.codebarrel.automation.api.config.ComponentType getComponent()
    • getType

      public String getType()
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getIconUrl

      public String getIconUrl()
    • isProjectSafe

      public boolean isProjectSafe()
    • isRestricted

      public boolean isRestricted()
      Returns whether this component is restricted for the current user. When true, the UI should render the component as greyed out and disabled, but still visible for transparency. The component will not be clickable in the rule component picker.
      Returns:
      true if the current user cannot use this component, false otherwise
    • setRestricted

      public void setRestricted(boolean restricted)
      Sets whether this component is restricted for the current user. Used for builder pattern compatibility.
      Parameters:
      restricted - true if the component is restricted for the current user