-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing rabbit completely from collex (#257)
* Removing rabbit completely from collex * auto patch increment * removing redundant class Co-authored-by: Amit Sinha <[email protected]> Co-authored-by: ras-rm-pr-bot <[email protected]>
- Loading branch information
1 parent
030d3e6
commit 8a0c42a
Showing
23 changed files
with
50 additions
and
680 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...p/response/collection/exercise/endpoint/CollectionExerciseInstrumentReceiverEndpoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package uk.gov.ons.ctp.response.collection.exercise.endpoint; | ||
|
||
import com.godaddy.logging.Logger; | ||
import com.godaddy.logging.LoggerFactory; | ||
import java.util.UUID; | ||
import javax.validation.Valid; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import uk.gov.ons.ctp.response.collection.exercise.lib.common.error.CTPException; | ||
import uk.gov.ons.ctp.response.collection.exercise.message.dto.CollectionInstrumentMessageDTO; | ||
import uk.gov.ons.ctp.response.collection.exercise.service.CollectionExerciseService; | ||
|
||
@RestController | ||
@RequestMapping(value = "/collection-instrument", produces = "application/json") | ||
public class CollectionExerciseInstrumentReceiverEndpoint { | ||
private static final Logger log = | ||
LoggerFactory.getLogger(CollectionExerciseInstrumentReceiverEndpoint.class); | ||
private CollectionExerciseService collectionExerciseService; | ||
|
||
@Autowired | ||
public CollectionExerciseInstrumentReceiverEndpoint( | ||
CollectionExerciseService collectionExerciseService) { | ||
this.collectionExerciseService = collectionExerciseService; | ||
} | ||
|
||
@RequestMapping(value = "/link", method = RequestMethod.POST) | ||
public ResponseEntity<?> collectionInstrumentLink( | ||
final @RequestBody @Valid CollectionInstrumentMessageDTO collectionInstrumentMessageDTO) | ||
throws CTPException { | ||
log.with(collectionInstrumentMessageDTO.getInstrumentId()) | ||
.with(collectionInstrumentMessageDTO.getExerciseId()) | ||
.info("Consumed message"); | ||
|
||
UUID collectionExerciseId = collectionInstrumentMessageDTO.getExerciseId(); | ||
|
||
collectionExerciseService.transitionScheduleCollectionExerciseToReadyToReview( | ||
collectionExerciseId); | ||
return ResponseEntity.ok().build(); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
src/main/java/uk/gov/ons/ctp/response/collection/exercise/lib/rabbit/Rabbitmq.java
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
src/main/java/uk/gov/ons/ctp/response/collection/exercise/lib/rabbit/SimpleMessageBase.java
This file was deleted.
Oops, something went wrong.
139 changes: 0 additions & 139 deletions
139
...in/java/uk/gov/ons/ctp/response/collection/exercise/lib/rabbit/SimpleMessageListener.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.