use of uk.gov.ida.hub.policy.contracts.AbstractAttributeQueryRequestDto 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());
}
Aggregations