public class CrowdUser
extends com.atlassian.user.impl.DefaultUser
Constructor and Description |
---|
CrowdUser()
This constructor will be called upon deserialisation of a CrowdUser.
|
CrowdUser(SOAPPrincipal principal,
UserManager userManager) |
CrowdUser(String name,
UserManager userManager)
Creates a
CrowdUser that only contains a username. |
Modifier and Type | Method and Description |
---|---|
protected void |
fetchPrincipal()
Downloads the principal object from the Crowd security server (or cache).
|
String |
getEmail()
Gets the email of the principal.
|
String |
getFullName()
Gets the fullname of the principal.
|
protected String[] |
getPropertyValues(String key)
Gets a specific attribute from the Crowd security server.
|
protected void |
processEmail()
Processes the server attributes and constructs an email for a principal.
|
equals, getPassword, hashCode, setEmail, setFullName, setPassword, toString
getCreated, getName, setCreated, setName
public CrowdUser()
public CrowdUser(String name, UserManager userManager)
CrowdUser
that only contains a username. Will lazy-load the user from the server if needs
be.name
- userManager
- public CrowdUser(SOAPPrincipal principal, UserManager userManager)
public String getFullName()
getFullName
in interface com.atlassian.user.User
getFullName
in class com.atlassian.user.impl.DefaultUser
public String getEmail()
getEmail
in interface com.atlassian.user.User
getEmail
in class com.atlassian.user.impl.DefaultUser
protected void processEmail()
protected String[] getPropertyValues(String key)
key
- The attribute to lookup.protected void fetchPrincipal()
Copyright © 2013 Atlassian. All Rights Reserved.