Class SysElementController
java.lang.Object
cn.herodotus.engine.web.api.servlet.AbstractReadableController<E,ID,S>
cn.herodotus.engine.web.api.servlet.AbstractWriteableController<E,ID,cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<E,ID>>
cn.herodotus.engine.web.api.servlet.AbstractJpaWriteableController<SysElement,String>
cn.herodotus.engine.rest.servlet.upms.controller.security.SysElementController
- All Implemented Interfaces:
cn.herodotus.engine.core.definition.domain.BaseDomain,cn.herodotus.engine.core.definition.domain.Pagination,BindingController<SysElement,,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysElement, String>> PageController<SysElement,,String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysElement, String>> PaginationController,cn.herodotus.engine.web.core.definition.Controller,Serializable
@RestController
@RequestMapping("/security/element")
public class SysElementController
extends AbstractJpaWriteableController<SysElement,String>
Description: SysMenuController
- Author:
- : gengwei.zheng
- See Also:
- Date:
- : 2022/7/14 16:05
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncn.herodotus.engine.core.definition.domain.Result<SysElement>cn.herodotus.engine.core.definition.domain.Result<List<SysElement>>findAll()findByCondition(@NotNull Integer pageNumber, @NotNull Integer pageSize, String path, String title) cn.herodotus.engine.core.definition.domain.Result<SysElement>findTree()cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysElement,String> Methods inherited from class cn.herodotus.engine.web.api.servlet.AbstractJpaWriteableController
saveMethods inherited from class cn.herodotus.engine.web.api.servlet.AbstractWriteableController
deleteMethods inherited from class cn.herodotus.engine.web.api.servlet.AbstractReadableController
findByPageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.herodotus.engine.web.core.definition.Controller
result, result, result, result, result, result, resultMethods inherited from interface cn.herodotus.engine.web.api.servlet.PageController
findByPage, findByPageMethods inherited from interface cn.herodotus.engine.core.definition.domain.Pagination
with, withMethods inherited from interface cn.herodotus.engine.web.api.servlet.PaginationController
fromPage, fromSlice, resultFromPage, resultFromSlice
-
Constructor Details
-
SysElementController
-
-
Method Details
-
getService
public cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysElement,String> getService() -
findTree
-
findByCondition
@GetMapping("/condition") public cn.herodotus.engine.core.definition.domain.Result<Map<String,Object>> findByCondition(@NotNull @RequestParam("pageNumber") @NotNull Integer pageNumber, @NotNull @RequestParam("pageSize") @NotNull Integer pageSize, @RequestParam(value="path",required=false) String path, @RequestParam(value="title",required=false) String title) -
assign
@PutMapping public cn.herodotus.engine.core.definition.domain.Result<SysElement> assign(@RequestParam(name="elementId") String elementId, @RequestParam(name="roles[]") String[] roles) -
findAll
@AccessLimited @GetMapping("/list") public cn.herodotus.engine.core.definition.domain.Result<List<SysElement>> findAll() -
findById
@AccessLimited @GetMapping("/{id}") public cn.herodotus.engine.core.definition.domain.Result<SysElement> findById(@PathVariable String id)
-