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>
authorities
protected IUser
impersonated
protected java.util.Set<java.lang.String>
nextGroups
protected java.util.Set<ProcessRole>
processRoles
protected @NotNull UserState
state
-
Constructor Summary
Constructors Constructor Description AbstractUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthority(Authority authority)
void
addGroup(java.lang.String groupId)
void
addProcessRole(ProcessRole role)
IUser
getSelfOrImpersonated()
boolean
isActive()
boolean
isImpersonating()
void
removeGroup(java.lang.String groupId)
void
removeProcessRole(ProcessRole role)
Author
transformToAuthor()
-
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:
addAuthority
in interfaceIUser
-
addProcessRole
public void addProcessRole(ProcessRole role)
- Specified by:
addProcessRole
in interfaceIUser
-
removeProcessRole
public void removeProcessRole(ProcessRole role)
- Specified by:
removeProcessRole
in interfaceIUser
-
removeGroup
public void removeGroup(java.lang.String groupId)
- Specified by:
removeGroup
in interfaceIUser
-
transformToAuthor
public Author transformToAuthor()
- Specified by:
transformToAuthor
in interfaceIUser
-
isImpersonating
public boolean isImpersonating()
- Specified by:
isImpersonating
in interfaceIUser
-
getSelfOrImpersonated
public IUser getSelfOrImpersonated()
- Specified by:
getSelfOrImpersonated
in interfaceIUser
-
-