Interface ILinkRoleOpt.IRule

Enclosing interface:
ILinkRoleOpt

public static interface ILinkRoleOpt.IRule
Rule defining from which and to which Work Item types the role can be used.
Since:
3.4
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns set of Work Item type ids from which the role can be used.
    Returns set of Work Item type ids to which the role can be used.
    boolean
    isAllowed(String from, String to)
    Checks if this rule allows the related role to be used from work item of the "from" type to work item of the "to" type.
    boolean
    Checks if this rule allows the related role to be used from all WI types.
    boolean
    Checks if this rule allows the related role to be used to all WI types.
    Returns Set of String type ids for which this rule allows the related role to be useed from the given type.
    boolean
    True indicates that the role can be used only between Work Items of the same type.
  • Method Details

    • getFromTypes

      Set<String> getFromTypes()
      Returns set of Work Item type ids from which the role can be used.
    • getToTypes

      Set<String> getToTypes()
      Returns set of Work Item type ids to which the role can be used.
    • isSameType

      boolean isSameType()
      True indicates that the role can be used only between Work Items of the same type.
    • isAllowed

      boolean isAllowed(String from, String to)
      Checks if this rule allows the related role to be used from work item of the "from" type to work item of the "to" type.
      Parameters:
      from -
      to -
      Since:
      3.4
    • isAllowedToTypes

      Set<String> isAllowedToTypes(String from)
      Returns Set of String type ids for which this rule allows the related role to be useed from the given type.
      Parameters:
      from -
      Returns:
      Set of String type ids, null means "allowed to any type", empty set means "not allowed to any type"
      Since:
      3.4
    • isAllowedFromAll

      boolean isAllowedFromAll()
      Checks if this rule allows the related role to be used from all WI types.
      Returns:
      boolean
      Since:
      3.6.2
    • isAllowedToAll

      boolean isAllowedToAll()
      Checks if this rule allows the related role to be used to all WI types.
      Returns:
      boolean
      Since:
      3.6.2