Class PageDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.page.PageDAO
-
-
Constructor Summary
Constructors Constructor Description PageDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckPageExist(int nPageId)Tests if page existvoiddelete(int nPageId)Delete a record from the tablejava.util.Collection<Page>getPagesByRoleKey(java.lang.String strRoleKey)Return the list of all the pages filtered by Lutece Role specified in parameterReferenceListgetPagesList()Load the Referencelist of documentTypesvoidinsert(Page page)Insert a new record in the table.voidinvalidatePage(int nPageId)Invalidate the page after a modificationPageload(int nPageId, boolean bPortlets)load the data of level from the tableImageResourceloadImageResource(int nIdPage)Load a image corresponding to an PagePageloadLastModifiedPage()Load the last modified pagePageloadPageByIdPortlet(int nPorletId)load a page associated to a portletPageloadWithoutImageContent(int nPageId, boolean bPortlets)load the data of level from the table without image contentjava.util.List<Page>selectAllPages()Loads all the pages for a portaljava.util.Collection<Page>selectChildPages(int nParentPageId)Select all the child pages for a page which is specified in parameterjava.util.Collection<Page>selectChildPagesMinimalData(int nParentPageId)Select all child pages for a page which is specified in parameter For each pages, only select : Id, pageParentId, name and descriptionintselectNewChildPageOrder(int nParentPageId)Search the last order of child page listjava.util.List<java.lang.Integer>selectPageForChangeAutorisationNode(int nIdParentPage)select list of children Pages Which Must Change their authorization nodevoidstore(Page page)Update the record in the tablevoidupdateAutorisationNode(int nIdPage, java.lang.Integer nIdAutorisationNode)Update the authorization node of the page
-
-
-
Method Detail
-
insert
public void insert(Page page)
Insert a new record in the table.
-
load
public Page load(int nPageId, boolean bPortlets)
load the data of level from the table
-
loadWithoutImageContent
public Page loadWithoutImageContent(int nPageId, boolean bPortlets)
load the data of level from the table without image content- Specified by:
loadWithoutImageContentin interfaceIPageDAO- Parameters:
nPageId- The identifier of the object PagebPortlets- The boolean- Returns:
- The Instance of the object Page
-
loadPageByIdPortlet
public Page loadPageByIdPortlet(int nPorletId)
load a page associated to a portlet- Specified by:
loadPageByIdPortletin interfaceIPageDAO- Parameters:
nPorletId- The identifier of the object portlet associate to the page- Returns:
- The Instance of the object Page
-
delete
public void delete(int nPageId)
Delete a record from the table
-
store
public void store(Page page)
Update the record in the table
-
selectChildPages
public java.util.Collection<Page> selectChildPages(int nParentPageId)
Select all the child pages for a page which is specified in parameter- Specified by:
selectChildPagesin interfaceIPageDAO- Parameters:
nParentPageId- The parent page identifier- Returns:
- The list of objects Page (without portlets list)
-
selectChildPagesMinimalData
public java.util.Collection<Page> selectChildPagesMinimalData(int nParentPageId)
Select all child pages for a page which is specified in parameter For each pages, only select : Id, pageParentId, name and description- Specified by:
selectChildPagesMinimalDatain interfaceIPageDAO- Parameters:
nParentPageId- the ParentPageId identifier- Returns:
- The list of objects Page
-
selectAllPages
public java.util.List<Page> selectAllPages()
Loads all the pages for a portal- Specified by:
selectAllPagesin interfaceIPageDAO- Returns:
- The pages of the current portal (without portlets list, of course !)
-
invalidatePage
public void invalidatePage(int nPageId)
Invalidate the page after a modification- Specified by:
invalidatePagein interfaceIPageDAO- Parameters:
nPageId- the page identifier
-
getPagesList
public ReferenceList getPagesList()
Load the Referencelist of documentTypes- Specified by:
getPagesListin interfaceIPageDAO- Returns:
- listDocumentTypes
-
getPagesByRoleKey
public java.util.Collection<Page> getPagesByRoleKey(java.lang.String strRoleKey)
Return the list of all the pages filtered by Lutece Role specified in parameter- Specified by:
getPagesByRoleKeyin interfaceIPageDAO- Parameters:
strRoleKey- The Lutece Role key- Returns:
- a collection of pages
-
selectNewChildPageOrder
public int selectNewChildPageOrder(int nParentPageId)
Search the last order of child page list- Specified by:
selectNewChildPageOrderin interfaceIPageDAO- Parameters:
nParentPageId- The parent page Id- Returns:
- The new page order
-
loadImageResource
public ImageResource loadImageResource(int nIdPage)
Load a image corresponding to an Page- Specified by:
loadImageResourcein interfaceIPageDAO- Parameters:
nIdPage- The Page Id- Returns:
- the instance of the ImageContent
-
checkPageExist
public boolean checkPageExist(int nPageId)
Tests if page exist- Specified by:
checkPageExistin interfaceIPageDAO- Parameters:
nPageId- The identifier of the document- Returns:
- true if the page existed, false otherwise
-
loadLastModifiedPage
public Page loadLastModifiedPage()
Load the last modified page- Specified by:
loadLastModifiedPagein interfaceIPageDAO- Returns:
- the last modified
Page
-
updateAutorisationNode
public void updateAutorisationNode(int nIdPage, java.lang.Integer nIdAutorisationNode)Update the authorization node of the page- Specified by:
updateAutorisationNodein interfaceIPageDAO- Parameters:
nIdPage- the page idnIdAutorisationNode- the authorization node id
-
selectPageForChangeAutorisationNode
public java.util.List<java.lang.Integer> selectPageForChangeAutorisationNode(int nIdParentPage)
select list of children Pages Which Must Change their authorization node- Specified by:
selectPageForChangeAutorisationNodein interfaceIPageDAO- Parameters:
nIdParentPage- the id of the parent page- Returns:
- an id list
-
-