X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.server.jcr%2Fsrc%2Forg%2Fargeo%2Fjcr%2Fsecurity%2FJcrAuthorizations.java;h=9ad249252e768f9e7f12f1ee8a0ebe7bf6f8d4d3;hb=8260f4470f514ea347ca53f5b4dfc632c4a4de66;hp=491f8a6fe4a4b36f07f9622462c62c09665a9a0d;hpb=cf3a914f6fbf31b43be5cb86e54d05e8543be6a9;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.server.jcr/src/org/argeo/jcr/security/JcrAuthorizations.java b/org.argeo.server.jcr/src/org/argeo/jcr/security/JcrAuthorizations.java index 491f8a6fe..9ad249252 100644 --- a/org.argeo.server.jcr/src/org/argeo/jcr/security/JcrAuthorizations.java +++ b/org.argeo.server.jcr/src/org/argeo/jcr/security/JcrAuthorizations.java @@ -27,7 +27,7 @@ import javax.jcr.Session; import javax.jcr.security.AccessControlManager; import javax.jcr.security.Privilege; -import org.argeo.ArgeoException; +import org.argeo.jcr.ArgeoJcrException; import org.argeo.jcr.JcrUtils; import org.argeo.util.security.SimplePrincipal; @@ -70,7 +70,7 @@ public class JcrAuthorizations implements Runnable { } } catch (Exception e) { JcrUtils.discardQuietly(session); - throw new ArgeoException( + throw new ArgeoJcrException( "Cannot set authorizations " + principalPrivileges + " on workspace " + currentWorkspace, e); } finally { @@ -85,7 +85,7 @@ public class JcrAuthorizations implements Runnable { initAuthorizations(session); } catch (Exception e) { JcrUtils.discardQuietly(session); - throw new ArgeoException("Cannot set authorizations " + throw new ArgeoJcrException("Cannot set authorizations " + principalPrivileges + " on repository " + repository, e); } finally { JcrUtils.logoutQuietly(session); @@ -106,7 +106,7 @@ public class JcrAuthorizations implements Runnable { String path = null; int slashIndex = privileges.indexOf('/'); if (slashIndex == 0) { - throw new ArgeoException("Privilege " + privileges + throw new ArgeoJcrException("Privilege " + privileges + " badly formatted it starts with /"); } else if (slashIndex > 0) { path = privileges.substring(slashIndex); @@ -192,7 +192,7 @@ public class JcrAuthorizations implements Runnable { // + session.getWorkspace().getName() + "'"); // } // } else { - // throw new ArgeoException("Don't know how to apply privileges " + // throw new ArgeoJcrException("Don't know how to apply privileges " // + privs + " to " + principal + " on " + path // + " from workspace '" + session.getWorkspace().getName() // + "'");