Interface IPageDAO
- All Known Implementing Classes:
PageDAO
public interface IPageDAO
IPageDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPageExist(int nPageId) Tests if page existvoiddelete(int nPageId) Delete a record from the tablegetPagesByRoleKey(String strRoleKey) Return the list of all the pages filtered by Lutece Role specified in parameterLoad the Referencelist of documentTypesvoidInsert a new record in the table.voidinvalidatePage(int nPageId) Invalidate the page after a modificationload(int nPageId, boolean bPortlets) load the data of level from the tableloadImageResource(int nIdPage) Load a image corresponding to an PageLoad the last modified pageloadPageByIdPortlet(int nPorletId) load a page associated to a portletloadWithoutImageContent(int nPageId, boolean bPortlets) load the data of level from the table without image contentLoads all the pages for a portalSelect all the pages of the site, ordered by parent then by order among the child pages of the parent.selectChildPages(int nParentPageId) Select all the child pages for a page which is specified in parameterselectChildPagesMinimalData(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 listselectPageForChangeAutorisationNode(int nIdParentPage) select list of children Pages Which Must Change their authorization nodevoidUpdate the record in the tablevoidupdateAutorisationNode(int nIdPage, Integer nIdAuthorizationNode) Update the authorization node of the pagevoidupdatePosition(int nIdPage, int nIdParentPage, int nOrder) Updates the place of a page in the tree: its parent and its order among the child pages of that parent
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
page- The Page object
-
load
load the data of level from the table- Parameters:
nPageId- The identifier of the object PagebPortlets- The boolean- Returns:
- The Instance of the object Page
-
loadWithoutImageContent
load the data of level from the table without image content- Parameters:
nPageId- The identifier of the object PagebPortlets- The boolean- Returns:
- The Instance of the object Page
-
loadPageByIdPortlet
load a page associated to a portlet- Parameters:
nPorletId- The identifier of the object portlet associate to the page- Returns:
- The Instance of the object Page
-
delete
void delete(int nPageId) Delete a record from the table- Parameters:
nPageId- The identifier of the object nPageId
-
store
Update the record in the table- Parameters:
page- The instance of the page to update
-
selectChildPages
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)
-
selectChildPagesMinimalData
Select all child pages for a page which is specified in parameter For each pages, only select : Id, pageParentId, name and description- Parameters:
nParentPageId- the ParentPageId identifier- Returns:
- The list of objects Page
-
selectAllPagesMinimalData
Select all the pages of the site, ordered by parent then by order among the child pages of the parent. For each page, only select : Id, pageParentId, name, description, role and node status- Returns:
- The list of objects 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
-
getPagesByRoleKey
Return the list of all the pages filtered by Lutece Role specified in parameter- Parameters:
strRoleKey- The Lutece Role key- Returns:
- a collection of pages
-
selectNewChildPageOrder
int selectNewChildPageOrder(int nParentPageId) Search the last order of child page list- Parameters:
nParentPageId- The parent page Id- Returns:
- The new page order
-
loadImageResource
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
-
loadLastModifiedPage
Page loadLastModifiedPage()Load the last modified page- Returns:
- the last modified
Page
-
updateAutorisationNode
Update the authorization node of the page- Parameters:
nIdPage- the page idnIdAuthorizationNode- the authorization node id
-
selectPageForChangeAutorisationNode
select list of children Pages Which Must Change their authorization node- Parameters:
nIdParentPage- the id of the parent page- Returns:
- an id list
-
updatePosition
void updatePosition(int nIdPage, int nIdParentPage, int nOrder) Updates the place of a page in the tree: its parent and its order among the child pages of that parent- Parameters:
nIdPage- the page idnIdParentPage- the parent page idnOrder- the order among the child pages of the parent
-