org.infoglue.cms.controllers.delivery.kernel.impl.simple
Class NodeDeliveryController

java.lang.Object
  |
  +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.NodeDeliveryController

public class NodeDeliveryController
extends java.lang.Object


Method Summary
 org.infoglue.cms.entities.content.ContentVO getBoundContent(java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName)
          This method return a single content bound.
 org.infoglue.cms.entities.content.ContentVO getBoundContent(java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName, boolean inheritParentBindings)
          This method return a single content bound.
 java.util.List getBoundContents(java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName, boolean inheritParentBindings)
          This method returns a list of contents bound to the named availableServiceBinding.
 java.util.List getBoundFolderContents(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.String availableServiceBindingName, boolean searchRecursive, java.lang.Integer maximumNumberOfLevels, java.lang.String sortAttribute, java.lang.String sortOrder, boolean useLanguageFallback)
          This method returns a list of children to the bound content with the named availableServiceBindingName.
 org.infoglue.cms.entities.structure.SiteNodeVO getBoundSiteNode(java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName)
          This method return a single siteNode bound.
 org.infoglue.cms.entities.structure.SiteNodeVO getBoundSiteNode(java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName, int position)
          This method return a single siteNode bound.
 java.util.List getBoundSiteNodes(java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName)
          This method should be rewritten later....
 java.util.List getChildSiteNodes(java.lang.Integer siteNodeId)
          This method returns the list of siteNodeVO which is children to this one.
 java.lang.Integer getMetaInfoContentId(java.lang.Integer siteNodeId, java.lang.String metaBindingName, boolean inheritParentBindings)
          This method returns the contentId of the bound metainfo-content to the given page.
static NodeDeliveryController getNodeDeliveryController(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId)
          Factory method
 java.lang.String getPageBaseUrl()
          This method returns a url to the delivery engine
 java.lang.String getPageNavigationTitle(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.lang.String metaBindingName, java.lang.String attributeName, boolean useLanguageFallback)
          This method returns the navigation-title to the given page.
 java.lang.String getPagePath(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.lang.String bindingName, java.lang.String attributeName, boolean useLanguageFallBack)
          This method constructs a string representing the path to the page with respect to where in the structure the page is.
 java.lang.String getPageUrl(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId)
          This method returns a url to the given page.
 org.infoglue.cms.entities.structure.SiteNodeVO getParentSiteNode(java.lang.Integer siteNodeId)
          This method returns the SiteNodeVO that is the parent to the one sent in.
static org.infoglue.cms.entities.structure.SiteNodeVO getRootSiteNode(java.lang.Integer repositoryId)
          This method returns the root siteNodeVO for the specified repository.
static org.infoglue.cms.entities.structure.SiteNodeVO getRootSiteNode(java.lang.String repositoryName)
          This method returns the root siteNodeVO for the specified repository.
 org.infoglue.cms.entities.structure.SiteNode getSiteNode(java.lang.Integer siteNodeId)
          This method returns the SiteNodeVO that is sent in.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNodeDeliveryController

public static NodeDeliveryController getNodeDeliveryController(java.lang.Integer siteNodeId,
                                                               java.lang.Integer languageId,
                                                               java.lang.Integer contentId)
                                                        throws org.infoglue.cms.exception.SystemException,
                                                               java.lang.Exception
Factory method

org.infoglue.cms.exception.SystemException
java.lang.Exception

getSiteNode

public org.infoglue.cms.entities.structure.SiteNode getSiteNode(java.lang.Integer siteNodeId)
                                                         throws java.lang.Exception
This method returns the SiteNodeVO that is sent in.

java.lang.Exception

getParentSiteNode

public org.infoglue.cms.entities.structure.SiteNodeVO getParentSiteNode(java.lang.Integer siteNodeId)
                                                                 throws java.lang.Exception
This method returns the SiteNodeVO that is the parent to the one sent in.

java.lang.Exception

getBoundContent

public org.infoglue.cms.entities.content.ContentVO getBoundContent(java.lang.Integer siteNodeId,
                                                                   java.lang.String availableServiceBindingName,
                                                                   boolean inheritParentBindings)
                                                            throws org.infoglue.cms.exception.SystemException,
                                                                   java.lang.Exception
This method return a single content bound.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getBoundContent

public org.infoglue.cms.entities.content.ContentVO getBoundContent(java.lang.Integer siteNodeId,
                                                                   java.lang.String availableServiceBindingName)
                                                            throws org.infoglue.cms.exception.SystemException,
                                                                   java.lang.Exception
This method return a single content bound.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getBoundContents

public java.util.List getBoundContents(java.lang.Integer siteNodeId,
                                       java.lang.String availableServiceBindingName,
                                       boolean inheritParentBindings)
                                throws org.infoglue.cms.exception.SystemException,
                                       java.lang.Exception
This method returns a list of contents bound to the named availableServiceBinding.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getBoundFolderContents

