Package ch.tocco.nice2.sso.impl.listener
Class OpenIdRegistrationListener
java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterCommitListener
ch.tocco.nice2.sso.impl.listener.OpenIdRegistrationListener
- All Implemented Interfaces:
ContextListener
,EntityListener
,CommitListener
,EventListener
This listener sets the sso fields (sso_subject and relOpenid_provider) according to the corresponding values
on the linked user.
This can be used to be able to set openid information on registration (directly setting it is not possible as the principal is created at the end of the registration transaction in a collecting entity listener)
-
Constructor Summary
ConstructorDescriptionOpenIdRegistrationListener
(CommandExecutor commandExecutor, SecurityManager securityManager, BusinessUnitManager businessUnitManager) -
Method Summary
Methods inherited from class ch.tocco.nice2.persist.core.api.util.CollectingAfterCommitListener
afterCommit, beforeCommit, contextDestroying, customizeMode, entityCreated, entityDeleted, entityUpdated, handleAfterCommit, setFutureCollector
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.util.CommitListener
afterFlush, priority
Methods inherited from interface ch.tocco.nice2.persist.core.api.ContextListener
transactionStarted
-
Constructor Details
-
OpenIdRegistrationListener
public OpenIdRegistrationListener(CommandExecutor commandExecutor, SecurityManager securityManager, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
getAfterCommitTask
- Specified by:
getAfterCommitTask
in classCollectingAfterCommitListener
-