com.atlassian.configurable
Interface EnabledCondition

All Known Implementing Classes:
AllowUnassignedAndSubTasksEnabledCondition, AllowUnassignedIssuesEnabledCondition, AndEnabledCondition, 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

Nested Class Summary
static class EnabledCondition.Factory
          Factory for constructing EnabledCondition instances.
 
Field Summary
static EnabledCondition TRUE
          A condition that means always enabled.
 
Method Summary
 boolean isEnabled()
          Whether or not to display and use an ObjectConfigurationProperty for the given User.
 

Field Detail

TRUE

static final EnabledCondition TRUE
A condition that means always enabled.

Method Detail

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-2013 Atlassian. All Rights Reserved.