import org.apache.commons.io.FileUtils;\r
import org.collectionspace.services.LocationJAXBSchema;\r
import org.collectionspace.services.client.test.ServiceRequestType;\r
+import org.collectionspace.services.common.api.Tools;\r
import org.collectionspace.services.location.*;\r
import org.dom4j.DocumentException;\r
import org.jboss.resteasy.client.ClientResponse;\r
}\r
\r
public static List<LocTermGroup> getTermGroupInstance(String identifier) {\r
+ if (Tools.isBlank(identifier)) {\r
+ identifier = getGeneratedIdentifier();\r
+ }\r
List<LocTermGroup> terms = new ArrayList<LocTermGroup>();\r
LocTermGroup term = new LocTermGroup();\r
term.setTermDisplayName(identifier);\r
import javax.ws.rs.core.Response;\r
import org.collectionspace.services.OrganizationJAXBSchema;\r
import org.collectionspace.services.client.test.ServiceRequestType;\r
+import org.collectionspace.services.common.api.Tools;\r
import org.collectionspace.services.organization.ContactNameList;\r
import org.collectionspace.services.organization.FunctionList;\r
import org.collectionspace.services.organization.GroupList;\r
}\r
\r
public static List<OrgTermGroup> getTermGroupInstance(String identifier) {\r
+ if (Tools.isBlank(identifier)) {\r
+ identifier = getGeneratedIdentifier();\r
+ }\r
List<OrgTermGroup> terms = new ArrayList<OrgTermGroup>();\r
OrgTermGroup term = new OrgTermGroup();\r
term.setTermDisplayName(identifier);\r
\r
import org.collectionspace.services.PersonJAXBSchema;\r
import org.collectionspace.services.client.test.ServiceRequestType;\r
+import org.collectionspace.services.common.api.Tools;\r
import org.collectionspace.services.person.GroupList;\r
import org.collectionspace.services.person.NationalityList;\r
import org.collectionspace.services.person.OccupationList;\r
}\r
\r
public static List<PersonTermGroup> getTermGroupInstance(String identifier) {\r
+ if (Tools.isBlank(identifier)) {\r
+ identifier = getGeneratedIdentifier();\r
+ }\r
List<PersonTermGroup> terms = new ArrayList<PersonTermGroup>();\r
PersonTermGroup term = new PersonTermGroup();\r
term.setTermDisplayName(identifier);\r