package org.collectionspace.hello.services;

public interface CollectionSpaceResource {
    //replace WORKSPACE_UID for resource workspace
	static String CS_NUXEO_WORKSPACE_UID = "6c7881fe-54c5-486e-b144-a025dee3a484";
	static String CS_NUXEO_DEFAULT_REPOS = "default";
    //replace host if not running on localhost
    static String CS_NUXEO_HOST = "localhost";
    static String CS_NUXEO_URI = "http://" + CS_NUXEO_HOST + ":8080/nuxeo";
}

@@ -44,24 +44,97 @@
 %0D%0A%0D%0A
-public interface
+import org.collectionspace.hello.services.nuxeo.NuxeoRESTClient;%0D%0A%0D%0Apublic abstract class
  Col
@@ -227,21 +227,32 @@
 ring CS_
-NUXEO
+COLLECTIONOBJECT
 _WORKSPA
@@ -265,98 +265,131 @@
  = %22
-6c7881fe-54c5-486e-b144-a025dee3a484%22;%0D%0A%09static String CS_NUXEO_DEFAULT_REPOS = %22default%22;
+5a37d40f-59c4-4d15-93ad-e0e6a0c33587%22;%0D%0A%09static String CS_PERSON_WORKSPACE_UID = %22eae0d7b6-580a-45a3-a0f3-e25e980e03bb%22;%0D%0A%09
 %0D%0A  
@@ -434,24 +434,76 @@
 alhost%0D%0A    
+//static String CS_NUXEO_HOST = %22173.45.234.217%22;%0D%0A%09
 static Strin
@@ -611,11 +611,302 @@
 uxeo%22;%0D%0A
+    %0D%0A    NuxeoRESTClient getClient() %7B%0D%0A        NuxeoRESTClient nxClient = new NuxeoRESTClient(CS_NUXEO_URI);%0D%0A        nxClient.setAuthType(NuxeoRESTClient.AUTH_TYPE_BASIC);%0D%0A        nxClient.setBasicAuthentication(%22Administrator%22, %22Administrator%22);%0D%0A        return nxClient;%0D%0A    %7D%0D%0A    %0D%0A
 %7D%0D%0A

Add new string constants for PersonNuxeo and CollectionObject workspaces. Also gave these constants the values for our Nuxeo instance on demo.collectionspace.org.