Martin Weiler created GTNPORTAL-3080:
----------------------------------------
Summary: Change PicketLinkIDMOrganizationServiceImpl.recoverFromIDMError
method to include Exception
Key: GTNPORTAL-3080
URL:
https://issues.jboss.org/browse/GTNPORTAL-3080
Project: GateIn Portal
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Identity integration
Affects Versions: 3.6.0.Beta02
Reporter: Martin Weiler
Assignee: Marek Posolda
Fix For: 3.6.0.Final
PicketlinkIDMOrganizationServiceImpl.recoverFromIDMError() method was added with
GTNPORTAL-2928 changes to have a single place to handle exceptions at the IDM layer.
As the code in the upper layer (WebUI classes) is not prepared to handle the exception,
the current implementation does a rollback of the failed transaction, and starts a new one
afterwards.
In a custom implementation using the IDM layer, it could be desirable to let the exception
bubble up the stack instead. For this, users can create subclass of
PicketlinkIDMOrganizationServiceImpl and
override method recoverFromIDMError() with their own code for recovery
error and rollback of their own transaction abstraction.
To access the original exception for some reason, the signature of recoverFromIDMError()
should be changed to include the exception, so the
signature will be "recoverFromIDMError(Exception e)" .
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira