com.jamasoftware.contour.ws.v2.domain
Class WsUser

java.lang.Object
  extended by com.jamasoftware.contour.ws.v2.domain.WsUser

public class WsUser
extends java.lang.Object

This object represents a Contour User. A user is a unique Contour login. Each has their own license type assignment, groups, and permissions. The license type is configured by the Administrator and controls the type of access a user has to Contour.

Author:
Dylan

Constructor Summary
WsUser()
          Creates an empty WsUser object.
WsUser(java.lang.String firstName, java.lang.String lastName, java.lang.String email, java.lang.String userName, java.lang.String password, java.lang.String licenseType, java.lang.Integer orgId)
          Creates a new WsUser object with the given first and last names, user name, password, email, license type and orgId.
WsUser(java.lang.String firstName, java.lang.String lastName, java.lang.String email, java.lang.String userName, java.lang.String password, java.lang.String title, java.lang.String location, java.lang.String notes, java.lang.String phone, java.lang.String licenseType, java.lang.Integer orgId)
          Creates a new WsUser object with the given values.
 
Method Summary
 java.lang.Boolean getActivated()
          Is the user activated?
 java.lang.String getEmail()
          Gets the user's e-mail address.
 java.lang.String getFirstName()
          Gets the first name of the user.
 java.lang.String getFullName()
          Gets the full name of the user.
 java.lang.Long getId()
          Gets the id of the user.
 java.lang.String getLastName()
          Gets the last name of the user.
 java.lang.String getLicenseType()
          Gets the license type for the user.
 java.lang.String getLocale()
          Gets the user's locale.
 java.lang.String getLocation()
          Gets the user's location.
 java.lang.String getNotes()
          Gets any notes associated with the user.
 java.lang.Integer getOrgId()
          Gets the id of the organization that the user belongs to.
 java.lang.String getPassword()
          Gets the user's password.
 java.lang.String getPhone()
          Gets the user's phone number.
 java.lang.String getTitle()
          Gets the user's title.
 java.lang.String getUserName()
          Gets the user's user name.
 boolean isLocked()
          Is the user locked?
 void setActivated(java.lang.Boolean activated)
          Sets the activated value for the user.
 void setEmail(java.lang.String email)
          Sets the user's e-mail address.
 void setFirstName(java.lang.String firstName)
          Sets the first name of the user.
 void setFullName(java.lang.String fullName)
          Sets the full name of the user.
 void setId(java.lang.Long id)
          Sets the user id.
 void setLastName(java.lang.String lastName)
          Sets the last name of the user.
 void setLicenseType(java.lang.String licenseType)
          Sets the license type for the user.
 void setLocale(java.lang.String locale)
          Sets the user's locale.
 void setLocation(java.lang.String location)
          Sets the user's location.
 void setLocked(boolean locked)
          Set the locked value for the user.
 void setNotes(java.lang.String notes)
          Sets notes associated with the user.
 void setOrgId(java.lang.Integer orgId)
          Sets the id of the organization that the user belongs to.
 void setPassword(java.lang.String password)
          Sets the user's password.
 void setPhone(java.lang.String phone)
          Sets the user's phone number.
 void setTitle(java.lang.String title)
          Sets the user's title.
 void setUserName(java.lang.String userName)
          Sets the user's user name.
 java.lang.String toString()
          Gets a string representation of this user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsUser

public WsUser()
Creates an empty WsUser object.


WsUser

public WsUser(java.lang.String firstName,
              java.lang.String lastName,
              java.lang.String email,
              java.lang.String userName,
              java.lang.String password,
              java.lang.String title,
              java.lang.String location,
              java.lang.String notes,
              java.lang.String phone,
              java.lang.String licenseType,
              java.lang.Integer orgId)
Creates a new WsUser object with the given values.

Parameters:
firstName - the first name of the user
lastName - the last name of the user
email - the email of the user
userName - the user name of the user
password - the password of the user
title - the title of the user (can be null)
location - where the user is located (can be null)
notes - any notes about the user (can be null)
phone - the phone number of the user (can be null)
licenseType - the licenseType of the user ("R" for Collaborator, "C" for Floating, "N" for Named)
orgId - id of the organization the user is in

WsUser

