public class AdminTask extends Object
A discrete, actionable task that an administrator should be aware of.
An AdminTask aims to encapsulate goals around (correctly) affecting high-value changes to
Confluence that could or should be made in order to get the best out of Confluence.
At a glance, an AdminTask should provide an administrator with a clear, concise description for something that needs an administrator's attention. The title of the task should be a clear call to action for that task's goal.
An AdminTask must include goals which are automatically verifiable. This is accomplished
by injecting AdminConfigurationCriteria
in to an
AdminTask's AdminTaskConfig
.
Without success criteria, there is no way a user can satisfy or dismiss a task.
Once an AdminTask's goals have been addressed, the task is completed, and in doing so, the AdminTask records metadata for when the task was completed.
Tasks may be ignored (dismissed) by the admin. Note that tasks that are ignored are NOT also considered completed. It is up to the consuming service to decide whether to group ignored tasks with completed tasks.
All AdminTask objects are handled by the AdminTasklistManager
.
Constructor and Description |
---|
AdminTask(AdminTaskConfig adminTaskConfig,
AdminTaskData adminTaskData) |
Modifier and Type | Method and Description |
---|---|
String |
getActionTextKey() |
AdminTaskConfig |
getAdminTaskConfig() |
AdminTaskData |
getAdminTaskData() |
List<String> |
getAllConfigurationUris()
A collection of locations in Confluence at which the task's goals may be satisfied.
|
Date |
getCompletedAt() |
String |
getCompletedByFullName() |
String |
getCompletedByUsername() |
String |
getConfigurationCurrentValueKey() |
String |
getConfiguredValue() |
String |
getDescriptionKey() |
String |
getFirstConfigurationUri()
A location in Confluence at which the task's goals may be satisfied.
|
boolean |
getHasSuccessCriteria()
Check to see if this task has automatic success criteria or not, as defined by an
AdminConfigurationCriteria . |
boolean |
getHasValue()
Whether the criteria has a value to display, such as "Current Status: Incomplete" or "Current Value: http://...".
|
boolean |
getIsCompleted()
Whether this task has been completed.
|
boolean |
getIsCriteriaMet()
Whether this task's success criteria have been met or not.
|
String |
getKey()
The unique handle for this admin task.
|
String |
getTitleKey() |
boolean |
isIgnorable()
Whether this task can be ignored or not.
|
boolean |
isIgnored()
Whether this task has been ignored.
|
void |
setIgnored(boolean value)
Set whether this task should be ignored.
|
String |
toString() |
public AdminTask(AdminTaskConfig adminTaskConfig, AdminTaskData adminTaskData)
public AdminTaskConfig getAdminTaskConfig()
public AdminTaskData getAdminTaskData()
public String getKey()
AdminTaskConfig
.com.atlassian.confluence.admin.tasks.AdminTaskConfig#getKey()}
public String getTitleKey()
public String getActionTextKey()
public String getDescriptionKey()
public String getConfigurationCurrentValueKey()
public String getFirstConfigurationUri()
com.atlassian.confluence.admin.tasks.AdminTaskConfig#getFirstConfigurationUri()}
public List<String> getAllConfigurationUris()
com.atlassian.confluence.admin.tasks.AdminTaskConfig#getAllConfigurationUris()}
public boolean isIgnorable()
public boolean isIgnored()
com.atlassian.confluence.admin.criteria.AdminConfigurationCriteria#getIgnored()}
public void setIgnored(boolean value)
value
- set to true if this task should be ignored, or false to reinstate the task.com.atlassian.confluence.admin.criteria.AdminConfigurationCriteria#setIgnored(boolean)}
public boolean getHasValue()
public boolean getIsCompleted()
public Date getCompletedAt()
public String getCompletedByFullName()
public String getCompletedByUsername()
public boolean getHasSuccessCriteria()
AdminConfigurationCriteria
.public String getConfiguredValue()
getHasSuccessCriteria()
and AdminConfigurationCriteria.hasLiveValue()
return true.public boolean getIsCriteriaMet()
Copyright © 2003–2021 Atlassian. All rights reserved.