public class FullProfileUserFormat extends Object implements UserFormat
VIEW_TEMPLATE
Constructor and Description |
---|
FullProfileUserFormat(EmailFormatter emailFormatter,
PermissionManager permissionManager,
JiraAuthenticationContext authenticationContext,
GroupPermissionChecker groupPermissionChecker,
WebFragmentWebComponent webFragmentWebComponent,
UserManager userManager,
UserKeyService userKeyService,
UserFormatModuleDescriptor moduleDescriptor,
UserPropertyManager userPropertyManager,
GroupManager groupManager) |
Modifier and Type | Method and Description |
---|---|
String |
format(String key,
String id)
Renders the formatted user for a given section on the screen.
|
String |
format(String key,
String id,
Map params)
Renders the formatted user for a given section on the screen.
|
String |
getDisplayEmail(ApplicationUser user) |
List<String> |
getGroupNames(ApplicationUser user) |
String |
getUserLinks(ApplicationUser profileUser,
String template) |
Map |
getUserProperties(ApplicationUser user)
These user properties are currently only visible to JIRA Administrators
|
boolean |
hasViewGroupPermission(String group) |
boolean |
isEmailVisible(ApplicationUser user) |
boolean |
isHasPermission(int permissionsId) |
boolean |
isUserLoggedinUser(ApplicationUser user) |
public FullProfileUserFormat(EmailFormatter emailFormatter, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext, GroupPermissionChecker groupPermissionChecker, WebFragmentWebComponent webFragmentWebComponent, UserManager userManager, UserKeyService userKeyService, UserFormatModuleDescriptor moduleDescriptor, UserPropertyManager userPropertyManager, GroupManager groupManager)
public String format(String key, String id)
UserFormat
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.
format
in interface UserFormat
key
- the user's userkey to format.id
- A value providing extra context to the rendering process.public String format(String key, String id, Map params)
UserFormat
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.
format
in interface UserFormat
key
- the user's userkey to format.id
- A value providing extra context to the rendering process.params
- Additional context to pass to the rendererpublic boolean isUserLoggedinUser(ApplicationUser user)
public boolean isEmailVisible(ApplicationUser user)
public String getDisplayEmail(ApplicationUser user)
public boolean hasViewGroupPermission(String group)
public String getUserLinks(ApplicationUser profileUser, String template)
public Map getUserProperties(ApplicationUser user)
user
- The user to get properties for.public boolean isHasPermission(int permissionsId)
public List<String> getGroupNames(ApplicationUser user)
Copyright © 2002-2023 Atlassian. All Rights Reserved.