Class AbstractUser
- java.lang.Object
-
- com.netgrif.application.engine.auth.domain.AbstractUser
-
- All Implemented Interfaces:
IUser,java.io.Serializable
- Direct Known Subclasses:
User
public abstract class AbstractUser extends java.lang.Object implements IUser, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Authority>authoritiesprotected IUserimpersonatedprotected java.util.Set<java.lang.String>nextGroupsprotected java.util.Set<ProcessRole>processRolesprotected @NotNull UserStatestate
-
Constructor Summary
Constructors Constructor Description AbstractUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthority(Authority authority)voidaddGroup(java.lang.String groupId)voidaddProcessRole(ProcessRole role)IUsergetSelfOrImpersonated()booleanisActive()booleanisImpersonating()voidremoveGroup(java.lang.String groupId)voidremoveProcessRole(ProcessRole role)AuthortransformToAuthor()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netgrif.application.engine.auth.domain.IUser
getAuthorities, getAvatar, getEmail, getFullName, getImpersonated, getName, getNextGroups, getProcessRoles, getState, getStringId, getSurname, getTelNumber, setAuthorities, setEmail, setImpersonated, setName, setNextGroups, setProcessRoles, setState, setSurname, transformToLoggedUser
-
-
-
-
Field Detail
-
state
@NotNull protected @NotNull UserState state
-
authorities
protected java.util.Set<Authority> authorities
-
processRoles
protected java.util.Set<ProcessRole> processRoles
-
nextGroups
protected java.util.Set<java.lang.String> nextGroups
-
impersonated
protected IUser impersonated
-
-
Method Detail
-
addAuthority
public void addAuthority(Authority authority)
- Specified by:
addAuthorityin interfaceIUser
-
addProcessRole
public void addProcessRole(ProcessRole role)
- Specified by:
addProcessRolein interfaceIUser
-
removeProcessRole
public void removeProcessRole(ProcessRole role)
- Specified by:
removeProcessRolein interfaceIUser
-
removeGroup
public void removeGroup(java.lang.String groupId)
- Specified by:
removeGroupin interfaceIUser
-
transformToAuthor
public Author transformToAuthor()
- Specified by:
transformToAuthorin interfaceIUser
-
isImpersonating
public boolean isImpersonating()
- Specified by:
isImpersonatingin interfaceIUser
-
getSelfOrImpersonated
public IUser getSelfOrImpersonated()
- Specified by:
getSelfOrImpersonatedin interfaceIUser
-
-