Class Subject
- java.lang.Object
-
- com.tetsuwantech.atom.database.GenericEntity
-
- com.tetsuwantech.atom.database.authentication.Subject
-
- All Implemented Interfaces:
Serializable
@Entity public class Subject extends GenericEntity
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Subject.Status
-
Field Summary
-
Fields inherited from class com.tetsuwantech.atom.database.GenericEntity
LENGTH, LONG_LENGTH, VERY_LONG_LENGTH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Authority>
getAuthorities()
String
getFamilyName()
String
getFullName()
String
getGivenName()
Instant
getJoined()
Instant
getLastLogin()
String
getPassword()
Instant
getPasswordExpires()
Subject.Status
getStatus()
String
getTimeZone()
String
getUsername()
String
getUuid()
Instant
getUuidExpires()
void
setAuthorities(Collection<Authority> authorities)
void
setFamilyName(String familyName)
void
setGivenName(String givenName)
void
setJoined(Instant joined)
void
setLastLogin(Instant lastLogin)
void
setPassword(String password)
void
setPasswordExpires(Instant passwordExpires)
void
setStatus(Subject.Status status)
void
setTimeZone(String timeZone)
void
setUsername(String username)
void
setUuid(String uuid)
void
setUuidExpires(Instant uuidExpires)
-
-
-
Constructor Detail
-
Subject
public Subject()
-
Subject
public Subject(String username)
-
-
Method Detail
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getAuthorities
public Collection<Authority> getAuthorities()
-
setAuthorities
public void setAuthorities(Collection<Authority> authorities)
-
getJoined
public Instant getJoined()
- Returns:
- the startDate
-
setJoined
public void setJoined(Instant joined)
-
getPasswordExpires
public Instant getPasswordExpires()
- Returns:
- the passwordExpires
-
setPasswordExpires
public void setPasswordExpires(Instant passwordExpires)
- Parameters:
passwordExpires
- the passwordExpires to set
-
getLastLogin
public Instant getLastLogin()
- Returns:
- the lastLogin
-
setLastLogin
public void setLastLogin(Instant lastLogin)
- Parameters:
lastLogin
- the lastLogin to set
-
getGivenName
public String getGivenName()
- Returns:
- the givenName
-
setGivenName
public void setGivenName(String givenName)
- Parameters:
givenName
- the givenName to set
-
getFamilyName
public String getFamilyName()
- Returns:
- the familyName
-
setFamilyName
public void setFamilyName(String familyName)
- Parameters:
familyName
- the familyName to set
-
getFullName
public String getFullName()
-
getTimeZone
public String getTimeZone()
-
setTimeZone
public void setTimeZone(String timeZone)
-
getUuid
public String getUuid()
- Returns:
- the UUID
-
setUuid
public void setUuid(String uuid)
- Parameters:
uuid
- the UUID to set
-
getUuidExpires
public Instant getUuidExpires()
- Returns:
- the expires
-
setUuidExpires
public void setUuidExpires(Instant uuidExpires)
- Parameters:
uuidExpires
-
-
getStatus
public Subject.Status getStatus()
- Returns:
- the status
-
setStatus
public void setStatus(Subject.Status status)
- Parameters:
status
- the status to set
-
-