public WsUser(java.lang.String firstName,
              java.lang.String lastName,
              java.lang.String email,
              java.lang.String userName,
              java.lang.String password,
              java.lang.String licenseType,
              java.lang.Integer orgId)
Creates a new WsUser object with the given first and last names, user name, password, email, license type and orgId.

Parameters:
firstName - the first name of the user
lastName - the last name of the user
email - the email of the user
userName - the user name of the user
password - the password of the user
licenseType - the licenseType of the user ("R" for Collaborator, "C" for Floating, "N" for Named)
orgId - id of the organization the user is in
Method Detail

getId

public java.lang.Long getId()
Gets the id of the user.

Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the user id.

Parameters:
id - the id to set

getFullName

public java.lang.String getFullName()
Gets the full name of the user.

Returns:
the fullName

setFullName

public void setFullName(java.lang.String fullName)
Sets the full name of the user.

Parameters:
fullName - the fullName to set

getFirstName

public java.lang.String getFirstName()
Gets the first name of the user.

Returns:
the firstName

setFirstName

public void setFirstName(java.lang.String firstName)
Sets the first name of the user.

Parameters:
firstName - the first name

getLastName

public java.lang.String getLastName()
Gets the last name of the user.

Returns:
the lastName

setLastName

public void setLastName(java.lang.String lastName)
Sets the last name of the user.

Parameters:
lastName - the last name

getEmail

public java.lang.String getEmail()
Gets the user's e-mail address.

Returns:
the email

setEmail

public void setEmail(java.lang.String email)
Sets the user's e-mail address.

Parameters:
email - the email to set

getUserName

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

Returns:
the userName

setUserName

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

Parameters:
userName - the userName to set

getPassword

public java.lang.String getPassword()
Gets the user's password.

Returns:
the password

setPassword

public void setPassword(java.lang.String password)
Sets the user's password.

Parameters:
password - the password to set

isLocked

public boolean isLocked()
Is the user locked?

Returns:
whether or not the user is locked locked

setLocked

public void setLocked(boolean locked)
Set the locked value for the user.

Parameters:
locked - whether or not the user should be locked

getTitle

public java.lang.String getTitle()
Gets the user's title.

Returns:
the title

setTitle

public void setTitle(java.lang.String title)
Sets the user's title.

Parameters:
title - the title to set

getLocation

public java.lang.String getLocation()
Gets the user's location.

Returns:
the location

setLocation

public void setLocation(java.lang.String location)
Sets the user's location.

Parameters:
location - the location to set

getNotes

public java.lang.String getNotes()
Gets any notes associated with the user.

Returns:
the notes

setNotes

public void setNotes(java.lang.String notes)
Sets notes associated with the user.

Parameters:
notes - the notes to set

getPhone

public java.lang.String getPhone()
Gets the user's phone number.

Returns:
the phone number

setPhone

public void setPhone(java.lang.String phone)
Sets the user's phone number.

Parameters:
phone - the phone number to set

getLocale

public java.lang.String getLocale()
Gets the user's locale.

Returns:
the locale

setLocale

public void setLocale(java.lang.String locale)
Sets the user's locale.

Parameters:
locale - the locale to set

getActivated

public java.lang.Boolean getActivated()
Is the user activated?

Returns:
whether or not the user is activated

setActivated

public void setActivated(java.lang.Boolean activated)
Sets the activated value for the user.

Parameters:
activated - whether or not the user should be activated

getLicenseType

public java.lang.String getLicenseType()
Gets the license type for the user. ("R" for Collaborator, "C" for Floating, "N" for Named).

Returns:
the license type

setLicenseType

public void setLicenseType(java.lang.String licenseType)
Sets the license type for the user. ("R" for Collaborator, "C" for Floating, "N" for Named).

Parameters:
licenseType - the licenseType to set

getOrgId

public java.lang.Integer getOrgId()
Gets the id of the organization that the user belongs to.

Returns:
organization id

setOrgId

public void setOrgId(java.lang.Integer orgId)
Sets the id of the organization that the user belongs to.

Parameters:
orgId - the organization id

toString

public java.lang.String toString()
Gets a string representation of this user.

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright © 2010 Jama Software, Inc. All Rights Reserved.