Class AuthorizedClientEndpoint
- java.lang.Object
-
- com.broadleafcommerce.auth.server.web.endpoint.AuthorizedClientEndpoint
-
@FrameworkRestController @FrameworkMapping("/servers/{serverId}/clients") public class AuthorizedClientEndpoint extends Object
-
-
Constructor Summary
Constructors Constructor Description AuthorizedClientEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService, AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizedClient
createAuthorizedClient(String serverId, AuthorizedClient authorizedClient)
void
delete(String serverId, String id)
org.springframework.data.domain.Page<AuthorizedClient>
readAllAuthorizedClients(String serverId, org.springframework.data.domain.Pageable pageable)
AuthorizedClient
readAuthorizedClientById(String serverId, String id)
AuthorizedClient
replaceAuthorizedClientById(String serverId, String id, AuthorizedClient authorizedClient)
-
-
-
Field Detail
-
BASE_URI
public static final String BASE_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuthorizedClientEndpoint
public AuthorizedClientEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService, AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
-
Method Detail
-
readAllAuthorizedClients
@FrameworkGetMapping @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=READ) public org.springframework.data.domain.Page<AuthorizedClient> readAllAuthorizedClients(@PathVariable("serverId") String serverId, org.springframework.data.domain.Pageable pageable)
-
readAuthorizedClientById
@FrameworkGetMapping("/{id}") @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=READ) public AuthorizedClient readAuthorizedClientById(@PathVariable("serverId") String serverId, @PathVariable("id") String id)
-
replaceAuthorizedClientById
@FrameworkPutMapping("/{id}") @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=UPDATE) public AuthorizedClient replaceAuthorizedClientById(@PathVariable("serverId") String serverId, @PathVariable("id") String id, @RequestBody AuthorizedClient authorizedClient)
-
createAuthorizedClient
@FrameworkPostMapping @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=CREATE) public AuthorizedClient createAuthorizedClient(@PathVariable("serverId") String serverId, @RequestBody AuthorizedClient authorizedClient)
-
-