java.lang.Object | |
↳ | com.atlassian.jira.bc.JiraServiceContextImpl |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns error collection, never null
| |||||||||||
Get an I18nHelper for localising text.
| |||||||||||
Returns the User who has invoked the JIRA service method.
| |||||||||||
Returns the User who has invoked the JIRA service method.
| |||||||||||
Prints username and error collection
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.bc.JiraServiceContext
|
This constructor is deprecated.
since 6.1 use JiraServiceContextImpl(com.atlassian.jira.user.ApplicationUser)
instead
Instantiates this class with given user and new empty error collection. The I18nHelper will be created from the User supplied.
user | user |
---|
This constructor is deprecated.
since 6.1 use JiraServiceContextImpl(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.util.ErrorCollection)
instead
Instantiates this class with user and error collection. The I18nHelper will be created from the User supplied.
user | user |
---|---|
errorCollection | error collection; must not be null |
IllegalArgumentException | if error collection is null |
---|
This constructor is deprecated.
since 6.1 use JiraServiceContextImpl(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.util.ErrorCollection, com.atlassian.jira.util.I18nHelper)
instead
Instantiates this class with user and error collection and I18nHelper.
user | user |
---|---|
errorCollection | error collection; must not be null |
i18nHelper | optional I18nHelper to use |
IllegalArgumentException | if error collection is null |
---|
Instantiates this class with given user and new empty error collection. The I18nHelper will be created from the User supplied.
user | user |
---|
Instantiates this class with user and error collection. The I18nHelper will be created from the User supplied.
user | user |
---|---|
errorCollection | error collection; must not be null |
IllegalArgumentException | if error collection is null |
---|
Instantiates this class with user and error collection and I18nHelper.
user | user |
---|---|
errorCollection | error collection; must not be null |
i18nHelper | optional I18nHelper to use |
IllegalArgumentException | if error collection is null |
---|
Returns error collection, never null
Get an I18nHelper for localising text.
Returns the User who has invoked the JIRA service method.
Returns the User who has invoked the JIRA service method.
Prints username and error collection