Class JiraServiceContextImpl

java.lang.Object
com.atlassian.jira.bc.JiraServiceContextImpl
All Implemented Interfaces:
JiraServiceContext

@PublicApi public class JiraServiceContextImpl extends Object implements JiraServiceContext
Default implementation of the JiraServiceContext.

For now, this guy has to be considered as API because devs must feed a JiraServiceContext instance to Service methods, and this is the only way to create one that will be compatible with mulitple versions of JIRA. If we don't like this, we need to provide a Factory or something.

  • Constructor Details

    • JiraServiceContextImpl

      public JiraServiceContextImpl(ApplicationUser user)
      Instantiates this class with given user and new empty error collection. The I18nHelper will be created from the User supplied.
      Parameters:
      user - user
    • JiraServiceContextImpl

      public JiraServiceContextImpl(ApplicationUser user, ErrorCollection errorCollection)
      Instantiates this class with user and error collection. The I18nHelper will be created from the User supplied.
      Parameters:
      user - user
      errorCollection - error collection; must not be null
      Throws:
      IllegalArgumentException - if error collection is null
    • JiraServiceContextImpl

      public JiraServiceContextImpl(ApplicationUser user, ErrorCollection errorCollection, I18nHelper i18nHelper)
      Instantiates this class with user and error collection and I18nHelper.
      Parameters:
      user - user
      errorCollection - error collection; must not be null
      i18nHelper - optional I18nHelper to use
      Throws:
      IllegalArgumentException - if error collection is null
  • Method Details