org.directdemocracyportal.democracy.model.application
Class User

Package class diagram package User
java.lang.Object
  extended by org.directdemocracyportal.democracy.model.core.BaseEntity
      extended by org.directdemocracyportal.democracy.model.core.Agent
          extended by org.directdemocracyportal.democracy.model.application.User
All Implemented Interfaces:
java.io.Serializable

@Entity
public class User
extends Agent

The Class User.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
User()
          Instantiates a new user.
User(java.util.Date createdDate, java.lang.String username, java.lang.String password, java.lang.String email, Person person)
          Instantiates a new user.
 
Method Summary
Modifier and Type Method and Description
 java.util.Date getCreatedDate()
          Gets the created date.
 java.lang.String getEmail()
          Gets the email.
 java.util.List<Event> getEvents()
          Gets the events.
 java.util.Set<Authority> getGrantedAuthorities()
          Gets the granted authorities.
 GovernmentPortal getLocalGovernmentPortal()
          Gets the local government portal.
 GovernmentPortal getNationalGovernmentPortal()
          Gets the national government portal.
 java.lang.String getPassword()
          Gets the password.
 Person getPerson()
          Gets the person.
 GovernmentPortal getRegionalGovernmentPortal()
          Gets the regional government portal.
 java.lang.String getUsername()
          Gets the username.
 boolean isAccountNonExpired()
          Checks if is account non expired.
 boolean isAccountNonLocked()
          Checks if is account non locked.
 boolean isCredentialsNonExpired()
          Checks if is credentials non expired.
 boolean isEnabled()
          Checks if is enabled.
 void setAccountNonExpired(boolean accountNonExpired)
          Sets the account non expired.
 void setAccountNonLocked(boolean accountNonLocked)
          Sets the account non locked.
 void setCreatedDate(java.util.Date createdDate)
          Sets the created date.
 void setCredentialsNonExpired(boolean credentialsNonExpired)
          Sets the credentials non expired.
 void setEmail(java.lang.String email)
          Sets the email.
 void setEnabled(boolean enabled)
          Sets the enabled.
 void setEvents(java.util.List<Event> events)
          Sets the events.
 void setGrantedAuthorities(java.util.Set<Authority> grantedAuthorities)
          Sets the granted authorities.
 void setPassword(java.lang.String password)
          Sets the password.
 void setPerson(Person person)
          Sets the person.
 void setUsername(java.lang.String username)
          Sets the username.
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.Agent
equals, getId, getName, getResources, getRoles, hashCode, setId, setName, setResources, setRoles
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity
isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User()
Instantiates a new user.


User

public User(java.util.Date createdDate,
            java.lang.String username,
            java.lang.String password,
            java.lang.String email,
            Person person)
Instantiates a new user.

Parameters:
createdDate - the created date
username - the username
password - the password
email - the email
person - the person
Method Detail

getPassword

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

Returns:
the password

setPassword

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

Parameters:
password - the new password

getUsername

public java.lang.String getUsername()
Gets the username.

Returns:
the username

setUsername

public void setUsername(java.lang.String username)
Sets the username.

Parameters:
username - the new username

setCreatedDate

public void setCreatedDate(java.util.Date createdDate)
Sets the created date.

Parameters:
createdDate - the new created date

getCreatedDate

public java.util.Date getCreatedDate()
Gets the created date.

Returns:
the created date

getEvents

public java.util.List<Event> getEvents()
Gets the events.

Returns:
the events

setEvents

public void setEvents(java.util.List<Event> events)
Sets the events.

Parameters:
events - the new events

getPerson

public Person getPerson()
Gets the person.

Returns:
the person

setPerson

public void setPerson(Person person)
Sets the person.

Parameters:
person - the new person

getGrantedAuthorities

public java.util.Set<Authority> getGrantedAuthorities()
Gets the granted authorities.

Returns:
the granted authorities

setGrantedAuthorities

public void setGrantedAuthorities(java.util.Set<Authority> grantedAuthorities)
Sets the granted authorities.

Parameters:
grantedAuthorities - the new granted authorities

setAccountNonExpired

public void setAccountNonExpired(boolean accountNonExpired)
Sets the account non expired.

Parameters:
accountNonExpired - the new account non expired

setAccountNonLocked

public void setAccountNonLocked(boolean accountNonLocked)
Sets the account non locked.

Parameters:
accountNonLocked - the new account non locked

setCredentialsNonExpired

public void setCredentialsNonExpired(boolean credentialsNonExpired)
Sets the credentials non expired.

Parameters:
credentialsNonExpired - the new credentials non expired

setEnabled

public void setEnabled(boolean enabled)
Sets the enabled.

Parameters:
enabled - the new enabled

isAccountNonExpired

public boolean isAccountNonExpired()
Checks if is account non expired.

Returns:
true, if is account non expired

isAccountNonLocked

public boolean isAccountNonLocked()
Checks if is account non locked.

Returns:
true, if is account non locked

isCredentialsNonExpired

public boolean isCredentialsNonExpired()
Checks if is credentials non expired.

Returns:
true, if is credentials non expired

isEnabled

public boolean isEnabled()
Checks if is enabled.

Returns:
true, if is enabled

getEmail

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

Returns:
the email

setEmail

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

Parameters:
email - the new email

getLocalGovernmentPortal

public GovernmentPortal getLocalGovernmentPortal()
Gets the local government portal.

Returns:
the local government portal

getRegionalGovernmentPortal

public GovernmentPortal getRegionalGovernmentPortal()
Gets the regional government portal.

Returns:
the regional government portal

getNationalGovernmentPortal

public GovernmentPortal getNationalGovernmentPortal()
Gets the national government portal.

Returns:
the national government portal


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.