Class AttributeMapper

java.lang.Object
org.opencastproject.security.aai.api.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 Details

    • AttributeMapper

      public AttributeMapper()
  • Method Details

    • 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:
    • getAttributeMap

      public Map<String,List<String>> getAttributeMap()
    • setAttributeMap

      public void setAttributeMap(Map<String,List<String>> attributeMap)
    • 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)