com.atlassian.confluence.ui.rest.builder
Class PersonBuilder

java.lang.Object
  extended by com.atlassian.confluence.ui.rest.builder.PersonBuilder

public class PersonBuilder
extends java.lang.Object

Builder for Person objects.


Constructor Summary
PersonBuilder(UserAccessor userAccessor, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, PermissionManager permissionManager)
           
 
Method Summary
 Anonymous anonymous()
           
 Person forUsername(java.lang.String username)
          Construct the person object for a particular username.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonBuilder

public PersonBuilder(UserAccessor userAccessor,
                     com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
                     PermissionManager permissionManager)
Method Detail

forUsername

public Person forUsername(java.lang.String username)
Construct the person object for a particular username. Null usernames will return the anonymous person

Parameters:
username - the username of the person to represent
Returns:
the corresponding Person object

anonymous

public Anonymous anonymous()


Copyright © 2003-2014 Atlassian. All Rights Reserved.