import org.argeo.jcr.Jcr;
/** Utilities around documents. */
public class CmsFsUtils {
// TODO make it more robust and configurable
import org.argeo.jcr.Jcr;
/** Utilities around documents. */
public class CmsFsUtils {
// TODO make it more robust and configurable
public static Node getNode(Repository repository, Path path) {
String workspaceName = path.getNameCount() == 0 ? baseWorkspaceName : path.getName(0).toString();
public static Node getNode(Repository repository, Path path) {
String workspaceName = path.getNameCount() == 0 ? baseWorkspaceName : path.getName(0).toString();
- uri = new URI(NodeConstants.SCHEME_NODE, null, fullPath, null);
+ uri = new URI(CmsConstants.SCHEME_NODE, null, fullPath, null);
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Cannot interpret " + fullPath + " as an URI", e);
}
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Cannot interpret " + fullPath + " as an URI", e);
}