|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.component.ComponentAccessor
public class ComponentAccessor
Provides static methods for accessing JIRA's managed components (ie the components in the PicoContainer).
Normally developers should get the dependencies injected into the constructor of the calling class via Pico, however this utility provides access for when that is impossible (eg to escape from a circular dependency).
Nested Class Summary | |
---|---|
static interface |
ComponentAccessor.Worker
|
Constructor Summary | |
---|---|
ComponentAccessor()
|
Method Summary | ||
---|---|---|
static ApplicationProperties |
getApplicationProperties()
|
|
static AttachmentManager |
getAttachmentManager()
|
|
static AttachmentPathManager |
getAttachmentPathManager()
Retrieves and returns the attachment path instance |
|
static AvatarManager |
getAvatarManager()
|
|
static BulkOperationManager |
getBulkOperationManager()
Retrieves and return the bulk operation manager instance |
|
static ChangeHistoryManager |
getChangeHistoryManager()
Retrieves and returns the ChangeHistoryManager manager instance |
|
static ColumnLayoutManager |
getColumnLayoutManager()
Retrieves and returns the column layout manager instance |
|
static CommentManager |
getCommentManager()
|
|
static
|
getComponent(Class<T> componentClass)
Returns the core component which is stored in JIRA's Dependency Injection container under the key that is the given class. |
|
static
|
getComponentOfType(Class<T> componentClass)
Returns the core component which is stored in JIRA's Dependency Injection container of the given Type (Class or Interface). |
|
static ConstantsManager |
getConstantsManager()
|
|
static com.atlassian.crowd.embedded.api.CrowdService |
getCrowdService()
|
|
static CustomFieldManager |
getCustomFieldManager()
|
|
static EventTypeManager |
getEventTypeManager()
|
|
static FieldAccessor |
getFieldAccessor()
|
|
static FieldLayoutManager |
getFieldLayoutManager()
Retrieves and returns the field layout manager |
|
static FieldScreenManager |
getFieldScreenManager()
Retrieves and returns the field screen manager instance |
|
static FieldScreenRendererFactory |
getFieldScreenRendererFactory()
Retrieves and returns the field screen renderer factory instance |
|
static GroupManager |
getGroupManager()
|
|
static I18nHelper.BeanFactory |
getI18nHelperFactory()
|
|
static IndexPathManager |
getIndexPathManager()
Retrieves and returns the index path manager instance |
|
static IssueFactory |
getIssueFactory()
|
|
static IssueManager |
getIssueManager()
|
|
static IssueSecurityLevelManager |
getIssueSecurityLevelManager()
|
|
static IssueService |
getIssueService()
Retrieves and returns the issue service instance |
|
static IssueTypeSchemeManager |
getIssueTypeSchemeManager()
Retrieves and returns the issue type scheme manager instance |
|
static JiraAuthenticationContext |
getJiraAuthenticationContext()
|
|
static LocaleManager |
getLocaleManager()
|
|
static com.atlassian.mail.queue.MailQueue |
getMailQueue()
|
|
static com.atlassian.mail.server.MailServerManager |
getMailServerManager()
Retrieves and returns the mail server manager instance |
|
static MailThreadManager |
getMailThreadManager()
|
|
static MoveSubTaskOperationManager |
getMoveSubTaskOperationManager()
Retrieves and returns the move subtask operation manager instance |
|
static NotificationSchemeManager |
getNotificationSchemeManager()
|
|
static OptionsManager |
getOptionsManager()
|
|
static PermissionContextFactory |
getPermissionContextFactory()
|
|
static PermissionManager |
getPermissionManager()
|
|
static PermissionSchemeManager |
getPermissionSchemeManager()
|
|
static com.atlassian.plugin.PluginAccessor |
getPluginAccessor()
|
|
static com.atlassian.plugin.PluginController |
getPluginController()
|
|
static com.atlassian.plugin.event.PluginEventManager |
getPluginEventManager()
|
|
static ProjectComponentManager |
getProjectComponentManager()
Retrieves and returns the project component manager instance |
|
static ProjectFactory |
getProjectFactory()
Retrieves and returns the project factory instance |
|
static ProjectManager |
getProjectManager()
|
|
static org.quartz.Scheduler |
getScheduler()
|
|
static ServiceManager |
getServiceManager()
|
|
static SubscriptionManager |
getSubscriptionManager()
|
|
static SubTaskManager |
getSubTaskManager()
Retrieves and returns the subtask manager instance |
|
static TrackbackManager |
getTrackbackManager()
Retrieves and returns the trackback manager instance. |
|
static TranslationManager |
getTranslationManager()
Retrieves and returns the translation manager instance |
|
static UserManager |
getUserManager()
|
|
static UserPreferencesManager |
getUserPreferencesManager()
Retrieves and returns the user preferences manager instance |
|
static UserPropertyManager |
getUserPropertyManager()
Retrieves and returns the user preferences manager instance |
|
static UserUtil |
getUserUtil()
|
|
static com.atlassian.velocity.VelocityManager |
getVelocityManager()
|
|
static VersionManager |
getVersionManager()
|
|
static VoteManager |
getVoteManager()
Retrieves and returns the vote manager instance |
|
static WatcherManager |
getWatcherManager()
Retrieves and returns the watcher manager instance |
|
static WorkflowManager |
getWorkflowManager()
|
|
static WorkflowSchemeManager |
getWorkflowSchemeManager()
Retrieves and returns the workflow scheme manager instance |
|
static WorklogManager |
getWorklogManager()
Retrieves and returns the worklog manager instance |
|
static ComponentAccessor.Worker |
initialiseWorker(ComponentAccessor.Worker componentAccessorWorker)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentAccessor()
Method Detail |
---|
public static <T> T getComponent(Class<T> componentClass)
In practise, this is the same as getComponentOfType(Class)
except it will fail faster if the
given Class is not a known component key (it also has a shorter and more meaningful name).
Please note that this method only gets components from JIRA's core Pico Container. That is, it retrieves core components and components declared in Plugins1 plugins, but not components declared in Plugins2 plugins.
componentClass
- class to find a component instance by
getComponentOfType(Class)
public static <T> T getComponentOfType(Class<T> componentClass)
First it tries to find the component using the given Class as a key (like getComponent(Class)
),
however, if this fails then it will try to find a unique component that implements/extends the given Class.
This seems unlikely to be useful, but is included for now, for completeness and backward compatibility.
Please note that this method only gets components from JIRA's core Pico Container. That is, it retrieves core components and components declared in Plugins1 plugins, but not components declared in Plugins2 plugins.
componentClass
- class to find a component instance by
getComponent(Class)
public static ProjectManager getProjectManager()
public static ApplicationProperties getApplicationProperties()
public static JiraAuthenticationContext getJiraAuthenticationContext()
public static ConstantsManager getConstantsManager()
public static com.atlassian.velocity.VelocityManager getVelocityManager()
public static I18nHelper.BeanFactory getI18nHelperFactory()
public static FieldAccessor getFieldAccessor()
public static IssueManager getIssueManager()
public static AttachmentManager getAttachmentManager()
public static UserManager getUserManager()
public static PermissionManager getPermissionManager()
public static PermissionContextFactory getPermissionContextFactory()
public static CustomFieldManager getCustomFieldManager()
public static UserUtil getUserUtil()
public static GroupManager getGroupManager()
public static EventTypeManager getEventTypeManager()
public static WorkflowManager getWorkflowManager()
public static IssueFactory getIssueFactory()
public static VersionManager getVersionManager()
public static CommentManager getCommentManager()
public static MailThreadManager getMailThreadManager()
public static BulkOperationManager getBulkOperationManager()
public static MoveSubTaskOperationManager getMoveSubTaskOperationManager()
public static WorklogManager getWorklogManager()
public static ProjectFactory getProjectFactory()
public static IssueTypeSchemeManager getIssueTypeSchemeManager()
public static SubTaskManager getSubTaskManager()
public static TrackbackManager getTrackbackManager()
public static com.atlassian.crowd.embedded.api.CrowdService getCrowdService()
public static FieldLayoutManager getFieldLayoutManager()
public static ColumnLayoutManager getColumnLayoutManager()
public static VoteManager getVoteManager()
public static com.atlassian.plugin.PluginAccessor getPluginAccessor()
public static com.atlassian.plugin.event.PluginEventManager getPluginEventManager()
public static com.atlassian.plugin.PluginController getPluginController()
public static FieldScreenRendererFactory getFieldScreenRendererFactory()
public static WorkflowSchemeManager getWorkflowSchemeManager()
public static IssueService getIssueService()
public static IndexPathManager getIndexPathManager()
public static AttachmentPathManager getAttachmentPathManager()
public static TranslationManager getTranslationManager()
public static WatcherManager getWatcherManager()
public static FieldScreenManager getFieldScreenManager()
public static com.atlassian.mail.server.MailServerManager getMailServerManager()
public static ProjectComponentManager getProjectComponentManager()
public static ChangeHistoryManager getChangeHistoryManager()
ChangeHistoryManager
manager instance
public static UserPreferencesManager getUserPreferencesManager()
public static UserPropertyManager getUserPropertyManager()
public static AvatarManager getAvatarManager()
public static com.atlassian.mail.queue.MailQueue getMailQueue()
public static NotificationSchemeManager getNotificationSchemeManager()
public static PermissionSchemeManager getPermissionSchemeManager()
public static org.quartz.Scheduler getScheduler()
public static IssueSecurityLevelManager getIssueSecurityLevelManager()
public static ServiceManager getServiceManager()
public static SubscriptionManager getSubscriptionManager()
public static LocaleManager getLocaleManager()
public static OptionsManager getOptionsManager()
public static ComponentAccessor.Worker initialiseWorker(ComponentAccessor.Worker componentAccessorWorker)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |