Class FlowBuilderConversionService

java.lang.Object
org.springframework.binding.convert.service.GenericConversionService
org.springframework.binding.convert.service.DefaultConversionService
org.apereo.cas.web.flow.FlowBuilderConversionService
All Implemented Interfaces:
org.springframework.binding.convert.ConversionService

public class FlowBuilderConversionService extends org.springframework.binding.convert.service.DefaultConversionService
Special conversion service with a CompositeFlowExecutionKeyConverter.
Since:
4.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlowBuilderConversionService(org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.binding.convert.ConversionExecutor
    getConversionExecutor(String id, Class<?> sourceClass, Class<?> targetClass)
    This is necessary here, because the default executor will wrap our converter inside a ObjectToArray component that inteferes with the conversion.

    Methods inherited from class org.springframework.binding.convert.service.GenericConversionService

    addAlias, addConverter, addConverter, executeConversion, executeConversion, getClassForAlias, getConversionExecutor, getDelegateConversionService, getParent, setParent

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FlowBuilderConversionService

      public FlowBuilderConversionService(org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceFactory)
  • Method Details

    • getConversionExecutor

      public org.springframework.binding.convert.ConversionExecutor getConversionExecutor(String id, Class<?> sourceClass, Class<?> targetClass) throws org.springframework.binding.convert.ConversionExecutorNotFoundException
      This is necessary here, because the default executor will wrap our converter inside a ObjectToArray component that inteferes with the conversion. This conversion is mainly applicable when passwords in form of String need to bind over to character arrays.
      Specified by:
      getConversionExecutor in interface org.springframework.binding.convert.ConversionService
      Overrides:
      getConversionExecutor in class org.springframework.binding.convert.service.GenericConversionService
      Parameters:
      id - identifier of the converter.
      sourceClass - source class of the binding object
      targetClass - target class of the binding object
      Returns:
      conversion executor
      Throws:
      org.springframework.binding.convert.ConversionExecutorNotFoundException