Class AttributeMapper

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    public class AttributeMapper
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    Generic AAI Attribute mapper using Spring Expression language mappings.
    • Constructor Detail

      • AttributeMapper

        public AttributeMapper()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getMappedAttributes

        public List<String> getMappedAttributes​(Map<String,​List<String>> sourceAttributes,
                                                String mappingId)
        Apply all expressions on the sourceAttributes
        Parameters:
        sourceAttributes - Key is attribute name, value a list of split AAI attribute values
        mappingId - The mapping list to use
        Returns:
      • getMappedAttributes

        public List<String> getMappedAttributes​(javax.servlet.http.HttpServletRequest request,
                                                String mappingId)
        Parameters:
        request - The current HttpServletRequest
        mappingId - The mapping list to use
        Returns:
      • getAaiAttributes

        public List<String> getAaiAttributes()
      • setAaiAttributes

        public void setAaiAttributes​(List<String> aaiAttributes)
      • isUseHeader

        public boolean isUseHeader()
      • setUseHeader

        public void setUseHeader​(boolean useHeader)
      • getMultiValueDelimiter

        public String getMultiValueDelimiter()
      • setMultiValueDelimiter

        public void setMultiValueDelimiter​(String multiValueDelimiter)