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:
Securable, SecuredNotChild, User, Describable, Identifiable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant note: The name should be compared in a case-insensitive manner.Timestamp of the admin soft-delete; null when the account is active.Username of the admin who soft-deleted this account; null when active.getJobs()inthashCode()The default hash code for a describable is based on its name, ignoring case.booleanvoidsetDeletedAt(Date deletedAt) voidsetDeletedBy(String deletedBy) voidsetEnabled(boolean enabled) voidvoidvoidsetPassword(String password) voidsetPasswordHint(String passwordHint) voidsetSignupToken(String signupToken) voidsetSignupTokenDatestamp(Date signupTokenDatestamp) voidsetUserName(String userName) The username is immutable.Methods inherited from class Person
getFullName, getLastName, setLastNameMethods inherited from class AbstractDescribable
getDescription, getName, setDescription, setName, toStringMethods inherited from class AbstractIdentifiable
getId, setIdMethods inherited from interface Identifiable
getId
-
Constructor Details
-
User
public User()
-
-
Method Details
-
isEnabled
-
setEnabled
public void setEnabled(boolean enabled) -
getJobs
-
setJobs
-
getGroups
-
setGroups
-
getPassword
- Specified by:
getPasswordin interfaceUser
-
setPassword
-
getPasswordHint
- Specified by:
getPasswordHintin interfaceUser
-
setPasswordHint
-
getSignupToken
- Specified by:
getSignupTokenin interfaceUser
-
setSignupToken
-
getSignupTokenDatestamp
- Specified by:
getSignupTokenDatestampin interfaceUser
-
setSignupTokenDatestamp
-
getDeletedAt
Timestamp of the admin soft-delete; null when the account is active. Hard-deleting users is forbidden — ACL sids, audit-event authors, and other references would dangle. SeeV16__user_soft_delete.sql. -
setDeletedAt
-
getDeletedBy
Username of the admin who soft-deleted this account; null when active. Free-form string (not an FK) so admin churn doesn't cascade. -
setDeletedBy
-
getUserName
- Specified by:
getUserNamein interfaceUser
-
setUserName
The username is immutable. See theupdate="false"field in the Hibernate mapping. -
equals
Description copied from class:AbstractDescribableImportant note: The name should be compared in a case-insensitive manner. You can useDescribableUtils.equalsByName(Describable, Describable)to get the correct behavior.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:AbstractDescribableThe default hash code for a describable is based on its name, ignoring case.Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.
- Overrides:
hashCodein classAbstractDescribable
-