]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.server.jcr/src/org/argeo/jcr/UserJcrUtils.java
Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.server.jcr / src / org / argeo / jcr / UserJcrUtils.java
index 1758802f85679c7334f1d60c24d7b68f82b06020..95269475eb836ceef974e7eea07e810d066ebd76 100644 (file)
@@ -25,9 +25,11 @@ import javax.jcr.query.qom.QueryObjectModelFactory;
 import javax.jcr.query.qom.Selector;
 import javax.jcr.query.qom.StaticOperand;
 
-import org.argeo.ArgeoException;
-
-/** Utilities related to the user home and properties based on Argeo JCR model. */
+/**
+ * Utilities related to the user home and properties based on Argeo JCR model.
+ * Do not use anymore. Does not fit with current security model
+ */
+@Deprecated
 public class UserJcrUtils {
        /** The home base path. Not yet configurable */
        public final static String DEFAULT_HOME_BASE_PATH = "/home";
@@ -61,7 +63,7 @@ public class UserJcrUtils {
                        Query query = qomf.createQuery(userHomeSel, constraint, null, null);
                        return JcrUtils.querySingleNode(query);
                } catch (RepositoryException e) {
-                       throw new ArgeoException("Cannot find home for user " + username, e);
+                       throw new ArgeoJcrException("Cannot find home for user " + username, e);
                }
        }
 
@@ -80,7 +82,7 @@ public class UserJcrUtils {
                        Query query = qomf.createQuery(userHomeSel, constraint, null, null);
                        return JcrUtils.querySingleNode(query);
                } catch (RepositoryException e) {
-                       throw new ArgeoException(
+                       throw new ArgeoJcrException(
                                        "Cannot find profile for user " + username, e);
                }
        }