com.objectplanet.survey.plugin.api
Class User

java.lang.Object
  extended by com.objectplanet.survey.plugin.api.User

public class User
extends java.lang.Object

Represent a survey system user.

Author:
Irina Brun
Created:
19. mars 2003

Constructor Summary
User(com.objectplanet.survey.business.User userObject)
          Constructor for the User object
 
Method Summary
 boolean checkPassword(java.lang.String password)
          Compare entered password with the user password.
 java.lang.String getAttribute(java.lang.String attributeName)
          Gets an attribute of the User object
 long getCreatedDate()
          Gets the user created date
 long getDefaultFolderId()
          Gets the default folder id
 java.lang.String getEmail()
          Gets the email
 java.lang.String getLanguage()
          Gets the language
 long getLastLogin()
          Gets the last login date
 java.lang.String getLogin()
          Gets the login name
 java.lang.String getMemo()
          Gets the memo
 long getUserId()
          Gets the user id
 java.lang.String getUserName()
          Gets the user name
 void setAttribute(java.lang.String attributeName, java.lang.String attributeValue)
          Sets an attribute of the User object
 void setDefaultFolderId(long defaultFolderId)
          Sets the default folder id
 void setEmail(java.lang.String email)
          Sets the email
 void setLanguage(java.lang.String language)
          Sets the language for the user
 void setLogin(java.lang.String login)
          Sets the login name
 void setMemo(java.lang.String memo)
          Sets the memo (additional information about the user)
 void setPassword(java.lang.String password)
          Sets the password
 void setUserName(java.lang.String userName)
          Sets the user name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User(com.objectplanet.survey.business.User userObject)
Constructor for the User object

Parameters:
userObject - User object
Method Detail

setAttribute

public void setAttribute(java.lang.String attributeName,
                         java.lang.String attributeValue)
Sets an attribute of the User object

Parameters:
String - attributeName The attribute name
String - attributeValue The attribute value

setUserName

public void setUserName(java.lang.String userName)
Sets the user name

Parameters:
userName - The new user name

setLanguage

public void setLanguage(java.lang.String language)
Sets the language for the user

Parameters:
language - The new language

setEmail

public void setEmail(java.lang.String email)
Sets the email

Parameters:
email - The new email

setMemo

public void setMemo(java.lang.String memo)
Sets the memo (additional information about the user)

Parameters:
memo - The new memo

setLogin

public void setLogin(java.lang.String login)
Sets the login name

Parameters:
login - The new login

setPassword

public void setPassword(java.lang.String password)
                 throws SurveySystemException
Sets the password

Parameters:
password - The new password
Throws:
SurveySystemException

setDefaultFolderId

public void setDefaultFolderId(long defaultFolderId)
Sets the default folder id

Parameters:
defaultFolderId - The new defaultFolderId

getAttribute

public java.lang.String getAttribute(java.lang.String attributeName)
Gets an attribute of the User object

Parameters:
String - attributeName The attribute name
Returns:
String attributeValue The attribute value

getLogin

public java.lang.String getLogin()
Gets the login name

Returns:
The login name

getUserId

public long getUserId()
Gets the user id

Returns:
The user id

getUserName

public java.lang.String getUserName()
Gets the user name

Returns:
The user name

checkPassword

public boolean checkPassword(java.lang.String password)
                      throws SurveySystemException
Compare entered password with the user password.

Returns:
True if entered password matches the user password
Throws:
SurveySystemException

getLanguage

public java.lang.String getLanguage()
Gets the language

Returns:
The language

getEmail

public java.lang.String getEmail()
Gets the email

Returns:
The email

getMemo

public java.lang.String getMemo()
Gets the memo

Returns:
The memo

getDefaultFolderId

public long getDefaultFolderId()
Gets the default folder id

Returns:
The default folder id

getCreatedDate

public long getCreatedDate()
Gets the user created date

Returns:
The user creation date

getLastLogin

public long getLastLogin()
Gets the last login date

Returns:
The last login date

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016