Move JCR utilities from API to CMS JCR
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / fs / CmsFsBrowser.java
index 4e0067521d4c70d7ff057b1b6f52707c004f2f79..4a7e9bd3fb8dc3cc7702af54c4a7aca83e7ffec5 100644 (file)
@@ -18,9 +18,9 @@ import javax.jcr.Node;
 import javax.jcr.Repository;
 import javax.jcr.Session;
 
-import org.argeo.api.NodeUtils;
 import org.argeo.cms.CmsException;
 import org.argeo.cms.auth.CurrentUser;
+import org.argeo.cms.jcr.CmsJcrUtils;
 import org.argeo.cms.ui.util.CmsUiUtils;
 import org.argeo.eclipse.ui.ColumnDefinition;
 import org.argeo.eclipse.ui.EclipseUiUtils;
@@ -98,7 +98,7 @@ public class CmsFsBrowser extends Composite {
                try {
                        Repository repo = currentBaseContext.getSession().getRepository();
                        session = CurrentUser.tryAs(() -> repo.login());
-                       String homepath = NodeUtils.getUserHome(session).getPath();
+                       String homepath = CmsJcrUtils.getUserHome(session).getPath();
                        return homepath;
                } catch (Exception e) {
                        throw new CmsException("Cannot retrieve Current User Home Path", e);