X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Facr%2Fxml%2FDomContent.java;h=0686be7cb59b2cf63d034fc8331a1d1884e39f08;hb=091d43fef5f8e88c7081340138eb1bb33c5862a2;hp=22c15702907485cc7f773843640dd4295c3ee2dd;hpb=117eaabc86f6c09eff9a4b971ac137d51f45e953;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/acr/xml/DomContent.java b/org.argeo.cms/src/org/argeo/cms/acr/xml/DomContent.java index 22c157029..0686be7cb 100644 --- a/org.argeo.cms/src/org/argeo/cms/acr/xml/DomContent.java +++ b/org.argeo.cms/src/org/argeo/cms/acr/xml/DomContent.java @@ -69,7 +69,7 @@ public class DomContent extends AbstractContent implements ProvidedContent { if (isLocalRoot()) {// root String mountPath = provider.getMountPath(); if (mountPath != null) { - if (ContentUtils.ROOT_SLASH.equals(mountPath)) { + if (Content.ROOT_PATH.equals(mountPath)) { return CrName.root.qName(); } Content mountPoint = getSession().getMountPoint(mountPath); @@ -236,7 +236,7 @@ public class DomContent extends AbstractContent implements ProvidedContent { String mountPath = provider.getMountPath(); if (mountPath == null) return null; - if (ContentUtils.ROOT_SLASH.equals(mountPath)) { + if (Content.ROOT_PATH.equals(mountPath)) { return null; } String[] parent = ContentUtils.getParentPath(mountPath); @@ -386,7 +386,7 @@ public class DomContent extends AbstractContent implements ProvidedContent { List res = new ArrayList<>(); if (isLocalRoot()) { String mountPath = provider.getMountPath(); - if (ContentUtils.SLASH_STRING.equals(mountPath)) {// repository root + if (Content.ROOT_PATH.equals(mountPath)) {// repository root res.add(CrName.root.qName()); } else { Content mountPoint = getSession().getMountPoint(mountPath); @@ -402,7 +402,7 @@ public class DomContent extends AbstractContent implements ProvidedContent { public void addContentClasses(QName... contentClass) { if (isLocalRoot()) { String mountPath = provider.getMountPath(); - if (ContentUtils.SLASH_STRING.equals(mountPath)) {// repository root + if (Content.ROOT_PATH.equals(mountPath)) {// repository root throw new IllegalArgumentException("Cannot add content classes to repository root"); } else { Content mountPoint = getSession().getMountPoint(mountPath);