Class UserEntityExpander
java.lang.Object
com.atlassian.crowd.plugin.rest.entity.UserEntityExpander
- All Implemented Interfaces:
com.atlassian.plugins.rest.api.expand.expander.EntityExpander<UserEntity>
public class UserEntityExpander
extends Object
implements com.atlassian.plugins.rest.api.expand.expander.EntityExpander<UserEntity>
Expands a UserEntity from its minimal form to the expanded version. As well as expanding the UserEntity, this
EntityExpander will expand the user attributes if required.
This is required because
ApplicationService
does not support retrieving just the user's attributes.- Since:
- v2.1
-
Constructor Summary
ConstructorsConstructorDescriptionUserEntityExpander
(ApplicationService applicationService, ApplicationManager applicationManager) -
Method Summary
Modifier and TypeMethodDescriptionexpand
(com.atlassian.plugins.rest.api.expand.ExpandContext<UserEntity> context, com.atlassian.plugins.rest.api.expand.resolver.EntityExpanderResolver expanderResolver, com.atlassian.plugins.rest.api.expand.EntityCrawler entityCrawler)
-
Constructor Details
-
UserEntityExpander
public UserEntityExpander(ApplicationService applicationService, ApplicationManager applicationManager)
-
-
Method Details
-
expand
public UserEntity expand(com.atlassian.plugins.rest.api.expand.ExpandContext<UserEntity> context, com.atlassian.plugins.rest.api.expand.resolver.EntityExpanderResolver expanderResolver, com.atlassian.plugins.rest.api.expand.EntityCrawler entityCrawler) - Specified by:
expand
in interfacecom.atlassian.plugins.rest.api.expand.expander.EntityExpander<UserEntity>
-