public void putCaseFileDataByName(String containerId, String caseId, String name, List<String> restrictions, String payload, String marshallingType) { verifyContainerId(containerId, caseId); logger.debug("About to unmarshal case file data from payload: '{}'", payload); Object caseFileData = marshallerHelper.unmarshal(containerId, payload, marshallingType, Object.class, new ByCaseIdContainerLocator(caseId)); logger.debug("Unmarshalled case file data {} for case with id '{}' will be stored under {} with restrictions", caseFileData, caseId, name, restrictions); caseService.addDataToCaseFile(caseId, name, caseFileData, restrictions.toArray(new String[restrictions.size()])); }
public void putCaseFileData(String containerId, String caseId, List<String> restrictions, String payload, String marshallingType) { verifyContainerId(containerId, caseId); logger.debug("About to unmarshal case file data from payload: '{}'", payload); Map<String, Object> caseFileData = marshallerHelper.unmarshal(containerId, payload, marshallingType, Map.class, new ByCaseIdContainerLocator(caseId)); logger.debug("Unmarshalled case file data {} for case with id '{}' with restrictions", caseFileData, caseId, restrictions); caseService.addDataToCaseFile(caseId, caseFileData, restrictions.toArray(new String[restrictions.size()])); }