+.metadata/
+services/collectionobject/sample/sample/.classpath
+services/organization/sample/sample/.classpath
+services/vocabulary/sample/sample/.classpath
3rdparty/nuxeo/nuxeo-platform-thumbnail/.classpath
3rdparty/nuxeo/nuxeo-platform-thumbnail/.project
3rdparty/nuxeo/nuxeo-platform-thumbnail/.settings/
</arguments>\r
</buildCommand>\r
<buildCommand>\r
- <name>org.maven.ide.eclipse.maven2Builder</name>\r
+ <name>org.eclipse.m2e.core.maven2Builder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r
<buildCommand>\r
- <name>org.eclipse.m2e.core.maven2Builder</name>\r
+ <name>org.maven.ide.eclipse.maven2Builder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r
//Empty constructor
}
+ /*
+ * By default we won't support object hierarchy
+ */
+ public boolean supportsHierarchy() {
+ return false;
+ }
+
/* (non-Javadoc)
* @see org.collectionspace.services.common.document.AbstractDocumentHandlerImpl#handleCreate(org.collectionspace.services.common.document.DocumentWrapper)
*/
docModel, label, id, true);\r
}\r
\r
- public DocHandlerParams.Params getDocHandlerParams() throws DocumentException {\r
- MultipartServiceContext sc = (MultipartServiceContext) getServiceContext();\r
- ServiceBindingType sb = sc.getServiceBinding();\r
- DocHandlerParams dhb = sb.getDocHandlerParams();\r
- if (dhb != null && dhb.getParams() != null) {\r
- return dhb.getParams();\r
- }\r
- throw new DocumentException("No DocHandlerParams configured for: "\r
- + sb.getName());\r
- }\r
-\r
public String getSummaryFields(AbstractCommonList theCommonList) throws DocumentException {\r
return getDocHandlerParams().getSummaryFields();\r
}\r
import org.collectionspace.services.common.context.MultipartServiceContext;
import org.collectionspace.services.common.context.ServiceContext;
import org.collectionspace.services.common.document.BadRequestException;
+import org.collectionspace.services.common.document.DocumentException;
import org.collectionspace.services.common.document.DocumentUtils;
import org.collectionspace.services.common.document.DocumentWrapper;
import org.collectionspace.services.common.document.DocumentFilter;
import org.collectionspace.services.common.api.RefNameUtils;
import org.collectionspace.services.common.vocabulary.RefNameServiceUtils;
import org.collectionspace.services.common.vocabulary.RefNameServiceUtils.AuthRefConfigInfo;
+import org.collectionspace.services.config.service.DocHandlerParams;
import org.collectionspace.services.config.service.ListResultField;
import org.collectionspace.services.config.service.ObjectPartType;
+import org.collectionspace.services.config.service.ServiceBindingType;
import org.collectionspace.services.nuxeo.util.NuxeoUtils;
import org.dom4j.Element;
}
}
+ /*
+ * Returns the document handler parameters that were loaded at startup from the
+ * tenant bindings config file.
+ */
+ public DocHandlerParams.Params getDocHandlerParams() throws DocumentException {
+ MultipartServiceContext sc = (MultipartServiceContext) getServiceContext();
+ ServiceBindingType sb = sc.getServiceBinding();
+ DocHandlerParams dhb = sb.getDocHandlerParams();
+ if (dhb != null && dhb.getParams() != null) {
+ return dhb.getParams();
+ }
+ throw new DocumentException("No DocHandlerParams configured for: "
+ + sb.getName());
+ }
+
+ @Override
+ public boolean supportsHierarchy() {
+ boolean result;
+
+ DocHandlerParams.Params params = null;
+ try {
+ params = getDocHandlerParams();
+ } catch (DocumentException e) {
+ // TODO Auto-generated catch block
+ logger.error(String.format("Could not get document handler params for class %s", this.getClass().getName()), e);
+ }
+ result = params.isSupportsHierarchy();
+
+ return result;
+ }
+
@Override
public void handleWorkflowTransition(DocumentWrapper<DocumentModel> wrapDoc, TransitionDef transitionDef)
throws Exception {
<xs:complexType>
<xs:sequence>
<xs:element name="SchemaName" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="supportsHierarchy" type="xs:boolean" minOccurs="0" maxOccurs="1" default="false"/>
<xs:element name="DublinCoreTitle" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="SummaryFields" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="AbstractCommonListClassname" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="csid" type="xs:string" /> \r
<!-- type of relationship between two entities -->\r
<xs:element name="relationshipType" type="xs:string" minOccurs="1"/>\r
+ <xs:element name="relationshipMetaType" type="xs:string" minOccurs="0"/>\r
<xs:element name="predicateDisplayName" type="xs:string" minOccurs="1"/>\r
<!--- New Names -->\r
<xs:element name="subjectCsid" type="xs:string" minOccurs="1" maxOccurs="1"/> <!-- new name for documentId1 -->\r
</arguments>\r
</buildCommand>\r
<buildCommand>\r
- <name>org.maven.ide.eclipse.maven2Builder</name>\r
+ <name>org.eclipse.m2e.core.maven2Builder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r
<buildCommand>\r
- <name>org.eclipse.m2e.core.maven2Builder</name>\r
+ <name>org.maven.ide.eclipse.maven2Builder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r
<classpathentry kind="src" output="target/classes" path="src/main/java"/>\r
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>\r
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
- <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>\r
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>\r
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>\r
<classpathentry kind="output" path="target/classes"/>\r
</classpath>\r
</arguments>\r
</buildCommand>\r
<buildCommand>\r
- <name>org.maven.ide.eclipse.maven2Builder</name>\r
+ <name>org.eclipse.m2e.core.maven2Builder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r
<buildCommand>\r
- <name>org.eclipse.m2e.core.maven2Builder</name>\r
+ <name>org.maven.ide.eclipse.maven2Builder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r
</arguments>\r
</buildCommand>\r
<buildCommand>\r
- <name>org.maven.ide.eclipse.maven2Builder</name>\r
+ <name>org.eclipse.m2e.core.maven2Builder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r
<buildCommand>\r
- <name>org.eclipse.m2e.core.maven2Builder</name>\r
+ <name>org.maven.ide.eclipse.maven2Builder</name>\r
<arguments>\r
</arguments>\r
</buildCommand>\r