public class

ManagerFactory

extends Object
java.lang.Object
   ↳ com.atlassian.jira.ManagerFactory

This class is deprecated.
Use ComponentAccessor instead. Since v4.4.

Class Overview

Provides static methods for obtaining 'Manager' classes, though which much of JIRA's functionality is exposed.

Summary

Public Methods
@Deprecated static <T> ComponentAdapter<T> addService(Class<T> clazz, T instance)
This method is deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
@Deprecated static ApplicationProperties getApplicationProperties()
@Deprecated static AttachmentManager getAttachmentManager()
@Deprecated static ConstantsManager getConstantsManager()
@Deprecated static CustomFieldManager getCustomFieldManager()
@Deprecated static CustomFieldValidator getCustomFieldValidator()
@Deprecated static FieldManager getFieldManager()
@Deprecated static GlobalPermissionManager getGlobalPermissionManager()
This method is deprecated. Use getGlobalPermissionManager() instead. Since v5.0.
@Deprecated static GroupManager getGroupManager()
This method is deprecated. Use getGroupManager() instead. Since v5.0.
@Deprecated static IndexLifecycleManager getIndexLifecycleManager()
@Deprecated static IssueIndexManager getIndexManager()
@Deprecated static IssueManager getIssueManager()
@Deprecated static IssueSecurityLevelManager getIssueSecurityLevelManager()
This method is deprecated. Use getIssueSecurityLevelManager() instead. Since v5.0.
@Deprecated static IssueSecuritySchemeManager getIssueSecuritySchemeManager()
@Deprecated static SecurityTypeManager getIssueSecurityTypeManager()
@Deprecated static JiraLocaleUtils getJiraLocaleUtils()
@Deprecated static ListenerManager getListenerManager()
@Deprecated static LocaleManager getLocaleManager()
This method is deprecated. Use getLocaleManager() instead. Since v5.0.
@Deprecated static MailQueue getMailQueue()
@Deprecated static MailThreadManager getMailThreadManager()
This method is deprecated. Use getMailThreadManager() instead. Since v4.4.
@Deprecated static NotificationSchemeManager getNotificationSchemeManager()
@Deprecated static NotificationTypeManager getNotificationTypeManager()
@Deprecated static XMLObjectConfigurationFactory getObjectConfigurationFactory()
@Deprecated static OptionsManager getOptionsManager()
This method is deprecated. Use getOptionsManager() instead. Since v5.0.
@Deprecated static OutlookDateManager getOutlookDateManager()
@Deprecated static PermissionManager getPermissionManager()
@Deprecated static PermissionSchemeManager getPermissionSchemeManager()
@Deprecated static PermissionTypeManager getPermissionTypeManager()
@Deprecated static ProjectManager getProjectManager()
This method is deprecated. Use getProjectManager() instead. Since v5.0.
@Deprecated static Scheduler getScheduler()
This method is deprecated. Use getScheduler() instead. Since v5.0. Since v6.3, you should use the SchedulerService instead.
@Deprecated static SearchRequestManager getSearchRequestManager()
@Deprecated static ServiceManager getServiceManager()
This method is deprecated. Use getServiceManager() instead. Since v5.0.
@Deprecated static SubscriptionManager getSubscriptionManager()
This method is deprecated. Use getSubscriptionManager() instead. Since v5.0.
@Deprecated static UpgradeManager getUpgradeManager()
This method is deprecated. Use getUpgradeManager() instead. Since v5.0.
@Deprecated static UserManager getUserManager()
This method is deprecated. Use getUserManager() instead. Since v5.0.
@Deprecated static UserPropertyManager getUserPropertyManager()
This method is deprecated. Use getUserPropertyManager() instead. Since v5.0.
@Deprecated static VelocityManager getVelocityManager()
This method is deprecated. Use getVelocityManager() instead. Since v5.0.
@Deprecated static WorkflowManager getWorkflowManager()
This method is deprecated. Use getWorkflowManager() instead. Since v5.0.
@Deprecated static WorkflowSchemeManager getWorkflowSchemeManager()
This method is deprecated. Use getWorkflowSchemeManager() instead. Since v5.0.
synchronized static void globalRefresh()
This should *never* be called, except in tests, or if you are importing or seting up for the first time.
static void initialise()
This method resets the registry.
synchronized static void quickRefresh()
This method is deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
@Deprecated synchronized static void quickRefresh(IssueIndexManager indexManager)
This method is deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
@Deprecated static void refreshIssueManager()
This method is deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
@Deprecated static void refreshUpgradeManager()
This method is deprecated. Use refreshUpgradeManager() instead. That method is as nasty as this one.
@Deprecated static void removeService(Class<?> clazz)
This method is deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Deprecated public static ComponentAdapter<T> addService (Class<T> clazz, T instance)

This method is deprecated.
This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.

@Deprecated public static ApplicationProperties getApplicationProperties ()

@Deprecated public static AttachmentManager getAttachmentManager ()

