com.atlassian.crowd.plugin.rest.entity
Class GroupEntityExpander

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.entity.GroupEntityExpander
All Implemented Interfaces:
com.atlassian.plugins.rest.common.expand.EntityExpander<GroupEntity>

public class GroupEntityExpander
extends Object
implements com.atlassian.plugins.rest.common.expand.EntityExpander<GroupEntity>

Expands a GroupEntity from its minimal form to the expanded version. As well as expanding the GroupEntity, this EntityExpander will expand the group attributes if required. This is required because ApplicationService does not support retrieving just the group's attributes.

Since:
v2.1

Field Summary
static String ATTRIBUTES_FIELD_NAME
           
 
Constructor Summary
GroupEntityExpander(ApplicationService applicationService, ApplicationManager applicationManager)
           
 
Method Summary
 GroupEntity expand(com.atlassian.plugins.rest.common.expand.ExpandContext<GroupEntity> context, com.atlassian.plugins.rest.common.expand.resolver.EntityExpanderResolver expanderResolver, com.atlassian.plugins.rest.common.expand.EntityCrawler entityCrawler)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTES_FIELD_NAME

public static final String ATTRIBUTES_FIELD_NAME
See Also:
Constant Field Values
Constructor Detail

GroupEntityExpander

public GroupEntityExpander(ApplicationService applicationService,
                           ApplicationManager applicationManager)
Method Detail

expand

public GroupEntity expand(com.atlassian.plugins.rest.common.expand.ExpandContext<GroupEntity> context,
                          com.atlassian.plugins.rest.common.expand.resolver.EntityExpanderResolver expanderResolver,
                          com.atlassian.plugins.rest.common.expand.EntityCrawler entityCrawler)

Specified by:
expand in interface com.atlassian.plugins.rest.common.expand.EntityExpander<GroupEntity>


Copyright © 2012 Atlassian. All Rights Reserved.