Interface ILinkRoleOpt

All Superinterfaces:
IEnumOption

public interface ILinkRoleOpt extends IEnumOption
  • Field Details

    • PROPERTY_KEY_OPPOSITE_NAME

      static final String PROPERTY_KEY_OPPOSITE_NAME
      See Also:
    • PROPERTY_PARENT

      static final String PROPERTY_PARENT
      true if links of this role create a parent-child relationship
      Since:
      3.3.0
      See Also:
  • Method Details

    • getOppositeName

      String getOppositeName()
      Returns:
      value of the property PROPERTY_KEY_OPPOSITE_NAME
      Since:
      3.5.3
    • getRules

      Returns rules defined for this role. Can return null.
      Since:
      3.4
    • isAllowed

      boolean isAllowed(String from, String to)
      Checks if this role is allowed to be used from work item of the "from" type to work item of the "to" type.
      Parameters:
      from - String type id, cannot be null
      to - String type id, cannot be null
      Since:
      3.4
    • isAllowed

      boolean isAllowed(ITypeOpt from, ITypeOpt to)
      Checks if this role is allowed to be used from work item of the "from" type to work item of the "to" type.
      Parameters:
      from - - type, cannot be null
      to - - type, cannot be null
      Since:
      3.4
    • isAllowedToTypes

      Set<String> isAllowedToTypes(String from)
      Returns Set of String type ids for which this role is allowed 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 role is allowed to be used from all WI types.
      Returns:
      boolean
      Since:
      3.6.2
    • isAllowedToAll

      boolean isAllowedToAll()
      Checks if this role is allowed to be used to all WI types.
      Returns:
      boolean
      Since:
      3.6.2
    • isAllowedFromAllToTheSame

      boolean isAllowedFromAllToTheSame()
      Checks if this role is allowed to be used from all WI types to the same WI types.
      Since:
      3.20.2