com.atlassian.crowd.integration.jive
Class CrowdUser

java.lang.Object
  extended by com.atlassian.crowd.integration.jive.CrowdUser

public class CrowdUser
extends Object

LDAP implementation of the User interface. This class supports storing all user information in the LDAP directory, or only getting critical data from LDAP and storing all other data in the database.

Author:
Matt Tucker

Constructor Summary
protected CrowdUser(long userID, Object fakeParam)
          Load a LdapUser object specified by userID.
protected CrowdUser(String username)
          Creates a new LdapUser.
protected CrowdUser(String username, Object fakeParam)
          Load a LdapUser object specified by username.
 
Method Summary
 void deleteProperty(String name)
           
 boolean equals(Object object)
           
 int getCachedSize()
           
 Date getCreationDate()
           
 String getEmail()
           
 long getID()
           
 Date getModificationDate()
           
 String getName()
           
 String getPasswordHash()
           
 Permissions getPermissions(AuthToken authToken)
           
 String getProperty(String name)
           
 Iterator getPropertyNames()
           
 String getUsername()
           
 int hashCode()
           
 boolean isAuthorized(long type)
           
 boolean isEmailVisible()
           
 boolean isGetPasswordHashSupported()
          false, not supported in ldap implementation
 boolean isNameVisible()
           
 boolean isPropertyEditSupported()
          supported, returns true
 boolean isReadOnly()
          not read only, returns false
 boolean isSetEmailSupported()
          Returns true only if in Full LDAP mode and the Jive Property "ldap.fullMode.updateDirectory.enabled" is set to "true".
 boolean isSetEmailVisibleSupported()
          supported, returns true
 boolean isSetNameSupported()
          Returns true only if in Full LDAP mode and the Jive Property "ldap.fullMode.updateDirectory.enabled" is set to "true".
 boolean isSetNameVisibleSupported()
          supported, returns true
 boolean isSetPasswordHashSupported()
          false, not supported in ldap implementation
 boolean isSetPasswordSupported()
          false, not supported in ldap implementation
 void setCreationDate(Date creationDate)
           
 void setEmail(String email)
           
 void setEmailVisible(boolean visible)
           
 void setModificationDate(Date modificationDate)
           
 void setName(String name)
           
 void setNameVisible(boolean visible)
           
 void setPassword(String password)
           
 void setPasswordHash(String passwordHash)
           
 void setProperty(String name, String value)
           
 String toString()
          Returns a String representation of the User object using the username.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrowdUser

protected CrowdUser(String username)
             throws UserNotFoundException
Creates a new LdapUser. This doesn't actually create a new LDAP record, but instead creates the db record that supports an existing LDAP entry.

Parameters:
username - the username for the new entry.
Throws:
UserNotFoundException

CrowdUser

protected CrowdUser(long userID,
                    Object fakeParam)
             throws UserNotFoundException
Load a LdapUser object specified by userID.

Parameters:
userID - the userID of the user to load.
Throws:
UserNotFoundException

CrowdUser

protected CrowdUser(String username,
                    Object fakeParam)
             throws UserNotFoundException
Load a LdapUser object specified by username.

Parameters:
username - the username of the user to load.
Throws:
UserNotFoundException
Method Detail

getID

public long getID()

getUsername

public String getUsername()

getName

public String getName()

setName

public void setName(String name)

isNameVisible

public boolean isNameVisible()

setNameVisible

public void setNameVisible(boolean visible)

setPassword

public void setPassword(String password)

getPasswordHash

public String getPasswordHash()

setPasswordHash

public void setPasswordHash(String passwordHash)

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

isEmailVisible

public boolean isEmailVisible()

setEmailVisible

public void setEmailVisible(boolean visible)

getCreationDate

public Date getCreationDate()

setCreationDate

public void setCreationDate(Date creationDate)

getModificationDate

public Date getModificationDate()

setModificationDate

public void setModificationDate(Date modificationDate)

getProperty

public String getProperty(String name)

setProperty

public void setProperty(String name,
                        String value)

deleteProperty

public void deleteProperty(String name)

getPropertyNames

public Iterator getPropertyNames()

getPermissions

public Permissions getPermissions(AuthToken authToken)

isAuthorized

public boolean isAuthorized(long type)

getCachedSize

public int getCachedSize()

toString

public String toString()
Returns a String representation of the User object using the username.

Overrides:
toString in class Object
Returns:
a String representation of the User object.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

isSetPasswordSupported

public boolean isSetPasswordSupported()
false, not supported in ldap implementation

Returns:
false

isGetPasswordHashSupported

public boolean isGetPasswordHashSupported()
false, not supported in ldap implementation

Returns:
false

isSetPasswordHashSupported

public boolean isSetPasswordHashSupported()
false, not supported in ldap implementation

Returns:
false

isSetNameSupported

public boolean isSetNameSupported()
Returns true only if in Full LDAP mode and the Jive Property "ldap.fullMode.updateDirectory.enabled" is set to "true".

Returns:
true only if in Full LDAP mode and the Jive Property "ldap.fullMode.updateDirectory.enabled" is set to "true".

isSetEmailSupported

public boolean isSetEmailSupported()
Returns true only if in Full LDAP mode and the Jive Property "ldap.fullMode.updateDirectory.enabled" is set to "true".

Returns:
true only if in Full LDAP mode and the Jive Property "ldap.fullMode.updateDirectory.enabled" is set to "true".

isSetNameVisibleSupported

public boolean isSetNameVisibleSupported()
supported, returns true

Returns:
true

isSetEmailVisibleSupported

public boolean isSetEmailVisibleSupported()
supported, returns true

Returns:
true

isPropertyEditSupported

public boolean isPropertyEditSupported()
supported, returns true

Returns:
true

isReadOnly

public boolean isReadOnly()
not read only, returns false

Returns:
false


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.