public class UserEntityUtil extends Object
Modifier and Type | Method and Description |
---|---|
static UserEntity |
expandUser(ApplicationService applicationService,
Application application,
UserEntity minimalUserEntity,
boolean expandAttributes)
Expands a UserEntity from its minimal form to the expanded version.
|
public static UserEntity expandUser(ApplicationService applicationService, Application application, UserEntity minimalUserEntity, boolean expandAttributes) throws UserNotFoundException
UserEntityExpander
.applicationService
- ApplicationService to find a userapplication
- name of the application requesting the userminimalUserEntity
- Minimal representation of a UserEntity. Must include at least a username and a link.expandAttributes
- set to true if the expanded UserEntity should expand attributes.IllegalArgumentException
- if the minimal UserEntity does not include at least a username and a link.UserNotFoundException
- if a user with the specified username could not be found.Copyright © 2013 Atlassian. All Rights Reserved.