Interface IPageService
-
- All Known Implementing Classes:
PageService
public interface IPageServicePage Service Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreatePage(Page page)Create a pagejava.lang.StringgetPage(java.lang.String strIdPage, int nMode, javax.servlet.http.HttpServletRequest request)Returns the page for a given ID.java.lang.StringgetPage(javax.servlet.http.HttpServletRequest request, int nMode)Returns the page for a given ID.java.lang.StringgetPageContent(int nIdPage, int nMode, javax.servlet.http.HttpServletRequest request)Build the page content.java.lang.StringgetResourceTypeId()Return the ressource id typevoidinvalidateContent(int nPageId)Invalidate Page ContentbooleanisAuthorizedAdminPage(int nId, java.lang.String strPermission, AdminUser user)Check if authorizedvoidremovePage(int nPageId)Remove the pagevoidupdatePage(Page page)Update the page
-
-
-
Method Detail
-
getPageContent
java.lang.String getPageContent(int nIdPage, int nMode, javax.servlet.http.HttpServletRequest request) throws SiteMessageExceptionBuild 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
java.lang.String getPage(java.lang.String strIdPage, int nMode, javax.servlet.http.HttpServletRequest request) throws SiteMessageExceptionReturns 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
java.lang.String getPage(javax.servlet.http.HttpServletRequest request, int nMode) throws SiteMessageExceptionReturns 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
void updatePage(Page page)
Update the page- Parameters:
page- The page
-
removePage
void removePage(int nPageId)
Remove the page- Parameters:
nPageId- The page's id
-
createPage
void createPage(Page page)
Create a page- Parameters:
page- The page to create
-
isAuthorizedAdminPage
boolean isAuthorizedAdminPage(int nId, java.lang.String strPermission, AdminUser user)Check if authorized- Parameters:
nId- The Page's IDstrPermission- The given permissionuser- The user- Returns:
- True if authorized, otherwise false
-
getResourceTypeId
java.lang.String getResourceTypeId()
Return the ressource id type- Returns:
- the resource type id
-
-