org.hackystat.tickertape.tickerlingua
Class HackystatUser

java.lang.Object
  extended by org.hackystat.tickertape.tickerlingua.HackystatUser

public class HackystatUser
extends java.lang.Object

Represents a Hackystat User.

Author:
Philip Johnson

Constructor Summary
HackystatUser(java.lang.String id, java.lang.String fullname, java.lang.String shortname, java.lang.String emailaccount, HackystatService hackystatService, java.lang.String hackystatUserEmail, java.lang.String hackystatPassword, TwitterAccount twitterAccount, FacebookAccount facebookAccount, java.lang.String smsAccount)
          Construct a new Hackystat User.
 
Method Summary
 org.hackystat.dailyprojectdata.client.DailyProjectDataClient getDailyProjectDataClient()
          Creates a new DailyProjectDataClient for this user.
 java.lang.String getEmailAccount()
          This user's email account.
 FacebookAccount getFacebookAccount()
          This user's facebook account, or null if they don't have one.
 java.lang.String getFullName()
          The full name for this user.
 java.lang.String getHackystatUserAccount()
          Returns the Hackystat user account for this user.
 java.lang.String getId()
          The unique id.
 org.hackystat.sensorbase.client.SensorBaseClient getSensorBaseClient()
          Creates a new SensorBaseClient for this user.
 java.lang.String getShortName()
          The nick name for this user.
 java.lang.String getSmsAccount()
          This user's text message number, or null if they don't have one.
 org.hackystat.telemetry.service.client.TelemetryClient getTelemetryClient()
          Creates a new TelemetryClient for this user.
 TwitterAccount getTwitterAccount()
          This user's twitter account, or null if they don't have one.
 boolean hasPassword()
          Returns true if this user has a password specified for them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HackystatUser

public HackystatUser(java.lang.String id,
                     java.lang.String fullname,
                     java.lang.String shortname,
                     java.lang.String emailaccount,
                     HackystatService hackystatService,
                     java.lang.String hackystatUserEmail,
                     java.lang.String hackystatPassword,
                     TwitterAccount twitterAccount,
                     FacebookAccount facebookAccount,
                     java.lang.String smsAccount)
Construct a new Hackystat User. Assumes all fields are valid.

Parameters:
id - The id.
fullname - The full name.
shortname - The nickname.
emailaccount - The email address.
hackystatService - Their HackystatService.
hackystatUserEmail - The email address for their hackystat account.
hackystatPassword - Their hackystat account password, or null.
twitterAccount - Their twitter account, or null.
facebookAccount - Their facebook account, or null.
smsAccount - Their sms account, or null.
Method Detail

getId

public java.lang.String getId()
The unique id.

Returns:
The id.

getHackystatUserAccount

public java.lang.String getHackystatUserAccount()
Returns the Hackystat user account for this user.

Returns:
The hackystat user account.

getFullName

public java.lang.String getFullName()
The full name for this user.

Returns:
The full name.

hasPassword

public boolean hasPassword()
Returns true if this user has a password specified for them.

Returns:
True if they have a password.

getShortName

public java.lang.String getShortName()
The nick name for this user.

Returns:
The nick name.

getEmailAccount

public java.lang.String getEmailAccount()
This user's email account.

Returns:
Their email address.

getTwitterAccount

public TwitterAccount getTwitterAccount()
This user's twitter account, or null if they don't have one.

Returns:
The twitter account or null.

getFacebookAccount

public FacebookAccount getFacebookAccount()
This user's facebook account, or null if they don't have one.

Returns:
The facebook account or null.

getSmsAccount

public java.lang.String getSmsAccount()
This user's text message number, or null if they don't have one.

Returns:
The sms account or null.

getSensorBaseClient

public org.hackystat.sensorbase.client.SensorBaseClient getSensorBaseClient()
Creates a new SensorBaseClient for this user. Throws a RuntimeException if this user did not have a password provided in tickertape.xml.

Returns:
A sensorbaseclient instance.

getDailyProjectDataClient

public org.hackystat.dailyprojectdata.client.DailyProjectDataClient getDailyProjectDataClient()
Creates a new DailyProjectDataClient for this user. Throws a RuntimeException if this user did not have a password provided in tickertape.xml.

Returns:
A DPD client instance.

getTelemetryClient

public org.hackystat.telemetry.service.client.TelemetryClient getTelemetryClient()
Creates a new TelemetryClient for this user. Throws a RuntimeException if this user did not have a password provided in tickertape.xml.

Returns:
A telemetryclient instance.