private Repository repository;
private String type;
- private String defaultEditoryId;
+ private String defaultEditorId;
public void init(BundleContext bundleContext, Map<String, String> properties) throws RepositoryException {
Session adminSession = NodeUtils.openDataAdminSession(repository, null);
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);
@Override
public String getEditorId(Node entity) {
- return defaultEditoryId;
+ return defaultEditorId;
}
@Override