X-Git-Url: http://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=blobdiff_plain;f=core%2Forg.argeo.entity.core%2Fsrc%2Forg%2Fargeo%2Fentity%2Fcore%2FJcrEntityDefinition.java;fp=core%2Forg.argeo.entity.core%2Fsrc%2Forg%2Fargeo%2Fentity%2Fcore%2FJcrEntityDefinition.java;h=6eb086da2f40d6bfb1e2e60824674d50b4b661d9;hp=7fd26d1c078de79409d456fb6cc2984baa642071;hb=177fcb9154fed58d582f41fb9aa14a16930d4202;hpb=30b97a74faf0dcbc6d787bb88b524bfc53a7f251 diff --git a/core/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java b/core/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java index 7fd26d1..6eb086d 100644 --- a/core/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java +++ b/core/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java @@ -18,7 +18,7 @@ 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); @@ -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."); - 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