import javax.jcr.Session;
import javax.jcr.security.Privilege;
-import org.argeo.ArgeoException;
+import org.argeo.eclipse.ui.EclipseUiException;
import org.argeo.eclipse.ui.EclipseUiUtils;
import org.argeo.eclipse.ui.workbench.internal.users.UsersUtils;
import org.argeo.eclipse.ui.workbench.users.PickUpUserDialog;
page = new DefinePrivilegePage(userAdmin, targetPath);
addPage(page);
} catch (Exception e) {
- throw new ArgeoException("Cannot add page to wizard ", e);
+ throw new EclipseUiException("Cannot add page to wizard ", e);
}
}
JcrUtils.addPrivilege(currentSession, targetPath,
chosenUser.getName(), jcrPrivilege);
} catch (RepositoryException re) {
- throw new ArgeoException("Cannot set " + jcrPrivilege + " for "
+ throw new EclipseUiException("Cannot set " + jcrPrivilege + " for "
+ chosenUser.getName() + " on " + targetPath, re);
}
return true;