Class PageLayoutRest

java.lang.Object
io.meeds.layout.rest.PageLayoutRest

@RestController @RequestMapping("pages") public class PageLayoutRest extends Object
  • Constructor Details

    • PageLayoutRest

      public PageLayoutRest()
  • Method Details

    • getPages

      @GetMapping public List<org.exoplatform.portal.mop.page.PageContext> getPages(jakarta.servlet.http.HttpServletRequest request, @RequestParam(name="siteType",required=false) String siteType, @RequestParam(name="siteName",required=false) String siteName, @RequestParam(name="pageDisplayName",required=false) String pageDisplayName, @RequestParam(name="offset",required=false,defaultValue="0") int offset, @RequestParam(name="limit",required=false,defaultValue="10") int limit)
    • getPageLayout

      @GetMapping("layout") public LayoutModel getPageLayout(jakarta.servlet.http.HttpServletRequest request, @RequestParam("pageRef") String pageRef, @RequestParam(name="applicationId",required=false,defaultValue="0") long applicationId, @RequestParam(name="impersonate",required=false,defaultValue="false") boolean impersonate, @RequestParam(name="expand",required=false) String expand)
    • getPage

      @GetMapping("byRef") public org.exoplatform.portal.mop.page.PageContext getPage(jakarta.servlet.http.HttpServletRequest request, @RequestParam("pageRef") String pageRef)
    • createPage

      @PostMapping @Secured("users") public org.exoplatform.portal.mop.page.PageContext createPage(jakarta.servlet.http.HttpServletRequest request, @RequestBody PageCreateModel createModel)
    • updatePageLayout

      @PutMapping("layout") @Secured("users") public LayoutModel updatePageLayout(jakarta.servlet.http.HttpServletRequest request, @RequestParam("pageRef") String pageRef, @RequestParam(name="publish",required=false) Optional<Boolean> publish, @RequestParam("expand") String expand, @RequestBody LayoutModel layoutModel)
    • updatePageLink

      @PatchMapping(name="link", consumes="application/x-www-form-urlencoded") @Secured("users") public void updatePageLink(jakarta.servlet.http.HttpServletRequest request, @RequestParam("pageRef") String pageRef, @RequestParam("link") String link)
    • updatePagePermissions

      @PatchMapping("permissions") @Secured("users") public void updatePagePermissions(jakarta.servlet.http.HttpServletRequest request, @RequestParam("pageRef") String pageRef, @RequestBody PermissionUpdateModel permissionUpdateModel)
    • cloneSection

      @PostMapping(value="cloneSection/{storageId}", consumes="application/x-www-form-urlencoded") @Secured("users") public void cloneSection(jakarta.servlet.http.HttpServletRequest request, @PathVariable("storageId") long containerId, @RequestParam("pageRef") String pageRef)
    • updatePageApplicationPreferences

      @PatchMapping("application/preferences") @Secured("users") public void updatePageApplicationPreferences(jakarta.servlet.http.HttpServletRequest request, @RequestParam("pageRef") String pageRef, @RequestParam("applicationId") long applicationId, @RequestBody PortletPreferenceList portletPreferenceList)