Removed depracated code
This commit is contained in:
7
.idea/misc.xml
generated
7
.idea/misc.xml
generated
@@ -1,5 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
|
<component name="JavadocGenerationManager">
|
||||||
|
<option name="OUTPUT_DIRECTORY" value="$USER_HOME$/Documents" />
|
||||||
|
<option name="OPTION_SCOPE" value="private" />
|
||||||
|
<option name="OPTION_DOCUMENT_TAG_USE" value="true" />
|
||||||
|
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="true" />
|
||||||
|
<option name="OPTION_DOCUMENT_TAG_VERSION" value="true" />
|
||||||
|
</component>
|
||||||
<component name="MavenBuildProjectComponent">
|
<component name="MavenBuildProjectComponent">
|
||||||
<option name="mavenExecutable" value="" />
|
<option name="mavenExecutable" value="" />
|
||||||
<option name="Settings File" value="" />
|
<option name="Settings File" value="" />
|
||||||
|
|||||||
@@ -35,39 +35,7 @@ public class KlausController {
|
|||||||
|
|
||||||
private final KlausService klausService;
|
private final KlausService klausService;
|
||||||
|
|
||||||
// TODO: Remove method. It's depracated and duplicated.
|
// TODO: Move to MockController
|
||||||
/**
|
|
||||||
* Deletes message of given id via client request
|
|
||||||
* @param clientUUID the key-uuid of given set of messages
|
|
||||||
* @param mockedResponseId unique id of given message
|
|
||||||
* @return after deletion the confirmation is send with status 200 OK
|
|
||||||
*/
|
|
||||||
@DeleteMapping(value = "/delete/{clientUUID}/{mockedResponseId}")
|
|
||||||
public ResponseEntity<String> deleteMockedResponse(@PathVariable UUID clientUUID,
|
|
||||||
@PathVariable int mockedResponseId){
|
|
||||||
TrackingClient.setBusinessKeys(Map.of(BusinessKey.INTERFACE_NAME, "deleteMockedResponse",
|
|
||||||
BusinessKey.CLIENT_UUID, String.valueOf(clientUUID),
|
|
||||||
BusinessKey.MESSAGE_ID, String.valueOf(mockedResponseId)));
|
|
||||||
klausService.deleteMockedResponse(clientUUID, mockedResponseId);
|
|
||||||
return new ResponseEntity<>("message has been deleted", HttpStatus.OK);
|
|
||||||
}
|
|
||||||
|
|
||||||
//TODO : Remove it's also depracated
|
|
||||||
/**
|
|
||||||
* Returns the full list of messages. It's used by javascript on the client side to initialize homepage
|
|
||||||
* with data from the database.
|
|
||||||
* @param clientUUID the key-uuid of given set of messages
|
|
||||||
* @return responds with 200 OK and list of {@link MockedMessageDto}
|
|
||||||
*/
|
|
||||||
@GetMapping(value = "/getAll/{clientUUID}")
|
|
||||||
public ResponseEntity<String> getAllMockedResponses(@PathVariable UUID clientUUID){
|
|
||||||
TrackingClient.setBusinessKeys(Map.of(BusinessKey.INTERFACE_NAME, "getAllMockedResponse",
|
|
||||||
BusinessKey.CLIENT_UUID, String.valueOf(clientUUID)));
|
|
||||||
List<MockedMessageDto> mockedMessages = klausService.getAllMockedResponses(clientUUID);
|
|
||||||
return new ResponseEntity<>(mockedMessages.toString(), HttpStatus.OK);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* It's one of the most important features - the bread and butter of the Mocked Service. It's link that allows
|
* It's one of the most important features - the bread and butter of the Mocked Service. It's link that allows
|
||||||
* to receive mocked response from the server and use it to mock!
|
* to receive mocked response from the server and use it to mock!
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
@Generated(
|
@Generated(
|
||||||
value = "org.mapstruct.ap.MappingProcessor",
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
date = "2021-03-17T14:12:54+0100",
|
date = "2021-03-23T11:19:42+0100",
|
||||||
comments = "version: 1.3.1.Final, compiler: javac, environment: Java 14.0.1 (Oracle Corporation)"
|
comments = "version: 1.3.1.Final, compiler: javac, environment: Java 14.0.1 (Oracle Corporation)"
|
||||||
)
|
)
|
||||||
@Component
|
@Component
|
||||||
|
|||||||
Reference in New Issue
Block a user