org.molgenis.omx.auth
Class MolgenisUser

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.auth.MolgenisRole
          extended by org.molgenis.omx.auth.MolgenisUser
All Implemented Interfaces:
Serializable, Contact, PersonContact, Autoid, Identifiable, Entity

@Entity
public class MolgenisUser
extends MolgenisRole
implements Contact, PersonContact

MolgenisUser: Anyone who can login.

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String ACTIVATIONCODE
           
static String ACTIVE
           
static String ADDRESS
           
static String AFFILIATION
           
static String AFFILIATION_NAME
           
static String CITY
           
static String COUNTRY
           
static String DEPARTMENT
           
static String EMAIL
           
static String FAX
           
static String FIRSTNAME
           
static String ID
           
static String LASTNAME
           
static String MIDINITIALS
           
static String PASSWORD_
           
static String PHONE
           
static String ROLES
           
static String ROLES_IDENTIFIER
           
static String SUPERUSER
           
static String TITLE
           
static String TOLLFREEPHONE
           
 
Fields inherited from class org.molgenis.omx.auth.MolgenisRole
__TYPE, IDENTIFIER, NAME
 
Constructor Summary
MolgenisUser()
           
MolgenisUser(MolgenisUser copyMe)
          copy constructor
 
Method Summary
 MolgenisUser create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends MolgenisUser> find(Database db, QueryRule... rules)
          Shorthand for db.find(MolgenisUser.class, org.molgenis.framework.db.QueryRule ...
static MolgenisUser findByEmail(Database db, String email)
           
static MolgenisUser findById(Database db, Integer id)
           
static MolgenisUser findByIdentifier(Database db, String identifier)
           
static MolgenisUser findByName(Database db, String name)
           
 Object get(String name)
          Generic getter.
 String getActivationCode()
          Get the Used as alternative authentication mechanism to verify user email and/or if user has lost password..
 String getActivationCode(Database db)
          Deprecated. 
 Boolean getActive()
          Get the Boolean to indicate if this account can be used to login.
 Boolean getActive(Database db)
          Deprecated. 
 String getAddress()
          Get the The address of the Contact..
 String getAddress(Database db)
          Deprecated. 
 Integer getAffiliation_Id()
           
 String getAffiliation_Name()
          Get a pretty label Name for cross reference Affiliation to Institute.Id.
 Institute getAffiliation()
          Get the Affiliation.
 Institute getAffiliation(Database db)
          Deprecated. 
 String getCity()
          Get the Added from the old definition of MolgenisUser.
 String getCity(Database db)
          Deprecated. 
 String getCountry()
          Get the Added from the old definition of MolgenisUser.
 String getCountry(Database db)
          Deprecated. 
 String getDepartment()
          Get the Added from the old definition of MolgenisUser.
 String getDepartment(Database db)
          Deprecated. 
 String getEmail()
          Get the The email address of the Contact..
 String getEmail(Database db)
          Deprecated. 
 String getFax()
          Get the The fax number of the Contact..
 String getFax(Database db)
          Deprecated. 
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of MolgenisUser.
 String getFields(String sep)
          Deprecated. 
 String getFirstName()
          Get the First Name.
 String getFirstName(Database db)
          Deprecated. 
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 String getLastName()
          Get the Last Name.
 String getLastName(Database db)
          Deprecated. 
 String getMidInitials()
          Get the Mid Initials.
 String getMidInitials(Database db)
          Deprecated. 
 String getPassword()
          Get the big fixme: password type.
 String getPassword(Database db)
          Deprecated. 
 String getPhone()
          Get the The telephone number of the Contact including the suitable area codes..
 String getPhone(Database db)
          Deprecated. 
 Integer getRoles_Id()
           
 String getRoles_Identifier()
          Get a pretty label Identifier for cross reference Roles to PersonRole.Id.
 PersonRole getRoles()
          Get the Indicate role of the contact, e.g.
 PersonRole getRoles(Database db)
          Deprecated. 
 Boolean getSuperuser()
          Get the superuser.
 Boolean getSuperuser(Database db)
          Deprecated. 
 String getTitle()
          Get the An academic title, e.g.
 String getTitle(Database db)
          Deprecated. 
 String getTollFreePhone()
          Get the A toll free phone number for the Contact, including suitable area codes..
 String getTollFreePhone(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends MolgenisUser> query(Database db)
          Shorthand for db.query(MolgenisUser.class).
 void set(Tuple tuple, boolean strict)
           
 void setActivationCode(String activationCode)
          Set the Used as alternative authentication mechanism to verify user email and/or if user has lost password..
 void setActive(Boolean active)
          Set the Boolean to indicate if this account can be used to login.
 void setAddress(String address)
          Set the The address of the Contact..
 void setAffiliation_Id(Integer affiliation_id)
          Set foreign key for field affiliation.
 void setAffiliation_Name(String affiliation_Name)
          Set a pretty label for cross reference Affiliation to Institute.Id.
 void setAffiliation(Institute affiliation)
          Set the Affiliation.
 void setAffiliation(Integer affiliation_id)
           
 void setCity(String city)
          Set the Added from the old definition of MolgenisUser.
 void setCountry(String country)
          Set the Added from the old definition of MolgenisUser.
 void setDepartment(String department)
          Set the Added from the old definition of MolgenisUser.
 void setEmail(String email)
          Set the The email address of the Contact..
 void setFax(String fax)
          Set the The fax number of the Contact..
 void setFirstName(String firstName)
          Set the First Name.
 void setLastName(String lastName)
          Set the Last Name.
 void setMidInitials(String midInitials)
          Set the Mid Initials.
 void setPassword(String password_)
          Set the big fixme: password type.
 void setPhone(String phone)
          Set the The telephone number of the Contact including the suitable area codes..
 void setRoles_Id(Integer roles_id)
          Set foreign key for field roles.
 void setRoles_Identifier(String roles_Identifier)
          Set a pretty label for cross reference Roles to PersonRole.Id.
 void setRoles(Integer roles_id)
           
 void setRoles(PersonRole roles)
          Set the Indicate role of the contact, e.g.
 void setSuperuser(Boolean superuser)
          Set the superuser.
 void setTitle(String title)
          Set the An academic title, e.g.
 void setTollFreePhone(String tollFreePhone)
          Set the A toll free phone number for the Contact, including suitable area codes..
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
Methods inherited from class org.molgenis.omx.auth.MolgenisRole
get__Type, get__Type, get__TypeLabel, get__TypeOptions, getId, getIdentifier, getIdentifier, getName, getName, set__Type, setId, setIdentifier, setName
 
Methods inherited from class org.molgenis.util.AbstractEntity
getLabelValue, getValues, isObjectRepresentation, isReadonly, set, set, setReadonly, setValuesFromString, string2date
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.molgenis.util.Entity
getLabelValue, getValues, isReadonly, set, set, setReadonly
 

Field Detail

ADDRESS

public static final String ADDRESS
See Also:
Constant Field Values

PHONE

public static final String PHONE
See Also:
Constant Field Values

EMAIL

public static final String EMAIL
See Also:
Constant Field Values

FAX

public static final String FAX
See Also:
Constant Field Values

TOLLFREEPHONE

public static final String TOLLFREEPHONE
See Also:
Constant Field Values

CITY

public static final String CITY
See Also:
Constant Field Values

COUNTRY

public static final String COUNTRY
See Also:
Constant Field Values

FIRSTNAME

public static final String FIRSTNAME
See Also:
Constant Field Values

MIDINITIALS

public static final String MIDINITIALS
See Also:
Constant Field Values

LASTNAME

public static final String LASTNAME
See Also:
Constant Field Values

TITLE

public static final String TITLE
See Also:
Constant Field Values

AFFILIATION

public static final String AFFILIATION
See Also:
Constant Field Values

AFFILIATION_NAME

public static final String AFFILIATION_NAME
See Also:
Constant Field Values

DEPARTMENT

public static final String DEPARTMENT
See Also:
Constant Field Values

ROLES

public static final String ROLES
See Also:
Constant Field Values

ROLES_IDENTIFIER

public static final String ROLES_IDENTIFIER
See Also:
Constant Field Values

PASSWORD_

public static final String PASSWORD_
See Also:
Constant Field Values

ACTIVATIONCODE

public static final String ACTIVATIONCODE
See Also:
Constant Field Values

ACTIVE

public static final String ACTIVE
See Also:
Constant Field Values

SUPERUSER

public static final String SUPERUSER
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

MolgenisUser

public MolgenisUser()

MolgenisUser

public MolgenisUser(MolgenisUser copyMe)
             throws Exception
copy constructor

Throws:
Exception
Method Detail

query

public static Query<? extends MolgenisUser> query(Database db)
Shorthand for db.query(MolgenisUser.class).


find

public static List<? extends MolgenisUser> find(Database db,
                                                QueryRule... rules)
                                         throws DatabaseException
Shorthand for db.find(MolgenisUser.class, org.molgenis.framework.db.QueryRule ... rules).

Throws:
DatabaseException

findById

public static MolgenisUser findById(Database db,
                                    Integer id)
                             throws DatabaseException
Throws:
DatabaseException

findByIdentifier

public static MolgenisUser findByIdentifier(Database db,
                                            String identifier)
                                     throws DatabaseException
Throws:
DatabaseException

findByName

public static MolgenisUser findByName(Database db,
                                      String name)
                               throws DatabaseException
Throws:
DatabaseException

findByEmail

public static MolgenisUser findByEmail(Database db,
                                       String email)
                                throws DatabaseException
Throws:
DatabaseException

getAddress

public String getAddress()
Get the The address of the Contact..

Specified by:
getAddress in interface Contact
Returns:
address.

getAddress

@Deprecated
public String getAddress(Database db)
Deprecated. 


setAddress

public void setAddress(String address)
Set the The address of the Contact..

Specified by:
setAddress in interface Contact
Parameters:
address -

getPhone

public String getPhone()
Get the The telephone number of the Contact including the suitable area codes..

Specified by:
getPhone in interface Contact
Returns:
phone.

getPhone

@Deprecated
public String getPhone(Database db)
Deprecated. 


setPhone

public void setPhone(String phone)
Set the The telephone number of the Contact including the suitable area codes..

Specified by:
setPhone in interface Contact
Parameters:
phone -

getEmail

public String getEmail()
Get the The email address of the Contact..

Specified by:
getEmail in interface Contact
Returns:
email.

getEmail

@Deprecated
public String getEmail(Database db)
Deprecated. 


setEmail

public void setEmail(String email)
Set the The email address of the Contact..

Specified by:
setEmail in interface Contact
Parameters:
email -

getFax

public String getFax()
Get the The fax number of the Contact..

Specified by:
getFax in interface Contact
Returns:
fax.

getFax

@Deprecated
public String getFax(Database db)
Deprecated. 


setFax

public void setFax(String fax)
Set the The fax number of the Contact..

Specified by:
setFax in interface Contact
Parameters:
fax -

getTollFreePhone

public String getTollFreePhone()
Get the A toll free phone number for the Contact, including suitable area codes..

Specified by:
getTollFreePhone in interface Contact
Returns:
tollFreePhone.

getTollFreePhone

@Deprecated
public String getTollFreePhone(Database db)
Deprecated. 


setTollFreePhone

public void setTollFreePhone(String tollFreePhone)
Set the A toll free phone number for the Contact, including suitable area codes..

Specified by:
setTollFreePhone in interface Contact
Parameters:
tollFreePhone -

getCity

public String getCity()
Get the Added from the old definition of MolgenisUser. City of this contact..

Specified by:
getCity in interface Contact
Returns:
city.

getCity

@Deprecated
public String getCity(Database db)
Deprecated. 


setCity

public void setCity(String city)
Set the Added from the old definition of MolgenisUser. City of this contact..

Specified by:
setCity in interface Contact
Parameters:
city -

getCountry

public String getCountry()
Get the Added from the old definition of MolgenisUser. Country of this contact..

Specified by:
getCountry in interface Contact
Returns:
country.

getCountry

@Deprecated
public String getCountry(Database db)
Deprecated. 


setCountry

public void setCountry(String country)
Set the Added from the old definition of MolgenisUser. Country of this contact..

Specified by:
setCountry in interface Contact
Parameters:
country -

getFirstName

public String getFirstName()
Get the First Name.

Specified by:
getFirstName in interface PersonContact
Returns:
firstName.

getFirstName

@Deprecated
public String getFirstName(Database db)
Deprecated. 


setFirstName

public void setFirstName(String firstName)
Set the First Name.

Specified by:
setFirstName in interface PersonContact
Parameters:
firstName -

getMidInitials

public String getMidInitials()
Get the Mid Initials.

Specified by:
getMidInitials in interface PersonContact
Returns:
midInitials.

getMidInitials

@Deprecated
public String getMidInitials(Database db)
Deprecated. 


setMidInitials

public void setMidInitials(String midInitials)
Set the Mid Initials.

Specified by:
setMidInitials in interface PersonContact
Parameters:
midInitials -

getLastName

public String getLastName()
Get the Last Name.

Specified by:
getLastName in interface PersonContact
Returns:
lastName.

getLastName

@Deprecated
public String getLastName(Database db)
Deprecated. 


setLastName

public void setLastName(String lastName)
Set the Last Name.

Specified by:
setLastName in interface PersonContact
Parameters:
lastName -

getTitle

public String getTitle()
Get the An academic title, e.g. Prof.dr, PhD.

Specified by:
getTitle in interface PersonContact
Returns:
title.

getTitle

@Deprecated
public String getTitle(Database db)
Deprecated. 


setTitle

public void setTitle(String title)
Set the An academic title, e.g. Prof.dr, PhD.

Specified by:
setTitle in interface PersonContact
Parameters:
title -

getAffiliation

public Institute getAffiliation()
Get the Affiliation.

Specified by:
getAffiliation in interface PersonContact
Returns:
affiliation.

getAffiliation

@Deprecated
public Institute getAffiliation(Database db)
Deprecated. 


setAffiliation

public void setAffiliation(Institute affiliation)
Set the Affiliation.

Specified by:
setAffiliation in interface PersonContact
Parameters:
affiliation -

setAffiliation_Id

public void setAffiliation_Id(Integer affiliation_id)
Set foreign key for field affiliation. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?

Specified by:
setAffiliation_Id in interface PersonContact

setAffiliation

public void setAffiliation(Integer affiliation_id)

getAffiliation_Id

public Integer getAffiliation_Id()
Specified by:
getAffiliation_Id in interface PersonContact

getAffiliation_Name

public String getAffiliation_Name()
Get a pretty label Name for cross reference Affiliation to Institute.Id.

Specified by:
getAffiliation_Name in interface PersonContact

setAffiliation_Name

public void setAffiliation_Name(String affiliation_Name)
Set a pretty label for cross reference Affiliation to Institute.Id. Implies setAffiliation(null) until save

Specified by:
setAffiliation_Name in interface PersonContact

getDepartment

public String getDepartment()
Get the Added from the old definition of MolgenisUser. Department of this contact..

Specified by:
getDepartment in interface PersonContact
Returns:
department.

getDepartment

@Deprecated
public String getDepartment(Database db)
Deprecated. 


setDepartment

public void setDepartment(String department)
Set the Added from the old definition of MolgenisUser. Department of this contact..

Specified by:
setDepartment in interface PersonContact
Parameters:
department -

getRoles

public PersonRole getRoles()
Get the Indicate role of the contact, e.g. lab worker or PI. Changed from mref to xref in oct 2011..

Specified by:
getRoles in interface PersonContact
Returns:
roles.

getRoles

@Deprecated
public PersonRole getRoles(Database db)
Deprecated. 


setRoles

public void setRoles(PersonRole roles)
Set the Indicate role of the contact, e.g. lab worker or PI. Changed from mref to xref in oct 2011..

Specified by:
setRoles in interface PersonContact
Parameters:
roles -

setRoles_Id

public void setRoles_Id(Integer roles_id)
Set foreign key for field roles. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?

Specified by:
setRoles_Id in interface PersonContact

setRoles

public void setRoles(Integer roles_id)

getRoles_Id

public Integer getRoles_Id()
Specified by:
getRoles_Id in interface PersonContact

getRoles_Identifier

public String getRoles_Identifier()
Get a pretty label Identifier for cross reference Roles to PersonRole.Id.

Specified by:
getRoles_Identifier in interface PersonContact

setRoles_Identifier

public void setRoles_Identifier(String roles_Identifier)
Set a pretty label for cross reference Roles to PersonRole.Id. Implies setRoles(null) until save

Specified by:
setRoles_Identifier in interface PersonContact

getPassword

public String getPassword()
Get the big fixme: password type.

Returns:
password_.

getPassword

@Deprecated
public String getPassword(Database db)
Deprecated. 


setPassword

public void setPassword(String password_)
Set the big fixme: password type.

Parameters:
password_ -

getActivationCode

public String getActivationCode()
Get the Used as alternative authentication mechanism to verify user email and/or if user has lost password..

Returns:
activationCode.

getActivationCode

@Deprecated
public String getActivationCode(Database db)
Deprecated. 


setActivationCode

public void setActivationCode(String activationCode)
Set the Used as alternative authentication mechanism to verify user email and/or if user has lost password..

Parameters:
activationCode -

getActive

public Boolean getActive()
Get the Boolean to indicate if this account can be used to login.

Returns:
active.

getActive

@Deprecated
public Boolean getActive(Database db)
Deprecated. 


setActive

public void setActive(Boolean active)
Set the Boolean to indicate if this account can be used to login.

Parameters:
active -

getSuperuser

public Boolean getSuperuser()
Get the superuser.

Returns:
superuser.

getSuperuser

@Deprecated
public Boolean getSuperuser(Database db)
Deprecated. 


setSuperuser

public void setSuperuser(Boolean superuser)
Set the superuser.

Parameters:
superuser -

get

public Object get(String name)
Generic getter. Get the property by using the name.

Specified by:
get in interface Entity
Overrides:
get in class MolgenisRole

validate

public void validate()
              throws DatabaseException
Specified by:
validate in interface Entity
Overrides:
validate in class MolgenisRole
Throws:
DatabaseException

set

public void set(Tuple tuple,
                boolean strict)
         throws Exception
Specified by:
set in interface Entity
Overrides:
set in class MolgenisRole
Throws:
Exception

toString

public String toString()
Overrides:
toString in class MolgenisRole

toString

public String toString(boolean verbose)
Overrides:
toString in class MolgenisRole

getFields

public Vector<String> getFields(boolean skipAutoIds)
Get the names of all public properties of MolgenisUser.

Specified by:
getFields in interface Entity
Overrides:
getFields in class MolgenisRole

getFields

public Vector<String> getFields()
Specified by:
getFields in interface Entity
Overrides:
getFields in class MolgenisRole

getIdField

public String getIdField()
Specified by:
getIdField in interface Entity
Overrides:
getIdField in class MolgenisRole

getLabelFields

public List<String> getLabelFields()
Specified by:
getLabelFields in interface Entity
Overrides:
getLabelFields in class MolgenisRole

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 

Specified by:
getFields in interface Entity
Overrides:
getFields in class MolgenisRole

getIdValue

public Object getIdValue()
Specified by:
getIdValue in interface Entity
Overrides:
getIdValue in class MolgenisRole

getXrefIdFieldName

public String getXrefIdFieldName(String fieldName)
Specified by:
getXrefIdFieldName in interface Entity
Overrides:
getXrefIdFieldName in class MolgenisRole

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

Specified by:
getValues in interface Entity
Overrides:
getValues in class MolgenisRole

create

public MolgenisUser create(Tuple tuple)
                    throws Exception
Specified by:
create in interface Entity
Overrides:
create in class MolgenisRole
Throws:
Exception

equals

public boolean equals(Object obj)
Overrides:
equals in class MolgenisRole

hashCode

public int hashCode()
Overrides:
hashCode in class MolgenisRole


Copyright © 2013. All Rights Reserved.