Class AuthorizationServerEndpoint
- java.lang.Object
-
- com.broadleafcommerce.auth.server.web.endpoint.AuthorizationServerEndpoint
-
@FrameworkRestController @FrameworkMapping("/servers") public class AuthorizationServerEndpoint extends Object
-
-
Constructor Summary
Constructors Constructor Description AuthorizationServerEndpoint(AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationServer
createServer(AuthorizationServer server, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
void
delete(String id)
protected AuthorizationServerService<AuthorizationServer>
getAuthorizationServerService()
org.springframework.data.domain.Page<AuthorizationServer>
readAll(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.data.domain.Pageable pageable)
AuthorizationServer
readServerById(String id)
AuthorizationServer
replaceServer(String id, AuthorizationServer server)
-
-
-
Field Detail
-
BASE_URI
public static final String BASE_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuthorizationServerEndpoint
public AuthorizationServerEndpoint(AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
-
Method Detail
-
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, 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
protected AuthorizationServerService<AuthorizationServer> getAuthorizationServerService()
-
-