org.molgenis.omx.ngs
Class NgsUser

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.ngs.NgsUser
All Implemented Interfaces:
Serializable, Autoid, Entity

@Entity
public class NgsUser
extends AbstractEntity
implements Autoid

NgsUser: An NgsUser bundles information about a user..

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String ID
           
static String USEREMAIL
           
static String USERGROUP
           
static String USERNAME
           
static String USERROLE
           
 
Constructor Summary
NgsUser()
           
NgsUser(NgsUser copyMe)
          copy constructor
 
Method Summary
 NgsUser create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends NgsUser> find(Database db, QueryRule... rules)
          Shorthand for db.find(NgsUser.class, org.molgenis.framework.db.QueryRule ...
static NgsUser findById(Database db, Integer id)
           
static NgsUser findByUserName(Database db, String userName)
           
 Object get(String name)
          Generic getter.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of NgsUser.
 String getFields(String sep)
          Deprecated. 
 Integer getId()
          Get the automatically generated internal id, only for internal use..
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 Collection<Project> getProjectAnalistProjectCollection()
           
 Collection<Project> getProjectAnalistProjectCollection(Database db)
           
 String getUserEmail()
          Get the The email of a user..
 String getUserEmail(Database db)
          Deprecated. 
 String getUserGroup()
          Get the The group a user belongs to..
 String getUserGroup(Database db)
          Deprecated. 
 String getUserGroupLabel()
          Get tha label for enum UserGroup.
 List<ValueLabel> getUserGroupOptions()
          UserGroup is enum.
 String getUserName()
          Get the The name of a user.
 String getUserName(Database db)
          Deprecated. 
 String getUserRole()
          Get the The role the user has..
 String getUserRole(Database db)
          Deprecated. 
 String getUserRoleLabel()
          Get tha label for enum UserRole.
 List<ValueLabel> getUserRoleOptions()
          UserRole is enum.
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends NgsUser> query(Database db)
          Shorthand for db.query(NgsUser.class).
 void set(Tuple tuple, boolean strict)
           
 void setId(Integer id)
          Set the automatically generated internal id, only for internal use..
 void setProjectAnalistProjectCollection(Collection<Project> collection)
           
 void setUserEmail(String userEmail)
          Set the The email of a user..
 void setUserGroup(String userGroup)
          Set the The group a user belongs to..
 void setUserName(String userName)
          Set the The name of a user.
 void setUserRole(String userRole)
          Set the The role the user has..
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
Methods inherited from class org.molgenis.util.AbstractEntity
get__Type, get__TypeLabel, get__TypeOptions, getLabelValue, getValues, isObjectRepresentation, isReadonly, set__Type, 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

ID

public static final String ID
See Also:
Constant Field Values

USERNAME

public static final String USERNAME
See Also:
Constant Field Values

USEREMAIL

public static final String USEREMAIL
See Also:
Constant Field Values

USERROLE

public static final String USERROLE
See Also:
Constant Field Values

USERGROUP

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

NgsUser

public NgsUser()

NgsUser

public NgsUser(NgsUser copyMe)
        throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

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

findByUserName

public static NgsUser findByUserName(Database db,
                                     String userName)
                              throws DatabaseException
Throws:
DatabaseException

getId

public Integer getId()
Get the automatically generated internal id, only for internal use..

Specified by:
getId in interface Autoid
Returns:
id.

setId

public void setId(Integer id)
Set the automatically generated internal id, only for internal use..

Specified by:
setId in interface Autoid
Parameters:
id -

getUserName

public String getUserName()
Get the The name of a user.

Returns:
userName.

getUserName

@Deprecated
public String getUserName(Database db)
Deprecated. 


setUserName

public void setUserName(String userName)
Set the The name of a user.

Parameters:
userName -

getUserEmail

public String getUserEmail()
Get the The email of a user..

Returns:
userEmail.

getUserEmail

@Deprecated
public String getUserEmail(Database db)
Deprecated. 


setUserEmail

public void setUserEmail(String userEmail)
Set the The email of a user..

Parameters:
userEmail -

getUserRole

public String getUserRole()
Get the The role the user has..

Returns:
userRole.

getUserRole

@Deprecated
public String getUserRole(Database db)
Deprecated. 


setUserRole

public void setUserRole(String userRole)
Set the The role the user has..

Parameters:
userRole -

getUserRoleLabel

public String getUserRoleLabel()
Get tha label for enum UserRole.


getUserRoleOptions

public List<ValueLabel> getUserRoleOptions()
UserRole is enum. This method returns all available enum options.


getUserGroup

public String getUserGroup()
Get the The group a user belongs to..

Returns:
userGroup.

getUserGroup

@Deprecated
public String getUserGroup(Database db)
Deprecated. 


setUserGroup

public void setUserGroup(String userGroup)
Set the The group a user belongs to..

Parameters:
userGroup -

getUserGroupLabel

public String getUserGroupLabel()
Get tha label for enum UserGroup.


getUserGroupOptions

public List<ValueLabel> getUserGroupOptions()
UserGroup is enum. This method returns all available enum options.


get

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

Specified by:
get in interface Entity

validate

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

set

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

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(boolean verbose)

getFields

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

Specified by:
getFields in interface Entity

getFields

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

getIdField

public String getIdField()
Specified by:
getIdField in interface Entity

getLabelFields

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

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 

Specified by:
getFields in interface Entity

getIdValue

public Object getIdValue()
Specified by:
getIdValue in interface Entity

getXrefIdFieldName

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

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

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

create

public NgsUser create(Tuple tuple)
               throws Exception
Specified by:
create in interface Entity
Throws:
Exception

getProjectAnalistProjectCollection

public Collection<Project> getProjectAnalistProjectCollection()

getProjectAnalistProjectCollection

public Collection<Project> getProjectAnalistProjectCollection(Database db)

setProjectAnalistProjectCollection

public void setProjectAnalistProjectCollection(Collection<Project> collection)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.