Package com.polarion.alm.tracker.model
Interface ILinkRoleOpt
- All Superinterfaces:
IEnumOption
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Rule defining from which and to which Work Item types the role can be used. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
true
if links of this role create a parent-child relationshipFields inherited from interface com.polarion.platform.persistence.IEnumOption
PROPERTY_KEY_COLOR, PROPERTY_KEY_DEFAULT, PROPERTY_KEY_DESCRIPTION, PROPERTY_KEY_HIDDEN, PROPERTY_KEY_ICON_URL, PROPERTY_KEY_UI_LINK, PROPERTY_KEY_URI
-
Method Summary
Modifier and TypeMethodDescriptiongetRules()
Returns rules defined for this role.boolean
Checks if this role is allowed to be used from work item of the "from" type to work item of the "to" type.boolean
Checks if this role is allowed to be used from work item of the "from" type to work item of the "to" type.boolean
Checks if this role is allowed to be used from all WI types.boolean
Checks if this role is allowed to be used from all WI types to the same WI types.boolean
Checks if this role is allowed to be used to all WI types.isAllowedToTypes
(String from) Returns Set of String type ids for which this role is allowed from the given type.Methods inherited from interface com.polarion.platform.persistence.IEnumOption
getEnumId, getId, getName, getProperties, getProperty, getSequenceNumber, isDefault, isHidden, isPhantom
-
Field Details
-
PROPERTY_KEY_OPPOSITE_NAME
- See Also:
-
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
List<ILinkRoleOpt.IRule> getRules()Returns rules defined for this role. Can return null.- Since:
- 3.4
-
isAllowed
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 nullto
- String type id, cannot be null- Since:
- 3.4
-
isAllowed
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 nullto
- - type, cannot be null- Since:
- 3.4
-
isAllowedToTypes
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
-