@ RequestMapping ( value = "ldap-mapping" , method = RequestMethod . GET ) public Resources < LDAPMapping > getMappings ( ) { securityService . checkGlobalFunction ( AccountGroupManagement . class ) ; return Resources . of ( accountGroupMappingService . getMappings ( LDAPExtensionFeature . LDAP_GROUP_MAPPING ) . stream ( ) . map ( LDAPMapping :: of ) , uri ( on ( getClass ( ) ) . getMappings ( ) ) ) . with ( Link . CREATE , uri ( on ( getClass ( ) ) . getMappingCreationForm ( ) ) , securityService . isGlobalFunctionGranted ( AccountGroupManagement . class ) ) ; }
Gets the list of mappings