lumis.portal.page.template
Class PageTemplateManager
java.lang.Object
lumis.portal.page.template.PageTemplateManager
- All Implemented Interfaces:
- IPageTemplateManager
public class PageTemplateManager
- extends Object
- implements IPageTemplateManager
IPageTemplateManager
implementation.
- Since:
- 4.0.0
Method Summary |
protected void |
createAllNewInterfaces(SessionConfig sessionConfig,
String pageId,
Document newPageLayoutDoc,
ITransaction transaction)
|
String |
generateDefaultLayout(SessionConfig sessionConfig,
String pageId,
ITransaction transaction)
|
boolean |
hasInterfaceHolder(SessionConfig sessionConfig,
PageConfig pageConfig,
ITransaction transaction)
Returns true if the given page template has an interface holder |
protected void |
insertIndependentInterfaces(SessionConfig sessionConfig,
InterfaceHolderMapping interfaceHolderMapping,
Document newPageLayoutDoc,
Document oldPageLayoutDoc,
ITransaction transaction)
|
protected void |
insertInterfaceInstance(SessionConfig sessionConfig,
InterfaceInstanceNodeWrapper pageInterface,
Document newPageLayoutDoc,
InterfaceHolderMapping interfaceHolderMapping,
ITransaction transaction)
|
protected void |
updateLinkedInterfaces(SessionConfig sessionConfig,
Document newPageLayoutDoc,
Document oldPageLayoutDoc,
ITransaction transaction)
|
void |
updatePageLayoutFromTemplate(SessionConfig sessionConfig,
String pageId,
ITransaction transaction)
Updates the given page layout based on the layout of the template that
the page belongs to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTERFACE_HOLDER_SERVICEINSTANCEID
public static final String INTERFACE_HOLDER_SERVICEINSTANCEID
- See Also:
- Constant Field Values
PageTemplateManager
public PageTemplateManager()
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 interface IPageTemplateManager
- Returns:
-
- Throws:
ManagerException
PortalException
updatePageLayoutFromTemplate
public void updatePageLayoutFromTemplate(SessionConfig sessionConfig,
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 interface IPageTemplateManager
- 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,
Document newPageLayoutDoc,
Document oldPageLayoutDoc,
ITransaction transaction)
throws ManagerException,
PortalException
- Throws:
ManagerException
PortalException
insertIndependentInterfaces
protected void insertIndependentInterfaces(SessionConfig sessionConfig,
InterfaceHolderMapping interfaceHolderMapping,
Document newPageLayoutDoc,
Document oldPageLayoutDoc,
ITransaction transaction)
throws ManagerException,
PortalException
- Throws:
ManagerException
PortalException
insertInterfaceInstance
protected void insertInterfaceInstance(SessionConfig sessionConfig,
InterfaceInstanceNodeWrapper pageInterface,
Document newPageLayoutDoc,
InterfaceHolderMapping interfaceHolderMapping,
ITransaction transaction)
throws ManagerException,
PortalException
- Throws:
ManagerException
PortalException
createAllNewInterfaces
protected void createAllNewInterfaces(SessionConfig sessionConfig,
String pageId,
Document newPageLayoutDoc,
ITransaction transaction)
throws ManagerException,
PortalException
- Throws:
ManagerException
PortalException
generateDefaultLayout
public String generateDefaultLayout(SessionConfig sessionConfig,
String pageId,
ITransaction transaction)
throws ManagerException,
PortalException
- Specified by:
generateDefaultLayout
in interface IPageTemplateManager
- Returns:
- a String.
- Throws:
ManagerException
PortalException
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.