com.atlassian.confluence.api.impl.service.content.factory
Class PersonFactory
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersonFactory
public PersonFactory(UserAccessor userAccessor,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
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(com.atlassian.user.User 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.