|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.business.page.PageHome
public final class PageHome
This class provides instances management methods (create, find, ...) for Page objects
Method Summary | |
---|---|
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 java.util.List<Page> |
getAllPages()
Return the list of all the pages from a portal identifier |
static java.util.Collection<Page> |
getChildPages(int nParentPageId)
Returns the list of the child pages from the current parent page identifier |
static java.util.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 java.util.Collection<Page> |
getPagesByRoleKey(java.lang.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 java.util.List<java.lang.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,
java.lang.Integer nIdAuthorizationNode)
Update the authorization node of the page |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Page create(Page page)
page
- An instance of page which contains the informations to store
public 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 page
public static Page getPage(int nPageId)
nPageId
- the page identifier
public static Page getPageWithoutImageContent(int nPageId)
nPageId
- the page identifier
public static Page getPageByIdPortlet(int nPorletId)
nPorletId
- The indentifier of the object portlet associate to the page
public static java.util.Collection<Page> getChildPages(int nParentPageId)
nParentPageId
- the current page identifier, parent of childs pages
public static java.util.Collection<Page> getChildPagesMinimalData(int nParentPageId)
nParentPageId
- the ParentPageId identifier
public static java.util.List<Page> getAllPages()
public static ReferenceList getPagesList()
public static java.util.Collection<Page> getPagesByRoleKey(java.lang.String strRoleKey)
strRoleKey
- The Lutece Role key
public static ImageResource getImageResource(int nPageId)
nPageId
- The page ID
public static int getNewChildPageOrder(int nParentPageId)
nParentPageId
- The parent page Id
public static boolean checkPageExist(int nPageId)
nPageId
- The Page ID
public static Page getLastModifiedPage()
Page
public static java.util.List<java.lang.Integer> getPagesWhichMustChangeAuthorizationNode(int nIdParentPage)
nIdParentPage
- the id of the parent page
public static void updateAuthorizationNode(int nIdPage, java.lang.Integer nIdAuthorizationNode)
nIdPage
- the page idnIdAuthorizationNode
- the authorization node id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |