com.adobe.idp.um.api.infomodel
Class UserInfo

java.lang.Object
  extended by com.adobe.idp.um.api.infomodel.UserInfo
All Implemented Interfaces:
java.io.Serializable

public class UserInfo
extends java.lang.Object
implements java.io.Serializable

This class manages information for users.

See Also:
Serialized Form

Constructor Summary
UserInfo()
           
UserInfo(User user, java.lang.String password)
          Constructor based on a user and password.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares two users.
 java.lang.String getCurrentSyncStatus()
          Gets the current synchronization status.
 java.lang.String getPassword()
          Retrieves the password.
 User getUser()
          Retrieves the user.
 int hashCode()
          Retrieves the hash code for the user.
 void setCurrentSyncStatus(java.lang.String password)
          Sets the current synchronization status.
 void setPassword(java.lang.String password)
          Sets the password for this user
 void setUser(User user)
          Sets the user.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInfo

public UserInfo()

UserInfo

public UserInfo(User user,
                java.lang.String password)
Constructor based on a user and password.

Parameters:
user - The user.
password - The password.
Method Detail

getPassword

public java.lang.String getPassword()
Retrieves the password.

Returns:
The password.

setCurrentSyncStatus

public void setCurrentSyncStatus(java.lang.String password)
Sets the current synchronization status.

Parameters:
password - The user's password.

getCurrentSyncStatus

public java.lang.String getCurrentSyncStatus()
Gets the current synchronization status.

Returns:
current synchronization status.

getUser

public User getUser()
Retrieves the user.

Returns:
The user.

setUser

public void setUser(User user)
Sets the user.

Parameters:
user - The user.

setPassword

public void setPassword(java.lang.String password)
Sets the password for this user

Parameters:
password. - Password of the user

equals

public boolean equals(java.lang.Object obj)
Compares two users.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The user to be compared with the current user.
Returns:
true if the users are the same, false otherwise.

hashCode

public int hashCode()
Retrieves the hash code for the user.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.