|
|
|
@ -79,6 +79,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
import org.w3c.dom.Document;
|
|
|
|
|
import org.w3c.dom.Element;
|
|
|
|
|
|
|
|
|
|
import javax.transaction.Transactional;
|
|
|
|
|
import javax.xml.bind.JAXBContext;
|
|
|
|
|
import javax.xml.bind.JAXBException;
|
|
|
|
|
import javax.xml.bind.Unmarshaller;
|
|
|
|
@ -1034,6 +1035,7 @@ public class DataManagementPlanManager {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
public void makeFinalize(UUID id, Principal principal, DatasetsToBeFinalized datasetsToBeFinalized) throws Exception {
|
|
|
|
|
DMP dmp = this.apiContext.getOperationsContext().getDatabaseRepository().getDmpDao().find(id);
|
|
|
|
|
if (!isUserOwnerOfDmp(dmp, principal))
|
|
|
|
@ -2093,10 +2095,10 @@ public class DataManagementPlanManager {
|
|
|
|
|
}
|
|
|
|
|
dataBuilder.append(" }\n").append("}");
|
|
|
|
|
createData = dataBuilder.toString();
|
|
|
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
|
|
|
/*ObjectMapper mapper = new ObjectMapper();
|
|
|
|
|
mapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS, true);
|
|
|
|
|
JsonNode createDataJSON = mapper.readTree(createData);
|
|
|
|
|
HttpEntity<JsonNode> request = new HttpEntity<>(createDataJSON, headers);
|
|
|
|
|
JsonNode createDataJSON = mapper.readTree(createData);*/
|
|
|
|
|
HttpEntity<String> request = new HttpEntity<>(createData, headers);
|
|
|
|
|
Map createResponse = null;
|
|
|
|
|
LinkedHashMap<String, String> links = null;
|
|
|
|
|
String previousDOI = this.getPreviousDOI(dmp.getGroupId(), dmp.getId());
|
|
|
|
|