Class AbstractUser
- java.lang.Object
-
- com.netgrif.application.engine.auth.domain.AbstractUser
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Authority>authoritiesprotected 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)booleanisActive()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, getName, getNextGroups, getProcessRoles, getState, getStringId, getSurname, getTelNumber, setAuthorities, setEmail, 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
-
-
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
-
-