Class NewsRestController


@RestController @RequestMapping("/admin/rest/news/news-list") @PreAuthorize("@WebjetSecurityService.hasPermission(\'cmp_news\')") public class NewsRestController extends WebpagesDatatable
Rest controller for app news, there are only support methods, because for data it will use WebpagesRestController calls
  • Constructor Details

  • Method Details

    • getAllItems

      public org.springframework.data.domain.Page<DocDetails> getAllItems(org.springframework.data.domain.Pageable pageable)
      Description copied from class: DatatableRestControllerV2
      Ziska z databazy vsetky zaznamy
      Overrides:
      getAllItems in class WebpagesDatatable
      Returns:
    • getOneItem

      public DocDetails getOneItem(long id)
      Description copied from class: DatatableRestControllerV2
      Ziska z databazy entitu so zadanym id
      Overrides:
      getOneItem in class WebpagesDatatable
      Returns:
    • tree

      @PostMapping("/tree") public Map<String,Object> tree(@RequestBody JsTreeMoveItem item, @RequestParam(required=false) String include, @RequestParam(defaultValue="-1") int selectedId, @RequestParam(required=false) String treeSearchValue, @RequestParam(defaultValue="contains") String treeSearchType, jakarta.servlet.http.HttpServletRequest request)
      Returns the permitted News roots, their children, or scoped folder search results.
    • convertIdsToNamePairEndpoint

      @PostMapping("/convertIdsToNamePair") public List<LabelValue> convertIdsToNamePairEndpoint(@RequestParam String ids, @RequestParam(required=false) String include, jakarta.servlet.http.HttpServletRequest request)
    • convertIdsToNamePair

      public static List<LabelValue> convertIdsToNamePair(String ids, String include, jakarta.servlet.http.HttpServletRequest request)