Interface RuleComponentRestriction

All Superinterfaces:
A4JEntity, net.java.ao.RawEntity<Long>

public interface RuleComponentRestriction extends A4JEntity
ActiveObjects entity for storing rule component restrictions. Maps a rule component key (trigger/condition/action) to allowed Jira groups. Semantics: - If a component key has NO entry in this table: unrestricted (all users can use it) - If a component key has an entry with groups: only users in those groups can use it - If a component key has an entry with NO groups: fully restricted (no users can use it)
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Timestamp when this restriction was created.
    Associated group restrictions for this component.
    The unique identifier for the rule component (e.g., "jira.issue.created", "jira.send.email") This should be the stable key, not the localized name.
    long
    Timestamp when this restriction was last updated.
    User key of the user who last modified this restriction.
    void
    setCreatedAt(long timestamp)
     
    void
     
    void
    setUpdatedAt(long timestamp)
     
    void
     

    Methods inherited from interface com.codebarrel.jira.plugin.automation.ao.A4JEntity

    getID

    Methods inherited from interface net.java.ao.RawEntity

    addPropertyChangeListener, getEntityManager, getEntityType, init, removePropertyChangeListener, save
  • Method Details

    • getRuleComponentKey

      String getRuleComponentKey()
      The unique identifier for the rule component (e.g., "jira.issue.created", "jira.send.email") This should be the stable key, not the localized name.
      Returns:
      the rule component key
    • setRuleComponentKey

      void setRuleComponentKey(String key)
    • getCreatedAt

      long getCreatedAt()
      Timestamp when this restriction was created.
      Returns:
      creation timestamp in milliseconds
    • setCreatedAt

      void setCreatedAt(long timestamp)
    • getUpdatedAt

      long getUpdatedAt()
      Timestamp when this restriction was last updated.
      Returns:
      update timestamp in milliseconds
    • setUpdatedAt

      void setUpdatedAt(long timestamp)
    • getUpdatedBy

      String getUpdatedBy()
      User key of the user who last modified this restriction.
      Returns:
      user key
    • setUpdatedBy

      void setUpdatedBy(String userKey)
    • getGroupRestrictions

      RuleComponentGroupRestriction[] getGroupRestrictions()
      Associated group restrictions for this component.
      Returns:
      array of group associations