com.atlassian.confluence.api.impl.service.content.factory
Class PersonFactory

java.lang.Object
  extended by com.atlassian.confluence.api.impl.service.content.factory.PersonFactory

public class PersonFactory
extends java.lang.Object

Builder for Person objects.


Constructor Summary
PersonFactory(UserAccessor userAccessor, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, I18NBeanFactory i18nBeanFactory)
           
 
Method Summary
 Anonymous anonymous()
           
 Person forUser(ConfluenceUser user)
          Construct the person object for a particular user.
 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

PersonFactory

public PersonFactory(UserAccessor userAccessor,
                     com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
                     I18NBeanFactory i18nBeanFactory)
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

forUser

public Person forUser(ConfluenceUser user)
Construct the person object for a particular user. Null users will return the anonymous person

Parameters:
user - the user to represent as a Person
Returns:
the corresponding Person object

anonymous

public Anonymous anonymous()


Copyright © 2003-2014 Atlassian. All Rights Reserved.