X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.entity.core%2Fsrc%2Forg%2Fargeo%2Fentity%2Fcore%2FJcrEntityDefinition.java;h=d6d124680d15750bf315aa95cfb72babfc8cea25;hb=41e9998f7f1c87c747c57f60c6bec65fa20757a6;hp=7fd26d1c078de79409d456fb6cc2984baa642071;hpb=921e69ca45d5e257429c019b984428a59f891487;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java b/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java index 7fd26d1..d6d1246 100644 --- a/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java +++ b/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java @@ -7,7 +7,7 @@ import javax.jcr.Repository; import javax.jcr.RepositoryException; import javax.jcr.Session; -import org.argeo.api.NodeUtils; +import org.argeo.cms.jcr.CmsJcrUtils; import org.argeo.entity.EntityConstants; import org.argeo.entity.EntityDefinition; import org.argeo.jcr.Jcr; @@ -18,15 +18,15 @@ public class JcrEntityDefinition implements EntityDefinition { private Repository repository; private String type; - private String defaultEditoryId; + private String defaultEditorId; public void init(BundleContext bundleContext, Map properties) throws RepositoryException { - Session adminSession = NodeUtils.openDataAdminSession(repository, null); + Session adminSession = CmsJcrUtils.openDataAdminSession(repository, null); try { type = properties.get(EntityConstants.TYPE); if (type == null) throw new IllegalArgumentException("Entity type property " + EntityConstants.TYPE + " must be set."); - defaultEditoryId = properties.get(EntityConstants.DEFAULT_EDITORY_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); @@ -50,7 +50,7 @@ public class JcrEntityDefinition implements EntityDefinition { @Override public String getEditorId(Node entity) { - return defaultEditoryId; + return defaultEditorId; } @Override