com.atlassian.configurable
Interface EnabledCondition
- All Known Implementing Classes:
- AllowUnassignedAndSubTasksEnabledCondition, AllowUnassignedIssuesEnabledCondition, AndEnabledCondition, EnterpriseEditionCondition, NonEnterpriseEditionCondition, SubTasksEnabledCondition
public interface EnabledCondition
An encapsulation of the conditional logic to decide whether to display and configure a given
ObjectConfigurationProperty
. Implementers may declare the specific class to use via the
enabled-config
on ObjectConfigurationProperty entities to make the display of the property
dependent on the result returned by the {#isEnabled} method.
EnabledCondition objects are constructed by reflection and MUST have a default no-arg constructor.
- Since:
- 28 August 2007 for JIRA v3.11
Method Summary |
boolean |
isEnabled()
Whether or not to display and use an ObjectConfigurationProperty for the given User . |
TRUE
static final EnabledCondition TRUE
- A condition that means always enabled.
isEnabled
boolean isEnabled()
- Whether or not to display and use an ObjectConfigurationProperty for the given
User
.
- Returns:
- true only if the property is enabled in the current context.
Copyright © 2002-2012 Atlassian. All Rights Reserved.