]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/wizards/ChangeRightsWizard.java
Adapt to changes in Commons
[gpl/argeo-slc.git] / org.argeo.slc.client.ui.dist / src / org / argeo / slc / client / ui / dist / wizards / ChangeRightsWizard.java
index 99dd8e1438908bab779c41d2225ade963d0e76af..a3e70b9c3483192f8fb0b3306de85252d0aa5e2f 100644 (file)
@@ -18,8 +18,8 @@ package org.argeo.slc.client.ui.dist.wizards;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 
-import org.argeo.ArgeoException;
 import org.argeo.jcr.JcrUtils;
+import org.argeo.slc.SlcException;
 import org.eclipse.jface.wizard.Wizard;
 
 /**
@@ -44,7 +44,7 @@ public class ChangeRightsWizard extends Wizard {
                        page = new ChooseRightsPage();
                        addPage(page);
                } catch (Exception e) {
-                       throw new ArgeoException("Cannot add page to wizard ", e);
+                       throw new SlcException("Cannot add page to wizard ", e);
                }
        }
 
@@ -56,7 +56,7 @@ public class ChangeRightsWizard extends Wizard {
                        JcrUtils.addPrivilege(currentSession, "/", page.getGroupName(),
                                        page.getAuthTypeStr());
                } catch (RepositoryException re) {
-                       throw new ArgeoException(
+                       throw new SlcException(
                                        "Unexpected error while setting privileges", re);
                }
                return true;