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
ConstructorsConstructorDescriptionOpenIdRegistrationListener(CommandExecutor commandExecutor, SecurityManager securityManager, BusinessUnitManager businessUnitManager) -
Method Summary
Methods inherited from class CollectingAfterCommitListener
afterCommit, beforeCommit, contextDestroying, customizeMode, entityCreated, entityDeleted, entityUpdated, handleAfterCommit, setFutureCollectorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommitListener
afterFlush, priorityMethods inherited from interface ContextListener
transactionStarted
-
Constructor Details
-
OpenIdRegistrationListener
public OpenIdRegistrationListener(CommandExecutor commandExecutor, SecurityManager securityManager, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
getAfterCommitTask
- Specified by:
getAfterCommitTaskin classCollectingAfterCommitListener
-