* a session with a different user ID than the one searched,
* typically when a system or admin session is used.
* @param cn
- * the username of the user
+ * the name of the group
*/
public static Node getGroupHome(Session session, String cn) {
try {
return getUserHome(session, userID);
}
+ public static String getDataPath(String cn, Node node) throws RepositoryException {
+ assert node != null;
+ StringBuilder buf = new StringBuilder(NodeConstants.PATH_DATA);
+ return buf.append('/').append(cn).append('/').append(node.getSession().getWorkspace().getName())
+ .append(node.getPath()).toString();
+ }
+
// public static Node getUserProfile(Session session, String username) {
// try {
// QueryObjectModelFactory qomf = session.getWorkspace()