package org.argeo.cms.jcr.internal;
-import static org.argeo.api.DataModelNamespace.CMS_DATA_MODEL_NAMESPACE;
+import static org.argeo.cms.osgi.DataModelNamespace.CMS_DATA_MODEL_NAMESPACE;
import static org.osgi.service.http.whiteboard.HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_INIT_PARAM_PREFIX;
import java.io.File;
import org.apache.jackrabbit.commons.cnd.CndImporter;
import org.apache.jackrabbit.core.RepositoryContext;
import org.apache.jackrabbit.core.RepositoryImpl;
-import org.argeo.api.DataModelNamespace;
import org.argeo.api.NodeConstants;
import org.argeo.api.NodeDeployment;
-import org.argeo.api.NodeUtils;
import org.argeo.api.security.CryptoKeyring;
import org.argeo.api.security.Keyring;
import org.argeo.cms.ArgeoNames;
import org.argeo.cms.internal.jcr.JcrInitUtils;
+import org.argeo.cms.jcr.CmsJcrUtils;
import org.argeo.cms.jcr.internal.servlet.CmsRemotingServlet;
import org.argeo.cms.jcr.internal.servlet.CmsWebDavServlet;
import org.argeo.cms.jcr.internal.servlet.JcrHttpUtils;
+import org.argeo.cms.osgi.DataModelNamespace;
import org.argeo.jcr.Jcr;
import org.argeo.jcr.JcrException;
import org.argeo.jcr.JcrUtils;
Session sourceSession = null;
try {
try {
- targetSession = NodeUtils.openDataAdminSession(deployedNodeRepository, workspaceName);
+ targetSession = CmsJcrUtils.openDataAdminSession(deployedNodeRepository, workspaceName);
} catch (IllegalArgumentException e) {// no such workspace
- Session adminSession = NodeUtils.openDataAdminSession(deployedNodeRepository, null);
+ Session adminSession = CmsJcrUtils.openDataAdminSession(deployedNodeRepository, null);
try {
adminSession.getWorkspace().createWorkspace(workspaceName);
} finally {
Jcr.logout(adminSession);
}
- targetSession = NodeUtils.openDataAdminSession(deployedNodeRepository, workspaceName);
+ targetSession = CmsJcrUtils.openDataAdminSession(deployedNodeRepository, workspaceName);
}
sourceSession = initRepository.login(workspaceName);
// JcrUtils.copyWorkspaceXml(sourceSession, targetSession);