Class User
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.common.AbstractDescribable
-
- ubic.gemma.model.common.auditAndSecurity.Contact
-
- ubic.gemma.model.common.auditAndSecurity.Person
-
- ubic.gemma.model.common.auditAndSecurity.User
-
- All Implemented Interfaces:
gemma.gsec.model.Securable
,gemma.gsec.model.SecuredNotChild
,gemma.gsec.model.User
,Describable
,Identifiable
public class User extends Person implements gemma.gsec.model.User
A user of the software system, who is authenticated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
User.Factory
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Important note: Two objects with the same class and non-null ID must be considered equal.Collection<UserGroup>
getGroups()
Set<JobInfo>
getJobs()
String
getPassword()
String
getPasswordHint()
String
getSignupToken()
Date
getSignupTokenDatestamp()
String
getUserName()
int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.boolean
isEnabled()
void
setEnabled(boolean enabled)
void
setGroups(Set<UserGroup> groups)
void
setJobs(Set<JobInfo> jobs)
void
setPassword(String password)
void
setPasswordHint(String passwordHint)
void
setSignupToken(String signupToken)
void
setSignupTokenDatestamp(Date signupTokenDatestamp)
-
Methods inherited from class ubic.gemma.model.common.auditAndSecurity.Person
getFullName, getLastName, setLastName
-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, getName, setDescription, setName, toString
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ubic.gemma.model.common.Identifiable
getId
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfacegemma.gsec.model.User
-
setEnabled
public void setEnabled(boolean enabled)
-
getGroups
public Collection<UserGroup> getGroups()
- Specified by:
getGroups
in interfacegemma.gsec.model.User
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfacegemma.gsec.model.User
-
setPassword
public void setPassword(String password)
-
getPasswordHint
public String getPasswordHint()
- Specified by:
getPasswordHint
in interfacegemma.gsec.model.User
-
setPasswordHint
public void setPasswordHint(String passwordHint)
-
getSignupToken
public String getSignupToken()
- Specified by:
getSignupToken
in interfacegemma.gsec.model.User
-
setSignupToken
public void setSignupToken(String signupToken)
-
getSignupTokenDatestamp
public Date getSignupTokenDatestamp()
- Specified by:
getSignupTokenDatestamp
in interfacegemma.gsec.model.User
-
setSignupTokenDatestamp
public void setSignupTokenDatestamp(Date signupTokenDatestamp)
-
getUserName
public String getUserName()
- Specified by:
getUserName
in interfacegemma.gsec.model.User
-
equals
public boolean equals(Object object)
Description copied from class:AbstractIdentifiable
Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.
-
hashCode
public int hashCode()
Description copied from class:AbstractIdentifiable
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Overrides:
hashCode
in classAbstractDescribable
-
-