Class PageHome
java.lang.Object
fr.paris.lutece.portal.business.page.PageHome
This class provides instances management methods (create, find, ...) for Page objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckPageExist(int nPageId) Check if the page existsstatic PageCreates an instance of pagestatic PagefindByPrimaryKey(int nKey) Returns an instance of un page whose identifier is specified in parameterReturn the list of all the pages from a portal identifierstatic Collection<Page>getChildPages(int nParentPageId) Returns the list of the child pages from the current parent page identifierstatic Collection<Page>getChildPagesMinimalData(int nParentPageId) Returns the list of the child pages from the current parent page identifierstatic ImageResourcegetImageResource(int nPageId) Gets an image resourcestatic PageGet the last modified pagestatic intgetNewChildPageOrder(int nParentPageId) Select the max child page order and create the new order for new child pagestatic PagegetPage(int nPageId) Loads a page without portlets from its identifierstatic PagegetPageByIdPortlet(int nPorletId) Loads a page associated to a portletstatic Collection<Page>getPagesByRoleKey(String strRoleKey) Return the list of all the pages filtered by Lutece Role specified in parameterstatic ReferenceListReturns the list of pagegetPagesWhichMustChangeAuthorizationNode(int nIdParentPage) get list of children Pages Which Must Change their authorization nodestatic PagegetPageWithoutImageContent(int nPageId) Loads a page without portlets from its identifier without image contentstatic voidremove(int nPageId) Removes a page and all its contents (the portlets and theirs contents)static voidupdate of the page which is specified in parameterstatic voidupdateAuthorizationNode(int nIdPage, Integer nIdAuthorizationNode) Update the authorization node of the page
-
Method Details
-
create
Creates an instance of page- Parameters:
page- An instance of page which contains the informations to store- Returns:
- The instance of page which has been created with its primary key.
-
remove
public static void remove(int nPageId) Removes a page and all its contents (the portlets and theirs contents)- Parameters:
nPageId- The page identifier
-
update
update of the page which is specified in parameter- Parameters:
page- the instance of the page which contains the data to store
-
findByPrimaryKey
Returns an instance of un page whose identifier is specified in parameter- Parameters:
nKey- the primary key of the page- Returns:
- an instance of the class
-
getPage
Loads a page without portlets from its identifier- Parameters:
nPageId- the page identifier- Returns:
- an instance a the class Page
-
getPageWithoutImageContent
Loads a page without portlets from its identifier without image content- Parameters:
nPageId- the page identifier- Returns:
- an instance a the class Page
-
getPageByIdPortlet
Loads a page associated to a portlet- Parameters:
nPorletId- The indentifier of the object portlet associate to the page- Returns:
- The Instance of the object Page
-
getChildPages
Returns the list of the child pages from the current parent page identifier- Parameters:
nParentPageId- the current page identifier, parent of childs pages- Returns:
- a collection of pages
-
getChildPagesMinimalData
Returns the list of the child pages from the current parent page identifier- Parameters:
nParentPageId- the ParentPageId identifier- Returns:
- page collection
-
getAllPages
Return the list of all the pages from a portal identifier- Returns:
- a collection of pages
-
getPagesList
Returns the list of page- Returns:
- the list of pages
-
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
-
getImageResource
Gets an image resource- Parameters:
nPageId- The page ID- Returns:
- ImageResource
-
getNewChildPageOrder
public static int getNewChildPageOrder(int nParentPageId) Select the max child page order and create the new order for new child page- Parameters:
nParentPageId- The parent page Id- Returns:
- the new child page order
-
checkPageExist
public static boolean checkPageExist(int nPageId) Check if the page exists- Parameters:
nPageId- The Page ID- Returns:
- True if the page exists, otherwise false
-
getLastModifiedPage
Get the last modified page- Returns:
- the last modified
Page
-
getPagesWhichMustChangeAuthorizationNode
get list of children Pages Which Must Change their authorization node- Parameters:
nIdParentPage- the id of the parent page- Returns:
- an id list
-
updateAuthorizationNode
Update the authorization node of the page- Parameters:
nIdPage- the page idnIdAuthorizationNode- the authorization node id
-