X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.app.jcr%2Fsrc%2Forg%2Fargeo%2Fapp%2Fjcr%2FJcrEntityDefinition.java;h=8795d02d7f63c341192455697feaa31e1c42d97a;hb=3283994ed0bb41099776e8f6ec9b3fbcbc767a84;hp=e76315c8d3106f65afc2dec9389831ff7808da6f;hpb=1eaec4a7690f29973a712a9000c010a37f725ea1;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.jcr/src/org/argeo/app/jcr/JcrEntityDefinition.java b/org.argeo.app.jcr/src/org/argeo/app/jcr/JcrEntityDefinition.java index e76315c..8795d02 100644 --- a/org.argeo.app.jcr/src/org/argeo/app/jcr/JcrEntityDefinition.java +++ b/org.argeo.app.jcr/src/org/argeo/app/jcr/JcrEntityDefinition.java @@ -2,7 +2,6 @@ package org.argeo.app.jcr; import java.util.Map; -import javax.jcr.Node; import javax.jcr.Repository; import javax.jcr.RepositoryException; import javax.jcr.Session; @@ -14,11 +13,12 @@ import org.argeo.jcr.Jcr; import org.osgi.framework.BundleContext; /** An entity definition based on a JCR data structure. */ +@Deprecated public class JcrEntityDefinition implements EntityDefinition { private Repository repository; private String type; - private String defaultEditorId; +// private String defaultEditorId; public void init(BundleContext bundleContext, Map properties) throws RepositoryException { Session adminSession = CmsJcrUtils.openDataAdminSession(repository, null); @@ -26,7 +26,7 @@ public class JcrEntityDefinition implements EntityDefinition { type = properties.get(EntityConstants.TYPE); if (type == null) throw new IllegalArgumentException("Entity type property " + EntityConstants.TYPE + " must be set."); - defaultEditorId = properties.get(EntityConstants.DEFAULT_EDITOR_ID); +// defaultEditorId = properties.get(EntityConstants.DEFAULT_EDITOR_ID); // String definitionPath = EntityNames.ENTITY_DEFINITIONS_PATH + '/' + type; // if (!adminSession.itemExists(definitionPath)) { // Node entityDefinition = JcrUtils.mkdirs(adminSession, definitionPath, EntityTypes.ENTITY_DEFINITION); @@ -48,10 +48,10 @@ public class JcrEntityDefinition implements EntityDefinition { } - @Override - public String getEditorId(Node entity) { - return defaultEditorId; - } +// @Override +// public String getEditorId(Node entity) { +// return defaultEditorId; +// } @Override public String getType() {