|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.user.impl.DefaultEntity com.atlassian.user.impl.DefaultUser com.atlassian.crowd.integration.atlassianuser.CrowdUser
public class CrowdUser
Keeps a reference to the external Crowd principal. Lazy loads attrbutes as queried by the integrated application.
Field Summary |
---|
Fields inherited from class com.atlassian.user.impl.DefaultUser |
---|
email, fullName, password |
Fields inherited from class com.atlassian.user.impl.DefaultEntity |
---|
created, name |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.atlassian.user.impl.DefaultUser |
---|
equals, getPassword, hashCode, setEmail, setFullName, setPassword, toString |
Methods inherited from class com.atlassian.user.impl.DefaultEntity |
---|
getCreated, getName, setCreated, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.user.Entity |
---|
getName |
Methods inherited from interface java.security.Principal |
---|
getName |
Constructor Detail |
---|
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)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |