public final class PageHome extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkPageExist(int nPageId)
Check if the page exists
|
static Page |
create(Page page)
Creates an instance of page
|
static Page |
findByPrimaryKey(int nKey)
Returns an instance of un page whose identifier is specified in parameter
|
static List<Page> |
getAllPages()
Return the list of all the pages from a portal identifier
|
static Collection<Page> |
getChildPages(int nParentPageId)
Returns the list of the child pages from the current parent page identifier
|
static Collection<Page> |
getChildPagesMinimalData(int nParentPageId)
Returns the list of the child pages from the current parent page identifier
|
static ImageResource |
getImageResource(int nPageId)
Gets an image resource
|
static Page |
getLastModifiedPage()
Get the last modified page
|
static int |
getNewChildPageOrder(int nParentPageId)
Select the max child page order and create the new order for new child page
|
static Page |
getPage(int nPageId)
Loads a page without portlets from its identifier
|
static Page |
getPageByIdPortlet(int nPorletId)
Loads a page associated to a portlet
|
static Collection<Page> |
getPagesByRoleKey(String strRoleKey)
Return the list of all the pages filtered by Lutece Role specified in parameter
|
static ReferenceList |
getPagesList()
Returns the list of page
|
static List<Integer> |
getPagesWhichMustChangeAuthorizationNode(int nIdParentPage)
get list of children Pages Which Must Change their authorization node
|
static Page |
getPageWithoutImageContent(int nPageId)
Loads a page without portlets from its identifier without image content
|
static void |
remove(int nPageId)
Removes a page and all its contents (the portlets and theirs contents)
|
static void |
update(Page page)
update of the page which is specified in parameter
|
static void |
updateAuthorizationNode(int nIdPage,
Integer nIdAuthorizationNode)
Update the authorization node of the page
|
public static Page create(Page page)
page
- An instance of page which contains the informations to storepublic static void remove(int nPageId)
nPageId
- The page identifierpublic static void update(Page page)
page
- the instance of the page which contains the data to storepublic static Page findByPrimaryKey(int nKey)
nKey
- the primary key of the pagepublic static Page getPage(int nPageId)
nPageId
- the page identifierpublic static Page getPageWithoutImageContent(int nPageId)
nPageId
- the page identifierpublic static Page getPageByIdPortlet(int nPorletId)
nPorletId
- The indentifier of the object portlet associate to the pagepublic static Collection<Page> getChildPages(int nParentPageId)
nParentPageId
- the current page identifier, parent of childs pagespublic static Collection<Page> getChildPagesMinimalData(int nParentPageId)
nParentPageId
- the ParentPageId identifierpublic static List<Page> getAllPages()
public static ReferenceList getPagesList()
public static Collection<Page> getPagesByRoleKey(String strRoleKey)
strRoleKey
- The Lutece Role keypublic static ImageResource getImageResource(int nPageId)
nPageId
- The page IDpublic static int getNewChildPageOrder(int nParentPageId)
nParentPageId
- The parent page Idpublic static boolean checkPageExist(int nPageId)
nPageId
- The Page IDpublic static Page getLastModifiedPage()
Page
public static List<Integer> getPagesWhichMustChangeAuthorizationNode(int nIdParentPage)
nIdParentPage
- the id of the parent pagepublic static void updateAuthorizationNode(int nIdPage, Integer nIdAuthorizationNode)
nIdPage
- the page idnIdAuthorizationNode
- the authorization node idCopyright © 2020 City of Paris. All rights reserved.