com.atlassian.jira.plugin.profile.UserFormat |
Known Indirect Subclasses
FullNameUserFormat,
FullProfileUserFormat,
ProfileLinkUserFormat,
ReferenceFullNameUserFormat,
UserNameUserFormat
|
Clients of @PublicSpi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicSpi
as per each product's API policy (clients should refer to each product's API policy for
the exact guarantee -- usually binary compatibility is guaranteed at least across minor versions).
@PublicSpi
interfaces and classes are specifically designed to be implemented/extended by clients.
Hence, the guarantee of binary compatibility is different to that of @PublicApi
elements (if an element
is both @PublicApi
and @PublicSpi
, both guarantees apply).
Provides a format to display a user on screen. This may be simply the user's full name surrounded by a link to the user's profile, or something more advanced such as the user's name and profile picture.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | VIEW_TEMPLATE | The default velocity template name that is used to render the view. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Renders the formatted user for a given section on the screen.
| |||||||||||
Renders the formatted user for a given section on the screen.
|
The default velocity template name that is used to render the view.
Renders the formatted user for a given section on the screen. Please note that the username may be null (eg for empty fields, anonymous user's, etc) or the user may not exist. Implementations should handle these cases.
Extra context can be passed to the renderer via the id attribute. Ideally an implementation might include this id in the rendered output such that it can be used for test assertions. The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.userkey | the user's userkey to format. |
---|---|
id | A value providing extra context to the rendering process. |
Renders the formatted user for a given section on the screen. Please note that the username may be null (eg for empty fields, anonymous user's, etc) or the user may not exist. Implementations should handle these cases.
Extra context can be passed to the renderer via the params attribute. The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.userkey | the user's userkey to format. |
---|---|
id | A value providing extra context to the rendering process. |
params | Additional context to pass to the renderer |