Interface RuleComponentRestriction
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 TypeMethodDescriptionlongTimestamp 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.longTimestamp when this restriction was last updated.User key of the user who last modified this restriction.voidsetCreatedAt(long timestamp) voidvoidsetUpdatedAt(long timestamp) voidsetUpdatedBy(String userKey) 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
-
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
-
getGroupRestrictions
RuleComponentGroupRestriction[] getGroupRestrictions()Associated group restrictions for this component.- Returns:
- array of group associations
-