Class LdapController
- java.lang.Object
-
- com.netgrif.application.engine.orgstructure.web.LdapController
-
@RestController @RequestMapping("/api/ldap") @ConditionalOnExpression("${nae.ldap.enabled:false}") public class LdapController extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ILdapGroupRefService
service
-
Constructor Summary
Constructors Constructor Description LdapController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageResource
assignRolesToLdapGroup(LdapGroupRoleAssignRequestBody requestBody, org.springframework.security.core.Authentication auth)
LdapGroupsResource
getAllLdapGroups(LdapGroupSearchBody body, org.springframework.security.core.Authentication auth)
-
-
-
Field Detail
-
service
@Autowired protected ILdapGroupRefService service
-
-
Method Detail
-
getAllLdapGroups
@PreAuthorize("@authorizationService.hasAuthority(\'ADMIN\')") @PostMapping(value="/search", produces="application/hal+json") public LdapGroupsResource getAllLdapGroups(@RequestBody LdapGroupSearchBody body, org.springframework.security.core.Authentication auth)
-
assignRolesToLdapGroup
@PreAuthorize("@authorizationService.hasAuthority(\'ADMIN\')") @PostMapping(value="/role/assign", consumes="application/json", produces="application/hal+json") public MessageResource assignRolesToLdapGroup(@RequestBody LdapGroupRoleAssignRequestBody requestBody, org.springframework.security.core.Authentication auth)
-
-