Class User
java.lang.Object
com.foreach.across.modules.hibernate.business.SettableIdBasedEntity<T>
com.foreach.across.modules.user.business.BasicSecurityPrincipal<T>
com.foreach.across.modules.user.business.GroupedPrincipal<User>
com.foreach.across.modules.user.business.User
- All Implemented Interfaces:
com.foreach.across.modules.hibernate.business.Auditable<String>
,com.foreach.across.modules.hibernate.business.EntityWithDto<User>
,com.foreach.across.modules.hibernate.business.IdBasedEntity
,com.foreach.across.modules.hibernate.repositories.Undeletable
,com.foreach.across.modules.spring.security.infrastructure.business.SecurityPrincipal
,com.foreach.across.modules.spring.security.infrastructure.business.SecurityPrincipalHierarchy
,IdBasedSecurityPrincipal
,org.springframework.data.domain.Persistable<Long>
@NotThreadSafe
@Entity
public class User
extends GroupedPrincipal<User>
implements com.foreach.across.modules.hibernate.repositories.Undeletable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
boolean
getLabel()
Returns a display label for this user.boolean
hasRestriction
(UserRestriction restriction) boolean
boolean
boolean
boolean
boolean
boolean
void
setDeleted
(boolean deleted) void
setDisplayName
(String displayName) void
void
setEmailConfirmed
(boolean emailConfirmed) void
setFirstName
(String firstName) void
setLastName
(String lastName) void
setPassword
(String password) void
setRestrictions
(Collection<UserRestriction> restrictions) void
setUsername
(String username) toDto()
Methods inherited from class com.foreach.across.modules.user.business.GroupedPrincipal
addGroup, buildAuthoritySet, getGroups, getParentPrincipals, hasPermission, isMemberOf, removeGroup, setGroups
Methods inherited from class com.foreach.across.modules.user.business.BasicSecurityPrincipal
addRole, getAuthorities, getCreatedBy, getCreatedDate, getId, getLastModifiedBy, getLastModifiedDate, getPrincipalName, getRoles, getUserDirectory, hasPermission, hasRole, hasRole, removeRole, setCreatedBy, setCreatedDate, setId, setLastModifiedBy, setLastModifiedDate, setPrincipalName, setRoles, setUserDirectory, toString, uniquePrincipalName
Methods inherited from class com.foreach.across.modules.hibernate.business.SettableIdBasedEntity
equals, getNewEntityId, hashCode, isNew, setNewEntityId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.foreach.across.modules.spring.security.infrastructure.business.SecurityPrincipal
getSecurityPrincipalId
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getUsername
-
setUsername
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getDisplayName
-
setDisplayName
-
getEmail
-
setEmail
-
getLabel
Returns a display label for this user. Uses the display name if set, else first and last name and falls back to username if none of them are set.- Returns:
- label
-
getPassword
-
setPassword
-
getEmailConfirmed
public boolean getEmailConfirmed() -
setEmailConfirmed
public void setEmailConfirmed(boolean emailConfirmed) -
isDeleted
public boolean isDeleted()- Specified by:
isDeleted
in interfacecom.foreach.across.modules.hibernate.repositories.Undeletable
-
setDeleted
public void setDeleted(boolean deleted) - Specified by:
setDeleted
in interfacecom.foreach.across.modules.hibernate.repositories.Undeletable
-
getRestrictions
-
setRestrictions
-
hasRestriction
-
hasRestrictions
public boolean hasRestrictions() -
isAccountNonExpired
public boolean isAccountNonExpired() -
isAccountNonLocked
public boolean isAccountNonLocked() -
isCredentialsNonExpired
public boolean isCredentialsNonExpired() -
isEnabled
public boolean isEnabled() -
toDto
-