Interface IImpersonationService
-
- All Known Implementing Classes:
ImpersonationService
public interface IImpersonationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IUser
applyRolesAndAuthorities(IUser impersonated, java.lang.String impersonatorId, java.util.List<Case> configs)
LoggedUser
endImpersonation()
LoggedUser
endImpersonation(LoggedUser impersonator)
java.util.Optional<Impersonator>
findImpersonator(java.lang.String impersonatorId)
LoggedUser
impersonateByConfig(java.lang.String configId)
LoggedUser
impersonateUser(java.lang.String impersonatedId)
void
onSessionDestroy(LoggedUser impersonator)
IUser
reloadImpersonatedUserRoles(IUser impersonated, java.lang.String impersonatorId)
void
removeImpersonator(java.lang.String impersonatorId)
void
removeImpersonatorByImpersonated(java.lang.String impersonatedId)
-
-
-
Method Detail
-
impersonateUser
LoggedUser impersonateUser(java.lang.String impersonatedId) throws ImpersonatedUserHasSessionException
-
impersonateByConfig
LoggedUser impersonateByConfig(java.lang.String configId) throws ImpersonatedUserHasSessionException
-
findImpersonator
java.util.Optional<Impersonator> findImpersonator(java.lang.String impersonatorId)
-
removeImpersonatorByImpersonated
void removeImpersonatorByImpersonated(java.lang.String impersonatedId)
-
removeImpersonator
void removeImpersonator(java.lang.String impersonatorId)
-
endImpersonation
LoggedUser endImpersonation()
-
endImpersonation
LoggedUser endImpersonation(LoggedUser impersonator)
-
onSessionDestroy
void onSessionDestroy(LoggedUser impersonator)
-
reloadImpersonatedUserRoles
IUser reloadImpersonatedUserRoles(IUser impersonated, java.lang.String impersonatorId)
-
-