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 Constructor Description AttributeMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()List<String>getAaiAttributes()Map<String,List<String>>getAttributeMap()List<String>getMappedAttributes(Map<String,List<String>> sourceAttributes, String mappingId)Apply all expressions on the sourceAttributesList<String>getMappedAttributes(javax.servlet.http.HttpServletRequest request, String mappingId)StringgetMultiValueDelimiter()booleanisUseHeader()voidsetAaiAttributes(List<String> aaiAttributes)voidsetAttributeMap(Map<String,List<String>> attributeMap)voidsetMultiValueDelimiter(String multiValueDelimiter)voidsetUseHeader(boolean useHeader)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- 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:
-
isUseHeader
public boolean isUseHeader()
-
setUseHeader
public void setUseHeader(boolean useHeader)
-
getMultiValueDelimiter
public String getMultiValueDelimiter()
-
setMultiValueDelimiter
public void setMultiValueDelimiter(String multiValueDelimiter)
-
-