Class AbstractUserService
- java.lang.Object
-
- com.netgrif.application.engine.auth.service.AbstractUserService
-
- All Implemented Interfaces:
IUserService
- Direct Known Subclasses:
UserService
public abstract class AbstractUserService extends java.lang.Object implements IUserService
-
-
Field Summary
Fields Modifier and Type Field Description protected IAuthorityService
authorityService
protected INextGroupService
groupService
protected IProcessRoleService
processRoleService
protected UserRepository
repository
-
Constructor Summary
Constructors Constructor Description AbstractUserService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDefaultAuthorities(IUser user)
void
addDefaultRole(IUser user)
IUser
addRole(IUser user, java.lang.String roleStringId)
void
assignAuthority(java.lang.String userId, java.lang.String authorityId)
<T> java.util.List<IUser>
changeType(java.util.List<T> users)
<T> org.springframework.data.domain.Page<IUser>
changeType(org.springframework.data.domain.Page<T> users, org.springframework.data.domain.Pageable pageable)
IUser
createSystemUser()
LoggedUser
getAnonymousLogged()
protected IUser
removeRole(IUser user, ProcessRole role)
IUser
removeRole(IUser user, java.lang.String roleStringId)
void
removeRoleOfDeletedPetriNet(PetriNet net)
-
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.service.interfaces.IUserService
deleteUser, findAll, findAllActiveByProcessRoles, findAllByIds, findAllByProcessRoles, findAllCoMembers, findAnonymousByEmail, findByAuth, findByEmail, findById, getLoggedOrSystem, getLoggedUser, getSystem, resolveById, save, saveNew, saveNewAndAuthenticate, saveNewAnonymous, searchAllCoMembers, searchAllCoMembers, update
-
-
-
-
Field Detail
-
authorityService
@Autowired protected IAuthorityService authorityService
-
processRoleService
@Autowired protected IProcessRoleService processRoleService
-
groupService
@Autowired protected INextGroupService groupService
-
repository
@Autowired protected UserRepository repository
-
-
Method Detail
-
addDefaultRole
public void addDefaultRole(IUser user)
- Specified by:
addDefaultRole
in interfaceIUserService
-
addDefaultAuthorities
public void addDefaultAuthorities(IUser user)
- Specified by:
addDefaultAuthorities
in interfaceIUserService
-
assignAuthority
public void assignAuthority(java.lang.String userId, java.lang.String authorityId)
- Specified by:
assignAuthority
in interfaceIUserService
-
getAnonymousLogged
public LoggedUser getAnonymousLogged()
- Specified by:
getAnonymousLogged
in interfaceIUserService
-
addRole
public IUser addRole(IUser user, java.lang.String roleStringId)
- Specified by:
addRole
in interfaceIUserService
-
removeRole
public IUser removeRole(IUser user, java.lang.String roleStringId)
- Specified by:
removeRole
in interfaceIUserService
-
removeRole
protected IUser removeRole(IUser user, ProcessRole role)
-
removeRoleOfDeletedPetriNet
public void removeRoleOfDeletedPetriNet(PetriNet net)
- Specified by:
removeRoleOfDeletedPetriNet
in interfaceIUserService
-
createSystemUser
public IUser createSystemUser()
- Specified by:
createSystemUser
in interfaceIUserService
-
changeType
public <T> org.springframework.data.domain.Page<IUser> changeType(org.springframework.data.domain.Page<T> users, org.springframework.data.domain.Pageable pageable)
-
changeType
public <T> java.util.List<IUser> changeType(java.util.List<T> users)
-
-