Class AdminTask
- java.lang.Object
- 
- com.atlassian.confluence.admin.tasks.AdminTask
 
- 
 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 AdminConfigurationCriteriain to an AdminTask'sAdminTaskConfig.
 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 SummaryConstructors Constructor Description AdminTask(AdminTaskConfig adminTaskConfig, AdminTaskData adminTaskData)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActionTextKey()AdminTaskConfiggetAdminTaskConfig()AdminTaskDatagetAdminTaskData()List<String>getAllConfigurationUris()A collection of locations in Confluence at which the task's goals may be satisfied.DategetCompletedAt()StringgetCompletedByFullName()StringgetCompletedByUsername()StringgetConfigurationCurrentValueKey()StringgetConfiguredValue()StringgetDescriptionKey()StringgetFirstConfigurationUri()A location in Confluence at which the task's goals may be satisfied.booleangetHasSuccessCriteria()Check to see if this task has automatic success criteria or not, as defined by anAdminConfigurationCriteria.booleangetHasValue()Whether the criteria has a value to display, such as "Current Status: Incomplete" or "Current Value: http://...".booleangetIsCompleted()Whether this task has been completed.booleangetIsCriteriaMet()Whether this task's success criteria have been met or not.StringgetKey()The unique handle for this admin task.StringgetTitleKey()booleanisIgnorable()Whether this task can be ignored or not.booleanisIgnored()Whether this task has been ignored.voidsetIgnored(boolean value)Set whether this task should be ignored.StringtoString()
 
- 
- 
- 
Constructor Detail- 
AdminTaskpublic AdminTask(AdminTaskConfig adminTaskConfig, AdminTaskData adminTaskData) 
 
- 
 - 
Method Detail- 
getAdminTaskConfigpublic AdminTaskConfig getAdminTaskConfig() 
 - 
getAdminTaskDatapublic AdminTaskData getAdminTaskData() 
 - 
getKeypublic String getKey() The unique handle for this admin task. Used for retrieval and i18n purposes.- Returns:
- The key set by this task's AdminTaskConfig.
 
 - 
getTitleKeypublic String getTitleKey() 
 - 
getActionTextKeypublic String getActionTextKey() 
 - 
getDescriptionKeypublic String getDescriptionKey() 
 - 
getConfigurationCurrentValueKeypublic String getConfigurationCurrentValueKey() 
 - 
getFirstConfigurationUripublic String getFirstConfigurationUri() A location in Confluence at which the task's goals may be satisfied.- Returns:
- A string representation of a relative URL.
 
 - 
getAllConfigurationUrispublic List<String> getAllConfigurationUris() A collection of locations in Confluence at which the task's goals may be satisfied.- Returns:
- A list of string representations of a relative URL.
 
 - 
isIgnorablepublic boolean isIgnorable() Whether this task can be ignored or not.- Returns:
- true if the task has the capacity to be ignored and dismissed.
 
 - 
isIgnoredpublic boolean isIgnored() Whether this task has been ignored.- Returns:
- true if the admin task has been ignored.
 
 - 
setIgnoredpublic void setIgnored(boolean value) Set whether this task should be ignored.- Parameters:
- value- set to true if this task should be ignored, or false to reinstate the task.
 
 - 
getHasValuepublic boolean getHasValue() Whether the criteria has a value to display, such as "Current Status: Incomplete" or "Current Value: http://...".- Returns:
- true if there is a value.
 
 - 
getIsCompletedpublic boolean getIsCompleted() Whether this task has been completed.- Returns:
- true if the task is considered complete.
 
 - 
getCompletedAtpublic Date getCompletedAt() - Returns:
- The time at which the task was completed.
 
 - 
getCompletedByFullNamepublic String getCompletedByFullName() - Returns:
- The full name of the user who completed the task.
 
 - 
getCompletedByUsernamepublic String getCompletedByUsername() - Returns:
- The username of the user who completed the task.
 
 - 
getHasSuccessCriteriapublic boolean getHasSuccessCriteria() Check to see if this task has automatic success criteria or not, as defined by anAdminConfigurationCriteria.- Returns:
- true if this task has automatic success critiera.
 
 - 
getConfiguredValuepublic String getConfiguredValue() - Returns:
- The value of the configuration option this admin task pertains to.
 If the task is complete, this will return the value at the time it was completed.
 This will always return the currently configured value in Confluence if both getHasSuccessCriteria()andAdminConfigurationCriteria.hasLiveValue()return true.
 
 - 
getIsCriteriaMetpublic boolean getIsCriteriaMet() Whether this task's success criteria have been met or not.- Returns:
- true if the criteria are met for success.
 
 
- 
 
-