public class

AdminTaskManager

extends Object
java.lang.Object
   ↳ com.atlassian.jira.gadgets.system.AdminTaskManager

Class Overview

Manages the state of the tasks in the admin gadget.

Summary

Nested Classes
class AdminTaskManager.AdminTask An Admin taks that can be completed. 
class AdminTaskManager.AdminTaskLists Admin task lists. 
class AdminTaskManager.DoMoreTaskList The 'do more' task list. 
class AdminTaskManager.GettingStartedTaskList The getting started task list. 
Public Constructors
AdminTaskManager(AdminTaskUserPropertyManager adminTaskUserPropertyManager, ProjectManager projectManager, UserUtil userUtil, PluginAccessor pluginAccessor, SearchService searchService, FeatureManager featureManager, BonfireLicenseChecker bonfireLicenseChecker, GreenhopperLicenseChecker greenhopperLicenseChecker, IssueManager issueManager)
Public Methods
AdminTaskManager.AdminTaskLists getAdminTaskLists(User user)
Get the admin task lists for the supplied user.
boolean isTaskCompleted(User user, String taskName, AdminTaskManager.Condition condition)
If the task has been manually marked as completed or incomplete then use the stored value.
boolean isTaskEnabled(AdminTaskManager.Condition condition)
Is the named task enabled?
boolean isTaskListDismissed(User user, String taskListName)
Is the named task list disabled for the specified user?
void setTaskListDimissed(User user, String taskListName, boolean dismissed)
Set the named task list for the supplied user to be dismissed or not.
void setTaskMarkedAsCompleted(User user, String taskName, boolean done)
Mark a task for a user as done (or not).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AdminTaskManager (AdminTaskUserPropertyManager adminTaskUserPropertyManager, ProjectManager projectManager, UserUtil userUtil, PluginAccessor pluginAccessor, SearchService searchService, FeatureManager featureManager, BonfireLicenseChecker bonfireLicenseChecker, GreenhopperLicenseChecker greenhopperLicenseChecker, IssueManager issueManager)

Public Methods

public AdminTaskManager.AdminTaskLists getAdminTaskLists (User user)

Get the admin task lists for the supplied user.

public boolean isTaskCompleted (User user, String taskName, AdminTaskManager.Condition condition)

If the task has been manually marked as completed or incomplete then use the stored value. Otherwise, actually check the task.

public boolean isTaskEnabled (AdminTaskManager.Condition condition)

Is the named task enabled?

public boolean isTaskListDismissed (User user, String taskListName)

Is the named task list disabled for the specified user?

public void setTaskListDimissed (User user, String taskListName, boolean dismissed)

Set the named task list for the supplied user to be dismissed or not.

public void setTaskMarkedAsCompleted (User user, String taskName, boolean done)

Mark a task for a user as done (or not).