Package lumis.portal.page.template
Class PageTemplateManager
- java.lang.Object
-
- lumis.portal.page.template.PageTemplateManager
-
- All Implemented Interfaces:
IPageTemplateManager
public class PageTemplateManager extends java.lang.Object implements IPageTemplateManager
IPageTemplateManager
implementation.- Since:
- 4.0.0
- Version:
- $Revision: 11835 $ $Date: 2010-08-05 16:29:01 -0300 (Thu, 05 Aug 2010) $
-
-
Constructor Summary
Constructors Constructor Description PageTemplateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createAllNewInterfaces(SessionConfig sessionConfig, java.lang.String pageId, org.w3c.dom.Document newPageLayoutDoc, ITransaction transaction)
java.lang.String
generateDefaultLayout(SessionConfig sessionConfig, java.lang.String pageId, ITransaction transaction)
boolean
hasInterfaceHolder(SessionConfig sessionConfig, PageConfig pageConfig, ITransaction transaction)
Returns true if the given page template has an interface holderprotected void
insertIndependentInterfaces(SessionConfig sessionConfig, InterfaceHolderMapping interfaceHolderMapping, org.w3c.dom.Document newPageLayoutDoc, org.w3c.dom.Document oldPageLayoutDoc, ITransaction transaction)
protected void
insertInterfaceInstance(SessionConfig sessionConfig, InterfaceInstanceNodeWrapper pageInterface, org.w3c.dom.Document newPageLayoutDoc, InterfaceHolderMapping interfaceHolderMapping, ITransaction transaction)
protected void
updateLinkedInterfaces(SessionConfig sessionConfig, org.w3c.dom.Document newPageLayoutDoc, org.w3c.dom.Document oldPageLayoutDoc, ITransaction transaction)
void
updatePageLayoutFromTemplate(SessionConfig sessionConfig, java.lang.String pageId, ITransaction transaction)
Updates the given page layout based on the layout of the template that the page belongs to.
-
-
-
Method Detail
-
hasInterfaceHolder
public boolean hasInterfaceHolder(SessionConfig sessionConfig, PageConfig pageConfig, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IPageTemplateManager
Returns true if the given page template has an interface holder- Specified by:
hasInterfaceHolder
in interfaceIPageTemplateManager
- Returns:
- Throws:
ManagerException
PortalException
-
updatePageLayoutFromTemplate
public void updatePageLayoutFromTemplate(SessionConfig sessionConfig, java.lang.String pageId, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IPageTemplateManager
Updates the given page layout based on the layout of the template that the page belongs to. If the page does not belong to a template, an exception is thrown.- Specified by:
updatePageLayoutFromTemplate
in interfaceIPageTemplateManager
- Parameters:
sessionConfig
- The user session id must have rights to update the page layout.pageId
- The destination page id. This page layout will be modified.transaction
- A transaction that the update layout should be part of.- Throws:
ManagerException
PortalException
-
updateLinkedInterfaces
protected void updateLinkedInterfaces(SessionConfig sessionConfig, org.w3c.dom.Document newPageLayoutDoc, org.w3c.dom.Document oldPageLayoutDoc, ITransaction transaction) throws ManagerException, PortalException
- Throws:
ManagerException
PortalException
-
insertIndependentInterfaces
protected void insertIndependentInterfaces(SessionConfig sessionConfig, InterfaceHolderMapping interfaceHolderMapping, org.w3c.dom.Document newPageLayoutDoc, org.w3c.dom.Document oldPageLayoutDoc, ITransaction transaction) throws ManagerException, PortalException
- Throws:
ManagerException
PortalException
-
insertInterfaceInstance
protected void insertInterfaceInstance(SessionConfig sessionConfig, InterfaceInstanceNodeWrapper pageInterface, org.w3c.dom.Document newPageLayoutDoc, InterfaceHolderMapping interfaceHolderMapping, ITransaction transaction) throws ManagerException, PortalException
- Throws:
ManagerException
PortalException
-
createAllNewInterfaces
protected void createAllNewInterfaces(SessionConfig sessionConfig, java.lang.String pageId, org.w3c.dom.Document newPageLayoutDoc, ITransaction transaction) throws ManagerException, PortalException
- Throws:
ManagerException
PortalException
-
generateDefaultLayout
public java.lang.String generateDefaultLayout(SessionConfig sessionConfig, java.lang.String pageId, ITransaction transaction) throws ManagerException, PortalException
- Specified by:
generateDefaultLayout
in interfaceIPageTemplateManager
- Returns:
- a String.
- Throws:
ManagerException
PortalException
-
-