/** * Gets a mapping */ @RequestMapping(value = "ldap-mapping/{id}", method = RequestMethod.GET) public LDAPMapping getMapping(@PathVariable ID id) { securityService.checkGlobalFunction(AccountGroupManagement.class); return LDAPMapping.of(accountGroupMappingService.getMapping(LDAPExtensionFeature.LDAP_GROUP_MAPPING, id)); }
/** * Gets the form to update a mapping */ @RequestMapping(value = "ldap-mapping/{id}/update", method = RequestMethod.GET) public Form getMappingUpdateForm(@PathVariable ID id) { securityService.checkGlobalFunction(AccountGroupManagement.class); return accountGroupMappingService.getMapping(LDAPExtensionFeature.LDAP_GROUP_MAPPING, id).asForm( accountService.getAccountGroups() ); }