Package de.dlr.proseo.usermgr.model
Klasse User
java.lang.Object
de.dlr.proseo.usermgr.model.User
- Alle implementierten Schnittstellen:
- org.springframework.data.domain.Persistable<String>
@Entity(name="users")
public class User
extends Object
implements org.springframework.data.domain.Persistable<String>
A prosEO user (actually the user's credentials).
- Autor:
- Dr. Thomas Bassler
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungbooleanGets the user's set of authoritiesIndicates whether the user account is enabled; an account is always disabled, if its expiration date is in the pastGets the expiration date of the accountGets the group memberships for this usergetId()Gets the encrypted passwordGets the expiration date of the passwordgetQuota()Gets the data download quotaGets the user nameinthashCode()booleanisNew()(Package privat) voidSwitch "isNew" flag to indicate an existing entity after a repository call to save(…) or an instance creation by the persistence provider.voidsetAuthorities(Set<Authority> authorities) Sets the user's set of authoritiesvoidsetEnabled(Boolean enabled) Sets the enabling status of the user accountvoidsetExpirationDate(Date expirationDate) Sets the account expiration datevoidsetGroupMemberships(Set<GroupMember> groupMemberships) Sets the group memberships for this uservoidsetPassword(String password) Sets the encrypted passwordvoidsetPasswordExpirationDate(Date passwordExpirationDate) Sets the password expiration datevoidGets the data download quotavoidsetUsername(String username) Sets the user name
- 
Konstruktordetails- 
Userpublic User()
 
- 
- 
Methodendetails- 
getUsernameGets the user name- Gibt zurück:
- the user name
 
- 
setUsernameSets the user name- Parameter:
- username- the user name to set
 
- 
getPasswordGets the encrypted password- Gibt zurück:
- the password
 
- 
setPasswordSets the encrypted password- Parameter:
- password- the password to set
 
- 
getEnabledIndicates whether the user account is enabled; an account is always disabled, if its expiration date is in the past- Gibt zurück:
- true, if the user account is enabled, false otherwise
 
- 
setEnabledSets the enabling status of the user account- Parameter:
- enabled- the status to set
 
- 
getExpirationDateGets the expiration date of the account- Gibt zurück:
- the expirationDate
 
- 
setExpirationDateSets the account expiration date- Parameter:
- expirationDate- the expiration date to set
 
- 
getPasswordExpirationDateGets the expiration date of the password- Gibt zurück:
- the password expiration date
 
- 
setPasswordExpirationDateSets the password expiration date- Parameter:
- passwordExpirationDate- the password expiration date to set
 
- 
getQuotaGets the data download quota- Gibt zurück:
- a Quota object
 
- 
setQuotaGets the data download quota- Parameter:
- quota- the Quota object to set
 
- 
getAuthoritiesGets the user's set of authorities- Gibt zurück:
- a set of authorities
 
- 
setAuthoritiesSets the user's set of authorities- Parameter:
- authorities- the authorities to set
 
- 
getGroupMembershipsGets the group memberships for this user- Gibt zurück:
- the groupMemberships
 
- 
setGroupMembershipsSets the group memberships for this user- Parameter:
- groupMemberships- the groupMemberships to set
 
- 
hashCodepublic int hashCode()
- 
equals
- 
getId- Angegeben von:
- getIdin Schnittstelle- org.springframework.data.domain.Persistable<String>
 
- 
isNewpublic boolean isNew()- Angegeben von:
- isNewin Schnittstelle- org.springframework.data.domain.Persistable<String>
 
- 
markNotNewvoid markNotNew()Switch "isNew" flag to indicate an existing entity after a repository call to save(…) or an instance creation by the persistence provider. (cf. https://docs.spring.io/spring-data/jpa/docs/2.2.5.RELEASE/reference/html/#reference)
 
-