public class UserFormatterImpl extends Object implements UserFormatter
Constructor and Description |
---|
UserFormatterImpl(UserFormat userFormat,
UserKeyService userKeyService) |
Modifier and Type | Method and Description |
---|---|
String |
formatUserkey(String userkey,
String id)
Renders the formatted user for a given section on the screen.
|
String |
formatUserkey(String userkey,
String id,
Map<String,Object> params)
Renders the formatted user for a given section on the screen.
|
String |
formatUsername(String username,
String id)
Renders the formatted user for a given section on the screen.
|
String |
formatUsername(String username,
String id,
Map<String,Object> params)
Renders the formatted user for a given section on the screen.
|
public UserFormatterImpl(UserFormat userFormat, UserKeyService userKeyService)
public String formatUserkey(String userkey, String id)
UserFormatter
The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.
formatUserkey
in interface UserFormatter
userkey
- the user to format.id
- A value providing extra context to the rendering process.public String formatUserkey(String userkey, String id, Map<String,Object> params)
UserFormatter
The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.
formatUserkey
in interface UserFormatter
userkey
- the user to format.id
- A value providing extra context to the rendering process.params
- Additional context to pass to the rendererpublic String formatUsername(String username, String id)
UserFormatter
The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.
formatUsername
in interface UserFormatter
username
- the user to format.id
- A value providing extra context to the rendering process.public String formatUsername(String username, String id, Map<String,Object> params)
UserFormatter
The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.
formatUsername
in interface UserFormatter
username
- the user to format.id
- A value providing extra context to the rendering process.params
- Additional context to pass to the rendererCopyright © 2002-2019 Atlassian. All Rights Reserved.