Commit ffa2f3c0 authored by Kristel Meikas's avatar Kristel Meikas
Browse files

TEIS-2120: unified context type data type for GET message permissions requests...

TEIS-2120: unified context type data type for GET message permissions requests for proceedings with GET messages context type data type
parent f76496c4
......@@ -2,7 +2,6 @@ package ee.sm.ti.teis.commongateway.proceedings.proceeding.request;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
......@@ -25,7 +24,7 @@ public class MessagePermissionRequest extends AbstractDTO<MessagePermissionReque
@NotNull
private UUID id;
private ClassifierItemLightDto contextType;
private String contextType;
}
}
package ee.sm.ti.teis.commongateway.proceedings.proceeding;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
import ee.sm.ti.teis.commongateway.proceedings.proceeding.dto.MessagePermissionDto;
import ee.sm.ti.teis.commongateway.proceedings.proceeding.dto.ProceedingPublicDto;
import ee.sm.ti.teis.commongateway.proceedings.proceeding.request.MessagePermissionRequest;
......@@ -53,7 +52,7 @@ public class ProceedingController extends TeisBaseController {
@ApiImplicitParams(@ApiImplicitParam(name = "id", value = "${teis.api.messages.proceeding.get-proceeding-id}"))
@GetMapping(value = "{id}/message-permissions")
public List<MessagePermissionDto> getMessagePermission(@PathVariable UUID id,
@RequestParam(required = false) ClassifierItemLightDto contextType, RequestMetaDTO requestMetaDTO) {
@RequestParam(required = false) String contextType, RequestMetaDTO requestMetaDTO) {
MessagePermissionRequest request = new MessagePermissionRequest();
request.setPayload(new MessagePermissionRequest.Parameters(id, contextType), requestMetaDTO);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment