Class GuiProfiledPrincipalManagerImpl
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl
-
- All Implemented Interfaces:
GuiProfiledPrincipalManager,CacheInvalidationListener,CacheListener,MidPointPrincipalManager,OwnerResolver,org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware,org.springframework.security.core.userdetails.UserDetailsService
@Service("guiProfiledPrincipalManager") public class GuiProfiledPrincipalManagerImpl extends Object implements CacheListener, GuiProfiledPrincipalManager, org.springframework.security.core.userdetails.UserDetailsService, 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
-
-
-
Method Detail
-
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Specified by:
setMessageSourcein interfaceorg.springframework.context.MessageSourceAware
-
initialize
@PostConstruct public void initialize()
-
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
-
getEventSpecifications
public Collection<CacheInvalidationEventSpecification> getEventSpecifications()
- Specified by:
getEventSpecificationsin interfaceCacheInvalidationListener- Specified by:
getEventSpecificationsin interfaceCacheListener
-
invalidate
public <O extends ObjectType> void invalidate(Class<O> type, String oid, boolean clusterwide, CacheInvalidationContext context)
Description copied from interface:CacheInvalidationListenerInvalidates given object(s) in all relevant caches.- Specified by:
invalidatein interfaceCacheInvalidationListener- Parameters:
type- Type of object (null means all types).oid- OID of object (null means all object(s) of given type(s)).clusterwide- Whether to distribute this event clusterwide.context- Context of the invalidation request (optional).
-
refreshCompiledProfile
@NotNull public @NotNull CompiledGuiProfile refreshCompiledProfile(GuiProfiledPrincipal principal)
- Specified by:
refreshCompiledProfilein interfaceGuiProfiledPrincipalManager
-
-