Class AuthorizationServerEndpoint
java.lang.Object
com.broadleafcommerce.auth.server.web.endpoint.AuthorizationServerEndpoint
@FrameworkRestController
@FrameworkMapping("/servers")
public class AuthorizationServerEndpoint
extends Object
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAuthorizationServerEndpoint
(AuthorizationServerService<AuthorizationServer> authorizationServerService) -
Method Summary
Modifier and TypeMethodDescriptioncreateServer
(AuthorizationServer server, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
protected AuthorizationServerService<AuthorizationServer>
org.springframework.data.domain.Page<AuthorizationServer>
readAll
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.data.domain.Pageable pageable) readServerById
(String id) replaceServer
(String id, AuthorizationServer server)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
AuthorizationServerEndpoint
public AuthorizationServerEndpoint(AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
-
Method Details
-
readAll
@FrameworkGetMapping @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=READ) public org.springframework.data.domain.Page<AuthorizationServer> readAll(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PageableDefault(size=50) org.springframework.data.domain.Pageable pageable) -
readServerById
@FrameworkGetMapping("/{id}") @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=READ) public AuthorizationServer readServerById(@PathVariable("id") String id) -
replaceServer
@FrameworkPutMapping("/{id}") @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=UPDATE) public AuthorizationServer replaceServer(@PathVariable("id") String id, @RequestBody AuthorizationServer server) -
createServer
@FrameworkPostMapping @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=CREATE) public AuthorizationServer createServer(@RequestBody AuthorizationServer server, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
delete
@FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=DELETE) public void delete(@PathVariable String id) -
getAuthorizationServerService
-