Class OAuth2ScopeController
java.lang.Object
cn.herodotus.engine.rest.core.controller.BaseReadableRestController<E,ID>
cn.herodotus.engine.rest.core.controller.BaseWriteableRestController<OAuth2Scope,String>
cn.herodotus.engine.oauth2.management.controller.OAuth2ScopeController
- All Implemented Interfaces:
cn.herodotus.engine.rest.core.controller.Controller,cn.herodotus.engine.rest.core.controller.ReadableController<OAuth2Scope,,String> cn.herodotus.engine.rest.core.controller.WriteableController<OAuth2Scope,String>
@RestController
@RequestMapping("/authorize/scope")
public class OAuth2ScopeController
extends cn.herodotus.engine.rest.core.controller.BaseWriteableRestController<OAuth2Scope,String>
Description : OauthScopesController
- Author:
- : gengwei.zheng
- Date:
- : 2020/3/25 17:10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncn.herodotus.engine.assistant.definition.domain.Result<OAuth2Scope>assigned(OAuth2ScopeDto scope) cn.herodotus.engine.assistant.definition.domain.Result<List<OAuth2Scope>>findAll()cn.herodotus.engine.assistant.definition.domain.Result<OAuth2Scope>findByScopeCode(String scopeCode) cn.herodotus.engine.data.core.service.WriteableService<OAuth2Scope,String> Methods inherited from class cn.herodotus.engine.rest.core.controller.BaseWriteableRestController
delete, getReadableService, saveOrUpdateMethods inherited from class cn.herodotus.engine.rest.core.controller.BaseReadableRestController
findByPageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.herodotus.engine.rest.core.controller.Controller
getPageInfoMap, getPageInfoMap, result, result, result, result, result, result, result, resultMethods inherited from interface cn.herodotus.engine.rest.core.controller.ReadableController
findById, findByPage, findByPage
-
Constructor Details
-
OAuth2ScopeController
-
-
Method Details
-
getWriteableService
public cn.herodotus.engine.data.core.service.WriteableService<OAuth2Scope,String> getWriteableService() -
assigned
@PostMapping("/assigned") public cn.herodotus.engine.assistant.definition.domain.Result<OAuth2Scope> assigned(@RequestBody OAuth2ScopeDto scope) -
findAll
@AccessLimited @GetMapping("/list") public cn.herodotus.engine.assistant.definition.domain.Result<List<OAuth2Scope>> findAll() -
findByScopeCode
@AccessLimited @GetMapping("/{scopeCode}") public cn.herodotus.engine.assistant.definition.domain.Result<OAuth2Scope> findByScopeCode(@PathVariable("scopeCode") String scopeCode)
-