public class PageTemplateManager extends Object implements IPageTemplateManager
IPageTemplateManager
implementation.Constructor and Description |
---|
PageTemplateManager() |
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean hasInterfaceHolder(SessionConfig sessionConfig, PageConfig pageConfig, ITransaction transaction) throws ManagerException, PortalException
IPageTemplateManager
hasInterfaceHolder
in interface IPageTemplateManager
ManagerException
PortalException
public void updatePageLayoutFromTemplate(SessionConfig sessionConfig, String pageId, ITransaction transaction) throws ManagerException, PortalException
IPageTemplateManager
updatePageLayoutFromTemplate
in interface IPageTemplateManager
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.ManagerException
PortalException
protected void updateLinkedInterfaces(SessionConfig sessionConfig, Document newPageLayoutDoc, Document oldPageLayoutDoc, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
protected void insertIndependentInterfaces(SessionConfig sessionConfig, InterfaceHolderMapping interfaceHolderMapping, Document newPageLayoutDoc, Document oldPageLayoutDoc, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
protected void insertInterfaceInstance(SessionConfig sessionConfig, InterfaceInstanceNodeWrapper pageInterface, Document newPageLayoutDoc, InterfaceHolderMapping interfaceHolderMapping, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
protected void createAllNewInterfaces(SessionConfig sessionConfig, String pageId, Document newPageLayoutDoc, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
public String generateDefaultLayout(SessionConfig sessionConfig, String pageId, ITransaction transaction) throws ManagerException, PortalException
generateDefaultLayout
in interface IPageTemplateManager
ManagerException
PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.