|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.portal.service.content.ContentService
fr.paris.lutece.portal.service.page.PageService
public class PageService
This class delivers pages to web componants. It handles XML tranformation to HTML and provides a cache feature in order to reduce the number of tranformations.
Field Summary | |
---|---|
static java.lang.String |
TEMPLATE_PAGE_ACCESS_CONTROLED
|
static java.lang.String |
TEMPLATE_PAGE_ACCESS_DENIED
|
Constructor Summary | |
---|---|
PageService()
Creates a new PageService object. |
Method Summary | |
---|---|
void |
addPageEventListener(PageEventListener listener)
Add a new page event listener |
java.lang.String |
buildPageContent(java.lang.String strIdPage,
int nMode,
javax.servlet.http.HttpServletRequest request,
java.lang.Boolean bCanBeCached)
Build the page content. |
void |
createPage(Page page)
Create a page |
ImageResource |
getImageResource(int nIdResource)
Return the Resource id |
static PageService |
getInstance()
|
java.lang.String |
getName()
Returns the Content Service name |
java.lang.String |
getPage(javax.servlet.http.HttpServletRequest request,
int nMode)
Returns the page for a given ID. |
java.lang.String |
getPage(java.lang.String strIdPage,
int nMode,
javax.servlet.http.HttpServletRequest request)
Returns the page for a given ID. |
java.lang.String |
getResourceTypeId()
Returns the resource type Id |
void |
invalidateContent(int nPageId)
|
boolean |
isInvoked(javax.servlet.http.HttpServletRequest request)
Analyzes request's parameters to see if the request should be handled by the current Content Service |
void |
processPageEvent(PageEvent event)
Process a page event |
void |
removePage(int nPageId)
Remove a given page |
void |
updatePage(Page page)
Update a given page |
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService |
---|
getCache, getCacheSize, getFromCache, initCache, isCacheEnable, putInCache, resetCache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEMPLATE_PAGE_ACCESS_DENIED
public static final java.lang.String TEMPLATE_PAGE_ACCESS_CONTROLED
Constructor Detail |
---|
public PageService()
Method Detail |
---|
public static PageService getInstance()
public java.lang.String getName()
getName
in interface LuteceService
public boolean isInvoked(javax.servlet.http.HttpServletRequest request)
isInvoked
in class ContentService
request
- The HTTP request
public java.lang.String getPage(javax.servlet.http.HttpServletRequest request, int nMode)
getPage
in class ContentService
request
- The page IDnMode
- The current mode.
public java.lang.String getPage(java.lang.String strIdPage, int nMode, javax.servlet.http.HttpServletRequest request)
strIdPage
- The page IDnMode
- The current mode.request
- The HttpRequest
public java.lang.String buildPageContent(java.lang.String strIdPage, int nMode, javax.servlet.http.HttpServletRequest request, java.lang.Boolean bCanBeCached)
strIdPage
- The page IDnMode
- The current mode.request
- The HttpRequestbCanBeCached
- The boolean
public void addPageEventListener(PageEventListener listener)
listener
- An event listener to addpublic java.lang.String getResourceTypeId()
getResourceTypeId
in interface ImageResourceProvider
public ImageResource getImageResource(int nIdResource)
ImageResourceProvider
getImageResource
in interface ImageResourceProvider
nIdResource
- The Resource identifier
public void createPage(Page page)
The
- page to createpublic void updatePage(Page page)
The
- page to updatepublic void removePage(int nPageId)
nPageId
- The page Idpublic void processPageEvent(PageEvent event)
PageEventListener
processPageEvent
in interface PageEventListener
event
- The event to processpublic void invalidateContent(int nPageId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |