Package com.polarion.alm.tracker.model
Interface ILinkRoleOpt.IRule
- Enclosing interface:
- ILinkRoleOpt
public static interface ILinkRoleOpt.IRule
The rule that defines what Work Item types can be used TO and FROM the role.
- Since:
- 3.4
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this rule allows the role to be used from a FROM type Work Item to a TO type Work Item.boolean
Checks if this rule allows the related role to be used FROM all Work Item types.boolean
Checks if this rule allows the related role to be used TO all Work Item types.isAllowedToTypes
(String from) Returns a set of IDs that the rule allows the related role to be used from for the given type.boolean
True indicates that the role can only be used between Work Items of the same type.
-
Method Details
-
getFromTypes
- Returns:
- a set of Work Item type IDs that the role can be used in the FROM direction.
-
getToTypes
- Returns:
- a set of Work Item type IDs that the role can be used in the TO direction.
-
isSameType
boolean isSameType()True indicates that the role can only be used between Work Items of the same type. -
isAllowed
Checks if this rule allows the role to be used from a FROM type Work Item to a TO type Work Item.- Parameters:
from
-to
-- Since:
- 3.4
-
isAllowedToTypes
Returns a set of IDs that the rule allows the related role to be used from for the given type.- Parameters:
from
-- Returns:
- a set of String type IDs. Null means "allowed to any type". An 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 Work Item types.- Returns:
- boolean
- Since:
- 3.6.2
-
isAllowedToAll
boolean isAllowedToAll()Checks if this rule allows the related role to be used TO all Work Item types.- Returns:
- boolean
- Since:
- 3.6.2
-