]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5036: Adding new interface for relationship service to avoid dependency cycle.
authorRichard Millet <remillet@berkeley.edu>
Tue, 29 May 2012 17:14:55 +0000 (10:14 -0700)
committerRichard Millet <remillet@berkeley.edu>
Tue, 29 May 2012 17:14:55 +0000 (10:14 -0700)
services/client/src/main/java/org/collectionspace/services/client/IRelationsManager.java [new file with mode: 0644]

diff --git a/services/client/src/main/java/org/collectionspace/services/client/IRelationsManager.java b/services/client/src/main/java/org/collectionspace/services/client/IRelationsManager.java
new file mode 100644 (file)
index 0000000..e93948f
--- /dev/null
@@ -0,0 +1,19 @@
+package org.collectionspace.services.client;
+
+import org.collectionspace.services.client.IQueryManager;
+
+public interface IRelationsManager {
+       public static final String DOC_TYPE = "Relation"; // Used for CMIS queries only -should be the same as what's in the tenant bindings
+       public static final String SERVICE_NAME = "relations";
+    public static final String SERVICE_COMMONPART_NAME = SERVICE_NAME + AbstractServiceClientImpl.PART_LABEL_SEPARATOR
+               + AbstractServiceClientImpl.PART_COMMON_LABEL;  
+
+       // Relations CMIS property mapping constants
+       public final static String CMIS_CSPACE_RELATIONS_SUBJECT_ID = IQueryManager.CMIS_RELATIONS_PREFIX
+                       + "." + SERVICE_COMMONPART_NAME + ":subjectCsid";
+       public final static String CMIS_CSPACE_RELATIONS_OBJECT_ID = IQueryManager.CMIS_RELATIONS_PREFIX
+                       + "." + SERVICE_COMMONPART_NAME + ":objectCsid";
+       public final static String CMIS_CSPACE_RELATIONS_TITLE = IQueryManager.CMIS_RELATIONS_PREFIX
+                       + "." + IQueryManager.CMIS_NUXEO_TITLE;
+
+}