</extension>
<extension target="org.nuxeo.ecm.platform.types.TypeService" point="types">
- <type id="Taxonomyitem" coretype="Taxonomyitem">
- <label>org.collectionspace.taxonomy</label>
+ <type id="Taxon" coretype="Taxon">
+ <label>org.collectionspace.taxon</label>
<!--icon>/icons/file.gif</icon-->
<default-view>view_documents</default-view>
<layouts mode="any">
<layout>heading</layout>
- <layout>taxonomy</layout>
+ <layout>taxon</layout>
</layouts>
</type>
<type id="Folder" coretype="Folder">
<subtypes>
- <type>Taxonomy</type>
+ <type>Taxon</type>
</subtypes>
</type>
<type id="Workspace" coretype="Workspace">
<subtypes>
- <type>Taxonomy</type>
+ <type>Taxon</type>
</subtypes>
</type>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="layouts">
- <layout name="taxonomy">
+ <layout name="taxon">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<?xml version="1.0"?>
-<component name="org.collectionspace.ecm.platform.location.LifeCycleManagerExtensions">
+<component name="org.collectionspace.ecm.platform.taxonomy.LifeCycleManagerExtensions">
<extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
point="types">
-
<project name="taxonomy" default="package" basedir=".">
<description>
Taxonomy Authority service
</description>
- <!-- set global properties for this build -->
+ <!-- set global properties for this build -->
<property name="services.trunk" value="../.."/>
- <!-- enviornment should be declared before reading build.properties -->
+ <!-- environment should be declared before reading build.properties -->
<property environment="env" />
<property file="${services.trunk}/build.properties" />
<property name="mvn.opts" value="" />
* The Class TaxonomyAuthorityClient.
*/
public class TaxonomyAuthorityClient extends AuthorityClientImpl<TaxonomyauthorityCommonList, TaxonCommonList, TaxonomyAuthorityProxy> {
- public static final String SERVICE_NAME = "Taxonomyauthority";
+ public static final String SERVICE_NAME = "taxonomyauthorities";
public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;
package org.collectionspace.services;
import org.collectionspace.services.common.vocabulary.AuthorityItemJAXBSchema;
-/**
- * @author pschmitz
- *
- */
public interface TaxonomyJAXBSchema extends AuthorityItemJAXBSchema {
final static String TAXONOMY_COMMON = "taxonomy_common";
- final static String NAME = "fullName";
+ final static String NAME = "taxonFullName";
final static String RANK = "taxonRank";
}
import org.collectionspace.services.common.vocabulary.RefNameServiceUtils;
import org.collectionspace.services.common.vocabulary.RefNameUtils;
import org.collectionspace.services.nuxeo.client.java.RemoteDocumentModelHandlerImpl;
-import org.collectionspace.services.taxonomy.nuxeo.TaxonomyDocumentModelHandler;
+import org.collectionspace.services.taxonomy.nuxeo.TaxonDocumentModelHandler;
import org.jboss.resteasy.util.HttpResponseCodes;
import org.nuxeo.ecm.core.api.DocumentModel;
import org.slf4j.Logger;
@Produces("application/xml")
public class TaxonomyAuthorityResource
extends AuthorityResource<TaxonomyauthorityCommon, TaxonomyauthorityCommonList,
- TaxonCommon, TaxonomyDocumentModelHandler> {
+ TaxonCommon, TaxonDocumentModelHandler> {
private final static String taxonomyAuthorityServiceName = "taxonomyauthorities";
private final static String TAXONOMYAUTHORITY_COMMON = "taxonomyauthority_common";
* @return the item service name
*/
public String getItemServiceName() {
- return taxononomyItemServiceName;
+ return taxonomyItemServiceName;
}
@Override
* @author pschmitz
*
*/
-public class TaxonomyDocumentModelHandler
+public class TaxonDocumentModelHandler
extends AuthorityItemDocumentModelHandler<TaxonCommon, TaxonCommonList> {
/** The logger. */
- private final Logger logger = LoggerFactory.getLogger(TaxonomyDocumentModelHandler.class);
+ private final Logger logger = LoggerFactory.getLogger(TaxonDocumentModelHandler.class);
/**
* Common part schema label
*/
private static final String COMMON_PART_LABEL = "taxonomy_common";
- public TaxonomyDocumentModelHandler() {
+ public TaxonDocumentModelHandler() {
super(COMMON_PART_LABEL);
}
*
* @author
*/
-public class TaxonomyValidatorHandler implements ValidatorHandler {
+public class TaxonValidatorHandler implements ValidatorHandler {
- final Logger logger = LoggerFactory.getLogger(TaxonomyValidatorHandler.class);
+ final Logger logger = LoggerFactory.getLogger(TaxonValidatorHandler.class);
@Override
public void validate(Action action, ServiceContext ctx)