fr.paris.lutece.portal.business.page
Interface IPageDAO

All Known Implementing Classes:
PageDAO

public interface IPageDAO

IPageDAO Interface


Method Summary
 boolean checkPageExist(int nPageId)
          Tests if page exist
 void delete(int nPageId)
          Delete a record from the table
 ReferenceList getPagesList()
          Load the Referencelist of documentTypes
 void insert(Page page)
          Insert a new record in the table.
 void invalidatePage(int nPageId)
          Invalidate the page after a modification
 Page load(int nPageId, boolean bPortlets)
          load the data of Level from the table
 ImageResource loadImageResource(int nIdPage)
          Load a image corresponding to an Page
 java.util.List<Page> selectAllPages()
          Loads all the pages for a portal
 java.util.Collection<Page> selectChildPages(int nParentPageId)
          Select all the child pages for a page which is specified in parameter
 int selectNewChildPageOrder(int nParentPageId)
          Serach the last order of child page list
 void store(Page page)
          Update the record in the table
 

Method Detail

insert

void insert(Page page)
Insert a new record in the table.

Parameters:
page - The Page object

load

Page load(int nPageId,
          boolean bPortlets)
load the data of Level from the table

Parameters:
nPageId - The indentifier of the object Page
bPortlets - The boolean
Returns:
The Instance of the object Page

delete

void delete(int nPageId)
Delete a record from the table

Parameters:
nPageId - The indentifier of the object nPageId

store

void store(Page page)
Update the record in the table

Parameters:
page - The instance of the page to update

selectChildPages

java.util.Collection<Page> selectChildPages(int nParentPageId)
Select all the child pages for a page which is specified in parameter

Parameters:
nParentPageId - The parent page identifier
Returns:
The list of objects Page (without portlets list)

selectAllPages

java.util.List<Page> selectAllPages()
Loads all the pages for a portal

Returns:
The pages of the current portal (without portlets list, of course !)

invalidatePage

void invalidatePage(int nPageId)
Invalidate the page after a modification

Parameters:
nPageId - the page identifier

getPagesList

ReferenceList getPagesList()
Load the Referencelist of documentTypes

Returns:
listDocumentTypes

selectNewChildPageOrder

int selectNewChildPageOrder(int nParentPageId)
Serach the last order of child page list

Returns:
The new page order

loadImageResource

ImageResource loadImageResource(int nIdPage)
Load a image corresponding to an Page

Parameters:
nIdPage - The Page Id
Returns:
the instance of the ImageContent

checkPageExist

boolean checkPageExist(int nPageId)
Tests if page exist

Parameters:
nPageId - The identifier of the document
Returns:
true if the page existed, false otherwise


Copyright © 2007 Mairie de Paris. All Rights Reserved.