use of org.springframework.webflow.execution.RequestContext in project cas by apereo.
the class BaseCasWebflowSessionContextConfiguration method verifyFlowExecutorByClient.
@Test
public void verifyFlowExecutorByClient() {
final RequestContext ctx = getMockRequestContext();
final LocalAttributeMap map = new LocalAttributeMap<>();
getFlowExecutor().launchExecution("login", map, ctx.getExternalContext());
}
use of org.springframework.webflow.execution.RequestContext in project uPortal by Jasig.
the class AttributeSwapRequestValidator method validateAttributesForm.
/**
* Ensures all passed attributes are part of the valid query attribute set.
*/
public void validateAttributesForm(AttributeSwapRequest attributeSwapRequest, MessageContext context) {
final RequestContext requestContext = RequestContextHolder.getRequestContext();
final ExternalContext externalContext = requestContext.getExternalContext();
final Set<String> swappableAttributes = this.attributeSwapperHelper.getSwappableAttributes(externalContext);
final Map<String, Attribute> currentAttributes = attributeSwapRequest.getCurrentAttributes();
this.checkAttributesMap(context, "currentAttributes", swappableAttributes, currentAttributes);
final Map<String, Attribute> attributesToCopy = attributeSwapRequest.getAttributesToCopy();
this.checkAttributesMap(context, "attributesToCopy", swappableAttributes, attributesToCopy);
}
Aggregations