java.lang.Object | |
↳ | com.atlassian.jira.plugin.webfragment.JiraWebContext |
Useful wrapper for web contexts.
Context is normally a map but it contains some standard entries which can be easily retrieved using this class.
All getters return empty
if requested object is not set in the context map or has a type different than expected.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns value assigned to the specified key provided it is present in the map and has the specified type.
| |||||||||||
Tries to figure out the user from context.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Returns value assigned to the specified key provided it is present in the map and has the specified type.
key | entry key |
---|---|
type | expected type |
Tries to figure out the user from context. It checks the "user" key first
and if it does not contain ApplicationUser
value then
tries to load the user based on the "username" key in the context.