|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molgenis.util.AbstractEntity
org.molgenis.omx.ngs.NgsUser
@Entity public class NgsUser
NgsUser: An NgsUser bundles information about a user..
| 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 |
|---|
public static final String ID
public static final String USERNAME
public static final String USEREMAIL
public static final String USERROLE
public static final String USERGROUP
| Constructor Detail |
|---|
public NgsUser()
public NgsUser(NgsUser copyMe)
throws Exception
Exception| Method Detail |
|---|
public static Query<? extends NgsUser> query(Database db)
public static List<? extends NgsUser> find(Database db,
QueryRule... rules)
throws DatabaseException
DatabaseException
public static NgsUser findById(Database db,
Integer id)
throws DatabaseException
DatabaseException
public static NgsUser findByUserName(Database db,
String userName)
throws DatabaseException
DatabaseExceptionpublic Integer getId()
getId in interface Autoidpublic void setId(Integer id)
setId in interface Autoidid - public String getUserName()
@Deprecated public String getUserName(Database db)
public void setUserName(String userName)
userName - public String getUserEmail()
@Deprecated public String getUserEmail(Database db)
public void setUserEmail(String userEmail)
userEmail - public String getUserRole()
@Deprecated public String getUserRole(Database db)
public void setUserRole(String userRole)
userRole - public String getUserRoleLabel()
public List<ValueLabel> getUserRoleOptions()
public String getUserGroup()
@Deprecated public String getUserGroup(Database db)
public void setUserGroup(String userGroup)
userGroup - public String getUserGroupLabel()
public List<ValueLabel> getUserGroupOptions()
public Object get(String name)
get in interface Entity
public void validate()
throws DatabaseException
validate in interface EntityDatabaseException
public void set(Tuple tuple,
boolean strict)
throws Exception
set in interface EntityExceptionpublic String toString()
toString in class Objectpublic String toString(boolean verbose)
public Vector<String> getFields(boolean skipAutoIds)
getFields in interface Entitypublic Vector<String> getFields()
getFields in interface Entitypublic String getIdField()
getIdField in interface Entitypublic List<String> getLabelFields()
getLabelFields in interface Entity@Deprecated public String getFields(String sep)
getFields in interface Entitypublic Object getIdValue()
getIdValue in interface Entitypublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface Entity@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class AbstractEntity
public NgsUser create(Tuple tuple)
throws Exception
create in interface EntityExceptionpublic Collection<Project> getProjectAnalistProjectCollection()
public Collection<Project> getProjectAnalistProjectCollection(Database db)
public void setProjectAnalistProjectCollection(Collection<Project> collection)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||