use of uk.gov.ida.hub.policy.domain.controller.AbstractAwaitingCycle3DataStateController in project verify-hub by alphagov.
the class Cycle3Service method sendCycle3MatchingRequest.
public void sendCycle3MatchingRequest(SessionId sessionId, Cycle3UserInput cycle3UserInput) {
AbstractAwaitingCycle3DataStateController controller = (AbstractAwaitingCycle3DataStateController) sessionRepository.getStateController(sessionId, AbstractAwaitingCycle3DataState.class);
String attributeName = controller.getCycle3AttributeRequestData().getAttributeName();
Cycle3Dataset cycle3Dataset = Cycle3Dataset.createFromData(attributeName, cycle3UserInput.getCycle3Input());
AbstractAttributeQueryRequestDto attributeQuery = controller.createAttributeQuery(cycle3Dataset);
attributeQueryService.sendAttributeQueryRequest(sessionId, attributeQuery);
controller.handleCycle3DataSubmitted(cycle3UserInput.getPrincipalIpAddress());
}
use of uk.gov.ida.hub.policy.domain.controller.AbstractAwaitingCycle3DataStateController in project verify-hub by alphagov.
the class Cycle3Service method cancelCycle3DataInput.
public void cancelCycle3DataInput(SessionId sessionId) {
AbstractAwaitingCycle3DataStateController controller = (AbstractAwaitingCycle3DataStateController) sessionRepository.getStateController(sessionId, AbstractAwaitingCycle3DataState.class);
controller.handleCancellation();
}
Aggregations