Interface IPageService
- All Known Implementing Classes:
PageService
public interface IPageService
Page Service Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePage(Page page) Create a pagegetPage(jakarta.servlet.http.HttpServletRequest request, int nMode) Returns the page for a given ID.Returns the page for a given ID.getPageContent(int nIdPage, int nMode, jakarta.servlet.http.HttpServletRequest request) Build the page content.Return the ressource id typevoidinvalidateContent(int nPageId) Invalidate Page ContentbooleanisAuthorizedAdminPage(int nId, String strPermission, AdminUser user) Check if authorizedvoidMoves a page in the tree: it takes a place among the child pages of a parent, which keep their order around it and take the orders 1 to n; the child pages of the parent it leaves close the gap.voidremovePage(int nPageId) Remove the pagevoidupdatePage(Page page) Update the page
-
Method Details
-
getPageContent
String getPageContent(int nIdPage, int nMode, jakarta.servlet.http.HttpServletRequest request) throws SiteMessageException Build the page content.- Parameters:
nIdPage- The page IDnMode- The current mode.request- The HttpRequest- Returns:
- The HTML code of the page as a String.
- Throws:
SiteMessageException- occurs when a site message need to be displayed
-
getPage
String getPage(String strIdPage, int nMode, jakarta.servlet.http.HttpServletRequest request) throws SiteMessageException Returns the page for a given ID. The page is built using XML data of each portlet or retrieved from the cache if it's enable.- Parameters:
strIdPage- The page IDnMode- The current mode.request- The HttpRequest- Returns:
- The HTML code of the page as a String.
- Throws:
SiteMessageException- occurs when a site message need to be displayed
-
getPage
String getPage(jakarta.servlet.http.HttpServletRequest request, int nMode) throws SiteMessageException Returns the page for a given ID. The page is built using XML data of each portlet or retrieved from the cache if it's enable.- Parameters:
request- The page IDnMode- The current mode.- Returns:
- The HTML code of the page as a String.
- Throws:
SiteMessageException- If a message shouldbe displayed
-
invalidateContent
void invalidateContent(int nPageId) Invalidate Page Content- Parameters:
nPageId- The Page ID
-
updatePage
Update the page- Parameters:
page- The page
-
movePage
Moves a page in the tree: it takes a place among the child pages of a parent, which keep their order around it and take the orders 1 to n; the child pages of the parent it leaves close the gap. Its authorization node follows its new parent when it is not a node of its own. The parent is assumed checked: an existing page, neither the page nor one of its descendants- Parameters:
page- the page, with its current parentnParentPageId- the new parent pagenPlace- the place among the child pages of the parent, from 1; beyond the last one, the page goes last
-
removePage
void removePage(int nPageId) Remove the page- Parameters:
nPageId- The page's id
-
createPage
Create a page- Parameters:
page- The page to create
-
isAuthorizedAdminPage
Check if authorized- Parameters:
nId- The Page's IDstrPermission- The given permissionuser- The user- Returns:
- True if authorized, otherwise false
-
getResourceTypeId
String getResourceTypeId()Return the ressource id type- Returns:
- the resource type id
-