lumis.portal.page.template
Class PageTemplateManager

Package class diagram package PageTemplateManager
java.lang.Object
  extended by lumis.portal.page.template.PageTemplateManager
All Implemented Interfaces:
IPageTemplateManager

public class PageTemplateManager
extends Object
implements IPageTemplateManager

IPageTemplateManager implementation.

Since:
4.0.0

Constructor Summary
PageTemplateManager()
           
 
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
 

Constructor Detail

PageTemplateManager

public PageTemplateManager()
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 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  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.