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()GuiProfiledPrincipalgetPrincipal(PrismObject<? extends FocusType> focus)GuiProfiledPrincipalgetPrincipal(PrismObject<? extends FocusType> focus, AuthorizationTransformer authorizationTransformer, OperationResult result)GuiProfiledPrincipalgetPrincipal(String username, Class<? extends FocusType> clazz)GuiProfiledPrincipalgetPrincipalByOid(String oid, Class<? extends FocusType> clazz)org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username)org.springframework.security.core.userdetails.UserDetailsmapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)voidmapUserToContext(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)voidsetMessageSource(org.springframework.context.MessageSource messageSource)voidterminateLocalSessions(TerminateSessionEvent terminateSessionEvent)voidupdateFocus(MidPointPrincipal principal, Collection<? extends ItemDelta<?,?>> itemDeltas)
-
-
-
Method Detail
-
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Specified by:
setMessageSourcein interfaceorg.springframework.context.MessageSourceAware
-
getPrincipal
public GuiProfiledPrincipal getPrincipal(String username, Class<? extends FocusType> clazz) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
- Specified by:
getPrincipalin interfaceGuiProfiledPrincipalManager- Specified by:
getPrincipalin interfaceMidPointPrincipalManager- Throws:
ObjectNotFoundExceptionSchemaExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
getPrincipalByOid
public GuiProfiledPrincipal getPrincipalByOid(String oid, Class<? extends FocusType> clazz) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
- Specified by:
getPrincipalByOidin interfaceGuiProfiledPrincipalManager- Specified by:
getPrincipalByOidin interfaceMidPointPrincipalManager- Throws:
ObjectNotFoundExceptionSchemaExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
getPrincipal
public GuiProfiledPrincipal getPrincipal(PrismObject<? extends FocusType> focus) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
- Specified by:
getPrincipalin interfaceGuiProfiledPrincipalManager- Specified by:
getPrincipalin interfaceMidPointPrincipalManager- Throws:
SchemaExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
getPrincipal
public GuiProfiledPrincipal getPrincipal(PrismObject<? extends FocusType> focus, AuthorizationTransformer authorizationTransformer, OperationResult result) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
- Specified by:
getPrincipalin interfaceGuiProfiledPrincipalManager- Specified by:
getPrincipalin interfaceMidPointPrincipalManager- Throws:
SchemaExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
getLocalLoggedInPrincipals
public List<UserSessionManagementType> getLocalLoggedInPrincipals()
- Specified by:
getLocalLoggedInPrincipalsin interfaceGuiProfiledPrincipalManager
-
terminateLocalSessions
public void terminateLocalSessions(TerminateSessionEvent terminateSessionEvent)
- Specified by:
terminateLocalSessionsin interfaceGuiProfiledPrincipalManager
-
updateFocus
public void updateFocus(MidPointPrincipal principal, Collection<? extends ItemDelta<?,?>> itemDeltas)
- Specified by:
updateFocusin interfaceGuiProfiledPrincipalManager- Specified by:
updateFocusin interfaceMidPointPrincipalManager
-
resolveOwner
public <F extends FocusType,O extends ObjectType> PrismObject<F> resolveOwner(PrismObject<O> object)
- Specified by:
resolveOwnerin interfaceOwnerResolver
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
loadUserByUsernamein 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:
mapUserFromContextin 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:
mapUserToContextin interfaceorg.springframework.security.ldap.userdetails.UserDetailsContextMapper
-
-