@Deprecated public static ConstantsManager getConstantsManager ()

@Deprecated public static CustomFieldManager getCustomFieldManager ()

@Deprecated public static CustomFieldValidator getCustomFieldValidator ()

@Deprecated public static FieldManager getFieldManager ()

@Deprecated public static GlobalPermissionManager getGlobalPermissionManager ()

This method is deprecated.
Use getGlobalPermissionManager() instead. Since v5.0.

@Deprecated public static GroupManager getGroupManager ()

This method is deprecated.
Use getGroupManager() instead. Since v5.0.

@Deprecated public static IndexLifecycleManager getIndexLifecycleManager ()

@Deprecated public static IssueIndexManager getIndexManager ()

@Deprecated public static IssueManager getIssueManager ()

@Deprecated public static IssueSecurityLevelManager getIssueSecurityLevelManager ()

This method is deprecated.
Use getIssueSecurityLevelManager() instead. Since v5.0.

@Deprecated public static IssueSecuritySchemeManager getIssueSecuritySchemeManager ()

@Deprecated public static SecurityTypeManager getIssueSecurityTypeManager ()

@Deprecated public static JiraLocaleUtils getJiraLocaleUtils ()

@Deprecated public static ListenerManager getListenerManager ()

@Deprecated public static LocaleManager getLocaleManager ()

This method is deprecated.
Use getLocaleManager() instead. Since v5.0.

@Deprecated public static MailQueue getMailQueue ()

@Deprecated public static MailThreadManager getMailThreadManager ()

This method is deprecated.
Use getMailThreadManager() instead. Since v4.4.

Returns
  • MailThreadManager

@Deprecated public static NotificationSchemeManager getNotificationSchemeManager ()

@Deprecated public static NotificationTypeManager getNotificationTypeManager ()

@Deprecated public static XMLObjectConfigurationFactory getObjectConfigurationFactory ()

@Deprecated public static OptionsManager getOptionsManager ()

This method is deprecated.
Use getOptionsManager() instead. Since v5.0.

@Deprecated public static OutlookDateManager getOutlookDateManager ()

@Deprecated public static PermissionManager getPermissionManager ()

@Deprecated public static PermissionSchemeManager getPermissionSchemeManager ()

@Deprecated public static PermissionTypeManager getPermissionTypeManager ()

@Deprecated public static ProjectManager getProjectManager ()

This method is deprecated.
Use getProjectManager() instead. Since v5.0.

@Deprecated public static Scheduler getScheduler ()

This method is deprecated.
Use getScheduler() instead. Since v5.0. Since v6.3, you should use the SchedulerService instead.

Returns
  • a Quartz scheduler

@Deprecated public static SearchRequestManager getSearchRequestManager ()

@Deprecated public static ServiceManager getServiceManager ()

This method is deprecated.
Use getServiceManager() instead. Since v5.0.

@Deprecated public static SubscriptionManager getSubscriptionManager ()

This method is deprecated.
Use getSubscriptionManager() instead. Since v5.0.

@Deprecated public static UpgradeManager getUpgradeManager ()

This method is deprecated.
Use getUpgradeManager() instead. Since v5.0.

@Deprecated public static UserManager getUserManager ()

This method is deprecated.
Use getUserManager() instead. Since v5.0.

@Deprecated public static UserPropertyManager getUserPropertyManager ()

This method is deprecated.
Use getUserPropertyManager() instead. Since v5.0.

@Deprecated public static VelocityManager getVelocityManager ()

This method is deprecated.
Use getVelocityManager() instead. Since v5.0.

@Deprecated public static WorkflowManager getWorkflowManager ()

This method is deprecated.
Use getWorkflowManager() instead. Since v5.0.

@Deprecated public static WorkflowSchemeManager getWorkflowSchemeManager ()

This method is deprecated.
Use getWorkflowSchemeManager() instead. Since v5.0.

public static synchronized void globalRefresh ()

This should *never* be called, except in tests, or if you are importing or seting up for the first time. The reason this is called is to ensure that all the managers are reinitialised after the license has changed.

Note: Make sure the scheduler is shutdown

public static void initialise ()

This method resets the registry.

public static synchronized void quickRefresh ()

This method is deprecated.
This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.

This method will refresh all the caches in JIRA (hopefully! :)) This method should not be called by anyone

@Deprecated public static synchronized void quickRefresh (IssueIndexManager indexManager)

This method is deprecated.
This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.

This method will refresh all the caches in JIRA (hopefully! :)) This method should not be called by anyone

@Deprecated public static void refreshIssueManager ()

This method is deprecated.
This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.

@Deprecated public static void refreshUpgradeManager ()

This method is deprecated.
Use refreshUpgradeManager() instead. That method is as nasty as this one.

Create a new UpgradeManager. This may be needed if more upgrade tasks are added, or if the license has been changed.

@Deprecated public static void removeService (Class<?> clazz)

This method is deprecated.
This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.