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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()booleangetLabel()Returns a display label for this user.booleanhasRestriction(UserRestriction restriction) booleanbooleanbooleanbooleanbooleanbooleanvoidsetDeleted(boolean deleted) voidsetDisplayName(String displayName) voidvoidsetEmailConfirmed(boolean emailConfirmed) voidsetFirstName(String firstName) voidsetLastName(String lastName) voidsetPassword(String password) voidsetRestrictions(Collection<UserRestriction> restrictions) voidsetUsername(String username) toDto()Methods inherited from class com.foreach.across.modules.user.business.GroupedPrincipal
addGroup, buildAuthoritySet, getGroups, getParentPrincipals, hasPermission, isMemberOf, removeGroup, setGroupsMethods 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, uniquePrincipalNameMethods inherited from class com.foreach.across.modules.hibernate.business.SettableIdBasedEntity
equals, getNewEntityId, hashCode, isNew, setNewEntityIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
isDeletedin interfacecom.foreach.across.modules.hibernate.repositories.Undeletable
-
setDeleted
public void setDeleted(boolean deleted) - Specified by:
setDeletedin 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
-