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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApply all expressions on the sourceAttributesgetMappedAttributes(javax.servlet.http.HttpServletRequest request, String mappingId) booleanvoidsetAaiAttributes(List<String> aaiAttributes) voidsetAttributeMap(Map<String, List<String>> attributeMap) voidsetMultiValueDelimiter(String multiValueDelimiter) voidsetUseHeader(boolean useHeader)
-
Constructor Details
-
AttributeMapper
public AttributeMapper()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.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 valuesmappingId- The mapping list to use- Returns:
-
getMappedAttributes
public List<String> getMappedAttributes(javax.servlet.http.HttpServletRequest request, String mappingId) - Parameters:
request- The current HttpServletRequestmappingId- The mapping list to use- Returns:
-
getAttributeMap
-
setAttributeMap
-
getAaiAttributes
-
setAaiAttributes
-
isUseHeader
public boolean isUseHeader() -
setUseHeader
public void setUseHeader(boolean useHeader) -
getMultiValueDelimiter
-
setMultiValueDelimiter
-