Class CredentialIssueanceCallbackController
- java.lang.Object
-
- io.mosip.authentication.internal.service.controller.CredentialIssueanceCallbackController
-
@RestController public class CredentialIssueanceCallbackController extends Object
TheCredentialIssueanceCallbackController
used to handle the notification events posted by ID Repo module.- Author:
- Loganathan Sekar
-
-
Constructor Summary
Constructors Constructor Description CredentialIssueanceCallbackController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.mosip.kernel.core.http.ResponseWrapper<?>
handleActivateIdEvent(String partnerId, io.mosip.kernel.core.websub.model.EventModel eventModel, org.springframework.validation.Errors e)
Handle events end point.io.mosip.kernel.core.http.ResponseWrapper<?>
handleCredentialIssuedEvent(String partnerId, io.mosip.kernel.core.websub.model.EventModel eventModel, org.springframework.validation.Errors e)
Handle events end point.io.mosip.kernel.core.http.ResponseWrapper<?>
handleDeactivateIdEvent(String partnerId, io.mosip.kernel.core.websub.model.EventModel eventModel, org.springframework.validation.Errors e)
Handle events end point.io.mosip.kernel.core.http.ResponseWrapper<?>
handleRemoveIdEvent(String partnerId, io.mosip.kernel.core.websub.model.EventModel eventModel, org.springframework.validation.Errors e)
Handle events end point.void
initBinder(org.springframework.web.bind.WebDataBinder binder)
Inits the binder.
-
-
-
Method Detail
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
Inits the binder.- Parameters:
binder
- the binder
-
handleCredentialIssuedEvent
@PostMapping(path="/callback/idchange/credential_issued/{partnerId}", consumes="application/json", produces="application/json") public io.mosip.kernel.core.http.ResponseWrapper<?> handleCredentialIssuedEvent(@PathVariable("partnerId") String partnerId, @Validated @RequestBody io.mosip.kernel.core.websub.model.EventModel eventModel, org.springframework.validation.Errors e) throws io.mosip.authentication.core.exception.IdAuthenticationBusinessException
Handle events end point.- Parameters:
notificationEventsDto
- the notification events dtoe
- the e- Returns:
- the response entity
- Throws:
io.mosip.authentication.core.exception.IdAuthenticationBusinessException
- the id authentication business exception
-
handleRemoveIdEvent
@PostMapping(path="/callback/idchange/remove_id/{partnerId}", consumes="application/json", produces="application/json") public io.mosip.kernel.core.http.ResponseWrapper<?> handleRemoveIdEvent(@PathVariable("partnerId") String partnerId, @Validated @RequestBody io.mosip.kernel.core.websub.model.EventModel eventModel, org.springframework.validation.Errors e) throws io.mosip.authentication.core.exception.IdAuthenticationBusinessException
Handle events end point.- Parameters:
notificationEventsDto
- the notification events dtoe
- the e- Returns:
- the response entity
- Throws:
io.mosip.authentication.core.exception.IdAuthenticationBusinessException
- the id authentication business exception
-
handleDeactivateIdEvent
@PostMapping(path="/callback/idchange/deactivate_id/{partnerId}", consumes="application/json", produces="application/json") public io.mosip.kernel.core.http.ResponseWrapper<?> handleDeactivateIdEvent(@PathVariable("partnerId") String partnerId, @Validated @RequestBody io.mosip.kernel.core.websub.model.EventModel eventModel, org.springframework.validation.Errors e) throws io.mosip.authentication.core.exception.IdAuthenticationBusinessException
Handle events end point.- Parameters:
notificationEventsDto
- the notification events dtoe
- the e- Returns:
- the response entity
- Throws:
io.mosip.authentication.core.exception.IdAuthenticationBusinessException
- the id authentication business exception
-
handleActivateIdEvent
@PostMapping(path="/callback/idchange/activate_id/{partnerId}", consumes="application/json", produces="application/json") public io.mosip.kernel.core.http.ResponseWrapper<?> handleActivateIdEvent(@PathVariable("partnerId") String partnerId, @Validated @RequestBody io.mosip.kernel.core.websub.model.EventModel eventModel, org.springframework.validation.Errors e) throws io.mosip.authentication.core.exception.IdAuthenticationBusinessException
Handle events end point.- Parameters:
notificationEventsDto
- the notification events dtoe
- the e- Returns:
- the response entity
- Throws:
io.mosip.authentication.core.exception.IdAuthenticationBusinessException
- the id authentication business exception
-
-