Class IgnorableAdminTaskCriteria
java.lang.Object
com.atlassian.confluence.admin.criteria.IgnorableAdminTaskCriteria
- All Implemented Interfaces:
AdminConfigurationCriteria
- Direct Known Subclasses:
BackupsAreManualCriteria
Criteria for Admin Tasks which can be dismissed.
Tasks can inherit from this criteria and implement the isMet() criteria, otherwise tasks
using this critera will remain dismissed and not completed.
-
Constructor Summary
ConstructorDescriptionIgnorableAdminTaskCriteria
(String key, SettingsManager settingsManager) ConstructorIgnorableAdminTaskCriteria
(String key, SettingsManager settingsManager, AdminConfigurationCriteria alternativeCriteria) Constructor with an alternative criteria. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
boolean
boolean
hasValue()
boolean
isMet()
Whether the acceptance criteria is met or not for this admin configuration.void
setIgnored
(boolean ignore)
-
Constructor Details
-
IgnorableAdminTaskCriteria
Constructor- Parameters:
key
- the key of the admin tasksettingsManager
- the settings manager
-
IgnorableAdminTaskCriteria
public IgnorableAdminTaskCriteria(String key, SettingsManager settingsManager, AdminConfigurationCriteria alternativeCriteria) Constructor with an alternative criteria. The task is ignored if either of the criteria is fulfilled.- Parameters:
key
- the key of the admin tasksettingsManager
- the settings manageralternativeCriteria
- alternative criteria.
-
-
Method Details
-
getIgnored
public boolean getIgnored()- Specified by:
getIgnored
in interfaceAdminConfigurationCriteria
- Returns:
- true if the acceptance criteria for this configuration has been ignored by an end-user, false otherwise.
-
setIgnored
public void setIgnored(boolean ignore) - Specified by:
setIgnored
in interfaceAdminConfigurationCriteria
- Parameters:
ignore
- whether this acceptance criteria should be ignored or not.
-
isMet
public boolean isMet()Description copied from interface:AdminConfigurationCriteria
Whether the acceptance criteria is met or not for this admin configuration.- Specified by:
isMet
in interfaceAdminConfigurationCriteria
- Returns:
- true if the acceptance criteria is met, false otherwise.
-
hasValue
public boolean hasValue()- Specified by:
hasValue
in interfaceAdminConfigurationCriteria
- Returns:
- true if the task has a value which can be configured.
-
getValue
- Specified by:
getValue
in interfaceAdminConfigurationCriteria
- Returns:
- A human-friendly representation of the current value of the admin configuration.
-
hasLiveValue
public boolean hasLiveValue()- Specified by:
hasLiveValue
in interfaceAdminConfigurationCriteria
- Returns:
- Whether the value for this configuration criteria should always be queried as opposed to cached. Useful for getting live data instead of an 'accepted value' when an associated task is completed.
-