com.atlassian.crowd.integration.atlassianuser
Class CrowdUser

java.lang.Object
  extended by DefaultUser
      extended by com.atlassian.crowd.integration.atlassianuser.CrowdUser

public class CrowdUser
extends DefaultUser

Keeps a reference to the external Crowd principal. Lazy loads attrbutes as queried by the integrated application.


Constructor Summary
CrowdUser()
          Default constructor.
CrowdUser(SOAPPrincipal principal)
          Creates a crowd principal off the Crowd SOAP object.
CrowdUser(String name)
          Creates a crowd user with the specified name.
 
Method Summary
protected  void configureCache()
           
 String getEmail()
          Gets the email of the principal.
 String getFullName()
          Gets the fullname of the principal.
protected  String[] getPropertyValues(String key)
          Gets a specific attrbiute from the Crowd security server.
protected  void processEmail()
          Processes the server attributes and constructs an email for a principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdUser

public CrowdUser()
Default constructor.


CrowdUser

public CrowdUser(String name)
Creates a crowd user with the specified name.

Parameters:
name - The username.

CrowdUser

public CrowdUser(SOAPPrincipal principal)
Creates a crowd principal off the Crowd SOAP object.

Parameters:
principal - The principal.
Method Detail

configureCache

protected void configureCache()

getFullName

public String getFullName()
Gets the fullname of the principal.

Returns:
The fullname.

getEmail

public String getEmail()
Gets the email of the principal.

Returns:

processEmail

protected void processEmail()
Processes the server attributes and constructs an email for a principal.


getPropertyValues

protected String[] getPropertyValues(String key)
Gets a specific attrbiute from the Crowd security server.

Parameters:
key - The attribute to lookup.
Returns:
The values for the key.


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.