net.bryansaunders.jee6divelog.model
Class UserAccount

java.lang.Object
  extended by net.bryansaunders.jee6divelog.model.DiveLogEntity
      extended by net.bryansaunders.jee6divelog.model.UserAccount

@Entity
public class UserAccount
extends DiveLogEntity

User Model.

Author:
Bryan Saunders

Constructor Summary
UserAccount()
           
 
Method Summary
 java.util.Date getApiKeyExpiration()
          Get the apiKeyExpiration.
 java.lang.String getCity()
          Get the city.
 java.lang.String getCountry()
          Get the country.
 java.lang.String getEmail()
          Get the email.
 java.lang.String getFirstName()
          Get the firstName.
 java.lang.String getLastName()
          Get the lastName.
 java.lang.String getPassword()
          Get the password.
 java.util.Set<Permission> getPermissions()
          Get the permissions.
 java.lang.String getPrivateApiKey()
          Get the Private apiKey.
 java.lang.String getPublicApiKey()
          Get the Public apiKey.
 java.util.Set<Role> getRoles()
          Get the roles.
 java.lang.String getState()
          Get the state.
 void setApiKeyExpiration(java.util.Date newApiKeyExpiration)
          Set the apiKeyExpiration.
 void setCity(java.lang.String newCity)
          Set the city.
 void setCountry(java.lang.String newCountry)
          Set the country.
 void setEmail(java.lang.String newEmail)
          Set the email.
 void setFirstName(java.lang.String newFirstName)
          Set the firstName.
 void setLastName(java.lang.String newLastName)
          Set the lastName.
 void setPassword(java.lang.String newPassword)
          Set the password.
 void setPermissions(java.util.Set<Permission> newPermissions)
          Set the permissions.
 void setPrivateApiKey(java.lang.String newApiKey)
          Set the Private apiKey.
 void setPublicApiKey(java.lang.String newApiKey)
          Set the Public apiKey.
 void setRoles(java.util.Set<Role> newRoles)
          Set the roles.
 void setState(java.lang.String newState)
          Set the state.
 java.lang.String toString()
           
 
Methods inherited from class net.bryansaunders.jee6divelog.model.DiveLogEntity
getCreated, getId, getUpdated, getVersion, onCreate, onUpdate, setCreated, setId, setUpdated, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAccount

public UserAccount()
Method Detail

getFirstName

public java.lang.String getFirstName()
Get the firstName.

Returns:
the firstName

setFirstName

public void setFirstName(java.lang.String newFirstName)
Set the firstName.

Parameters:
newFirstName - the firstName to set

getLastName

public java.lang.String getLastName()
Get the lastName.

Returns:
the lastName

setLastName

public void setLastName(java.lang.String newLastName)
Set the lastName.

Parameters:
newLastName - the lastName to set

getCountry

public java.lang.String getCountry()
Get the country.

Returns:
the country

setCountry

public void setCountry(java.lang.String newCountry)
Set the country.

Parameters:
newCountry - the country to set

getState

public java.lang.String getState()
Get the state.

Returns:
the state

setState

public void setState(java.lang.String newState)
Set the state.

Parameters:
newState - the state to set

getCity

public java.lang.String getCity()
Get the city.

Returns:
the city

setCity

public void setCity(java.lang.String newCity)
Set the city.

Parameters:
newCity - the city to set

getEmail

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

Returns:
the email

setEmail

public void setEmail(java.lang.String newEmail)
Set the email.

Parameters:
newEmail - the email to set

getPassword

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

Returns:
the password

setPassword

public void setPassword(java.lang.String newPassword)
Set the password.

Parameters:
newPassword - the password to set

getRoles

public java.util.Set<Role> getRoles()
Get the roles.

Returns:
the roles

setRoles

public void setRoles(java.util.Set<Role> newRoles)
Set the roles.

Parameters:
newRoles - the roles to set

getPermissions

public java.util.Set<Permission> getPermissions()
Get the permissions.

Returns:
the permissions

setPermissions

public void setPermissions(java.util.Set<Permission> newPermissions)
Set the permissions.

Parameters:
newPermissions - the permissions to set

getPublicApiKey

public java.lang.String getPublicApiKey()
Get the Public apiKey.

Returns:
the apiKey

setPublicApiKey

public void setPublicApiKey(java.lang.String newApiKey)
Set the Public apiKey.

Parameters:
newApiKey - the apiKey to set

getPrivateApiKey

public java.lang.String getPrivateApiKey()
Get the Private apiKey.

Returns:
the apiKey

setPrivateApiKey

public void setPrivateApiKey(java.lang.String newApiKey)
Set the Private apiKey.

Parameters:
newApiKey - the apiKey to set

getApiKeyExpiration

public java.util.Date getApiKeyExpiration()
Get the apiKeyExpiration.

Returns:
the apiKeyExpiration

setApiKeyExpiration

public void setApiKeyExpiration(java.util.Date newApiKeyExpiration)
Set the apiKeyExpiration.

Parameters:
newApiKeyExpiration - the apiKeyExpiration to set

toString

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


Copyright © 2012 Bryan Saunders. All Rights Reserved.