Class GuiProfiledPrincipalManagerImpl
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl
-
- All Implemented Interfaces:
GuiProfiledPrincipalManager
,MidPointPrincipalManager
,OwnerResolver
,org.springframework.beans.factory.Aware
,org.springframework.context.MessageSourceAware
,org.springframework.security.core.userdetails.UserDetailsService
,org.springframework.security.ldap.userdetails.UserDetailsContextMapper
@Service("guiProfiledPrincipalManager") public class GuiProfiledPrincipalManagerImpl extends Object implements GuiProfiledPrincipalManager, org.springframework.security.core.userdetails.UserDetailsService, org.springframework.security.ldap.userdetails.UserDetailsContextMapper, org.springframework.context.MessageSourceAware
- Author:
- lazyman, semancik
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.security.api.MidPointPrincipalManager
DOT_CLASS, OPERATION_GET_PRINCIPAL, OPERATION_UPDATE_USER
-
-
Constructor Summary
Constructors Constructor Description GuiProfiledPrincipalManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UserSessionManagementType>
getLocalLoggedInPrincipals()
GuiProfiledPrincipal
getPrincipal(PrismObject<? extends FocusType> focus)
GuiProfiledPrincipal
getPrincipal(PrismObject<? extends FocusType> focus, AuthorizationTransformer authorizationTransformer, OperationResult result)
GuiProfiledPrincipal
getPrincipal(String username, Class<? extends FocusType> clazz)
GuiProfiledPrincipal
getPrincipalByOid(String oid, Class<? extends FocusType> clazz)
org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(String username)
org.springframework.security.core.userdetails.UserDetails
mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
void
mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx)
<F extends FocusType,O extends ObjectType>
PrismObject<F>resolveOwner(PrismObject<O> object)
void
setMessageSource(org.springframework.context.MessageSource messageSource)
void
terminateLocalSessions(TerminateSessionEvent terminateSessionEvent)
void
updateFocus(MidPointPrincipal principal, Collection<? extends ItemDelta<?,?>> itemDeltas)
-
-
-
Method Detail
-
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Specified by:
setMessageSource
in interfaceorg.springframework.context.MessageSourceAware
-
getPrincipal
public GuiProfiledPrincipal getPrincipal(String username, Class<? extends FocusType> clazz) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
- Specified by:
getPrincipal
in interfaceGuiProfiledPrincipalManager
- Specified by:
getPrincipal
in interfaceMidPointPrincipalManager
- Throws:
ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
ExpressionEvaluationException
-
getPrincipalByOid
public GuiProfiledPrincipal getPrincipalByOid(String oid, Class<? extends FocusType> clazz) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
- Specified by:
getPrincipalByOid
in interfaceGuiProfiledPrincipalManager
- Specified by:
getPrincipalByOid
in interfaceMidPointPrincipalManager
- Throws:
ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
ExpressionEvaluationException
-
getPrincipal
public GuiProfiledPrincipal getPrincipal(PrismObject<? extends FocusType> focus) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
- Specified by:
getPrincipal
in interfaceGuiProfiledPrincipalManager
- Specified by:
getPrincipal
in interfaceMidPointPrincipalManager
- Throws:
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
ExpressionEvaluationException
-
getPrincipal
public GuiProfiledPrincipal getPrincipal(PrismObject<? extends FocusType> focus, AuthorizationTransformer authorizationTransformer, OperationResult result) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
- Specified by:
getPrincipal
in interfaceGuiProfiledPrincipalManager
- Specified by:
getPrincipal
in interfaceMidPointPrincipalManager
- Throws:
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
ExpressionEvaluationException
-
getLocalLoggedInPrincipals
public List<UserSessionManagementType> getLocalLoggedInPrincipals()
- Specified by:
getLocalLoggedInPrincipals
in interfaceGuiProfiledPrincipalManager
-
terminateLocalSessions
public void terminateLocalSessions(TerminateSessionEvent terminateSessionEvent)
- Specified by:
terminateLocalSessions
in interfaceGuiProfiledPrincipalManager
-
updateFocus
public void updateFocus(MidPointPrincipal principal, Collection<? extends ItemDelta<?,?>> itemDeltas)
- Specified by:
updateFocus
in interfaceGuiProfiledPrincipalManager
- Specified by:
updateFocus
in interfaceMidPointPrincipalManager
-
resolveOwner
public <F extends FocusType,O extends ObjectType> PrismObject<F> resolveOwner(PrismObject<O> object)
- Specified by:
resolveOwner
in interfaceOwnerResolver
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
mapUserFromContext
public org.springframework.security.core.userdetails.UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
- Specified by:
mapUserFromContext
in interfaceorg.springframework.security.ldap.userdetails.UserDetailsContextMapper
-
mapUserToContext
public void mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx)
- Specified by:
mapUserToContext
in interfaceorg.springframework.security.ldap.userdetails.UserDetailsContextMapper
-
-