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";
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);
}
}
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);
}
}