public java.util.List getBoundFolderContents(java.lang.Integer siteNodeId,
                                             java.lang.Integer languageId,
                                             java.lang.String availableServiceBindingName,
                                             boolean searchRecursive,
                                             java.lang.Integer maximumNumberOfLevels,
                                             java.lang.String sortAttribute,
                                             java.lang.String sortOrder,
                                             boolean useLanguageFallback)
                                      throws org.infoglue.cms.exception.SystemException,
                                             java.lang.Exception
This method returns a list of children to the bound content with the named availableServiceBindingName. The collection of contents are also sorted on given arguments.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getBoundSiteNode

public org.infoglue.cms.entities.structure.SiteNodeVO getBoundSiteNode(java.lang.Integer siteNodeId,
                                                                       java.lang.String availableServiceBindingName)
                                                                throws org.infoglue.cms.exception.SystemException,
                                                                       java.lang.Exception
This method return a single siteNode bound.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getBoundSiteNode

public org.infoglue.cms.entities.structure.SiteNodeVO getBoundSiteNode(java.lang.Integer siteNodeId,
                                                                       java.lang.String availableServiceBindingName,
                                                                       int position)
                                                                throws org.infoglue.cms.exception.SystemException,
                                                                       java.lang.Exception
This method return a single siteNode bound.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getBoundSiteNodes

public java.util.List getBoundSiteNodes(java.lang.Integer siteNodeId,
                                        java.lang.String availableServiceBindingName)
                                 throws org.infoglue.cms.exception.SystemException,
                                        java.lang.Exception
This method should be rewritten later.... The concept is to fetch the bound siteNode

org.infoglue.cms.exception.SystemException
java.lang.Exception

getPageUrl

public java.lang.String getPageUrl(java.lang.Integer siteNodeId,
                                   java.lang.Integer languageId,
                                   java.lang.Integer contentId)
                            throws org.infoglue.cms.exception.SystemException,
                                   java.lang.Exception
This method returns a url to the given page. The url is composed of siteNode, language and content

org.infoglue.cms.exception.SystemException
java.lang.Exception

getPagePath

public java.lang.String getPagePath(java.lang.Integer siteNodeId,
                                    java.lang.Integer languageId,
                                    java.lang.Integer contentId,
                                    java.lang.String bindingName,
                                    java.lang.String attributeName,
                                    boolean useLanguageFallBack)
                             throws org.infoglue.cms.exception.SystemException,
                                    java.lang.Exception
This method constructs a string representing the path to the page with respect to where in the structure the page is. It also takes the page title into consideration. It is done by recursively going up in the structure until the root is reached. On each node we collect the pageTitle.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getPageBaseUrl

public java.lang.String getPageBaseUrl()
                                throws org.infoglue.cms.exception.SystemException,
                                       java.lang.Exception
This method returns a url to the delivery engine

org.infoglue.cms.exception.SystemException
java.lang.Exception

getPageNavigationTitle

public java.lang.String getPageNavigationTitle(java.lang.Integer siteNodeId,
                                               java.lang.Integer languageId,
                                               java.lang.Integer contentId,
                                               java.lang.String metaBindingName,
                                               java.lang.String attributeName,
                                               boolean useLanguageFallback)
                                        throws org.infoglue.cms.exception.SystemException,
                                               java.lang.Exception
This method returns the navigation-title to the given page. The title is based on the content sent in firstly, secondly the siteNode. The actual text is fetched from either the content or the metacontent bound to the sitenode.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getMetaInfoContentId

public java.lang.Integer getMetaInfoContentId(java.lang.Integer siteNodeId,
                                              java.lang.String metaBindingName,
                                              boolean inheritParentBindings)
                                       throws org.infoglue.cms.exception.SystemException,
                                              java.lang.Exception
This method returns the contentId of the bound metainfo-content to the given page.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getRootSiteNode

public static org.infoglue.cms.entities.structure.SiteNodeVO getRootSiteNode(java.lang.String repositoryName)
                                                                      throws org.infoglue.cms.exception.SystemException,
                                                                             java.lang.Exception
This method returns the root siteNodeVO for the specified repository. If the repositoryName is null we fetch the name of the master repository.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getRootSiteNode

public static org.infoglue.cms.entities.structure.SiteNodeVO getRootSiteNode(java.lang.Integer repositoryId)
                                                                      throws org.infoglue.cms.exception.SystemException,
                                                                             java.lang.Exception
This method returns the root siteNodeVO for the specified repository. If the repositoryName is null we fetch the name of the master repository.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getChildSiteNodes

public java.util.List getChildSiteNodes(java.lang.Integer siteNodeId)
                                 throws org.infoglue.cms.exception.SystemException,
                                        java.lang.Exception
This method returns the list of siteNodeVO which is children to this one.

org.infoglue.cms.exception.SystemException
java.lang.Exception