mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Tidy up of UserTransaction roll back on throwable as opposed to Exception
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2218 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -243,7 +243,7 @@ public abstract class BaseContentWizard extends AbstractWizardBean
|
||||
// no outcome
|
||||
outcome = null;
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
|
@@ -254,7 +254,7 @@ public abstract class InviteUsersWizard extends AbstractWizardBean
|
||||
|
||||
UIContextService.getInstance(context).notifyBeans();
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
@@ -407,7 +407,7 @@ public abstract class InviteUsersWizard extends AbstractWizardBean
|
||||
// commit the transaction
|
||||
tx.commit();
|
||||
}
|
||||
catch (Exception err)
|
||||
catch (Throwable err)
|
||||
{
|
||||
Utils.addErrorMessage(MessageFormat.format(Application.getMessage(
|
||||
FacesContext.getCurrentInstance(), Repository.ERROR_GENERIC), err.getMessage()), err );
|
||||
|
@@ -88,7 +88,7 @@ public class NewActionWizard extends BaseActionWizard
|
||||
// commit the transaction
|
||||
tx.commit();
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
|
@@ -112,7 +112,7 @@ public class NewDiscussionWizard extends NewTopicWizard
|
||||
// commit the transaction
|
||||
tx.commit();
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
@@ -159,7 +159,7 @@ public class NewDiscussionWizard extends NewTopicWizard
|
||||
// commit the transaction
|
||||
tx.commit();
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
|
@@ -215,7 +215,7 @@ public class NewRuleWizard extends BaseActionWizard
|
||||
// commit the transaction
|
||||
tx.commit();
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
|
@@ -284,7 +284,7 @@ public class NewSpaceWizard extends AbstractWizardBean
|
||||
// no outcome
|
||||
outcome = null;
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
|
@@ -537,7 +537,7 @@ public class NewUserWizard extends AbstractWizardBean
|
||||
// reset the richlist component so it rebinds to the users list
|
||||
invalidateUserList();
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception tex) {}
|
||||
|
Reference in New Issue
Block a user