org.infoglue.deliver.controllers.kernel.impl.simple
Class NodeDeliveryController

java.lang.Object
  extended by org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
      extended by org.infoglue.deliver.controllers.kernel.impl.simple.NodeDeliveryController

public class NodeDeliveryController
extends BaseDeliveryController


Field Summary
protected static java.lang.Integer INHERITED
           
protected static java.lang.String META_INFO_BINDING_NAME
           
protected static java.lang.String NAV_TITLE_ATTRIBUTE_NAME
           
protected static java.lang.Integer NO
           
protected static java.lang.Integer YES
           
 
Method Summary
 SiteNodeVersion getActiveSiteNodeVersion(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
          This method gets the appropriate siteNodeVersion
 SiteNodeVersionVO getActiveSiteNodeVersionVO(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method gets the appropriate siteNodeVersion
 ContentVO getBoundContent(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, boolean useLanguageFallback, java.lang.String availableServiceBindingName, boolean inheritParentBindings, boolean includeFolders, DeliveryContext deliveryContext)
          This method return a single content bound.
 ContentVO getBoundContent(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, boolean useLanguageFallback, java.lang.String availableServiceBindingName, boolean inheritParentBindings, DeliveryContext deliveryContext)
          This method return a single content bound.
 ContentVO getBoundContent(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, boolean useLanguageFallback, java.lang.String availableServiceBindingName, DeliveryContext deliveryContext)
          This method return a single content bound.
 ContentVO getBoundContent(InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, boolean useLanguageFallback, java.lang.String availableServiceBindingName, DeliveryContext deliveryContext)
          This method return a single content bound.
 java.util.List getBoundContents(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, boolean useLanguageFallback, java.lang.String availableServiceBindingName, boolean inheritParentBindings, boolean includeFolders, DeliveryContext deliveryContext)
          This method returns a list of contents bound to the named availableServiceBinding.
 java.util.List getBoundFolderContents(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer contentId, java.lang.Integer languageId, boolean searchRecursive, java.lang.Integer maximumNumberOfLevels, java.lang.String sortAttribute, java.lang.String sortOrder, boolean useLanguageFallback, boolean includeFolders, DeliveryContext deliveryContext)
          This method returns a list of children to the bound content with the named availableServiceBindingName.
 java.util.List getBoundFolderContents(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, 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, boolean includeFolders, DeliveryContext deliveryContext)
          This method returns a list of children to the bound content with the named availableServiceBindingName.
 SiteNodeVO getBoundSiteNode(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName)
          This method return a single siteNode bound.
 SiteNodeVO getBoundSiteNode(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName, int position)
          This method return a single siteNode bound.
 java.util.List getBoundSiteNodes(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId, java.lang.String availableServiceBindingName)
          This method should be rewritten later....
 java.util.List getChildSiteNodes(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the list of siteNodeVO which is children to this one.
 java.lang.Integer getDisabledLanguagesSiteNodeVersionId(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the id of the siteNodeVersion that has disabled languages if any.
 ServiceDefinitionVO getInheritedServiceDefinition(java.util.List qualifyerList, java.lang.Integer siteNodeId, AvailableServiceBindingVO availableServiceBindingVO, org.exolab.castor.jdo.Database db, boolean inheritParentBindings)
          This method checks if there is a serviceBinding with the name on this or any parent node.
 boolean getIsEditOnSightDisabled(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns true if the if the page in question (ie sitenode) has editOnSight disabled.
 boolean getIsPageCacheDisabled(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns true if the if the page in question (ie sitenode) has page-caching disabled.
 boolean getIsPageProtected(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns true if the if the page in question (ie sitenode) is protected byt the exctranet fnctionality.
 SiteNodeVersion getLatestActiveSiteNodeVersion(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
          This method returns the latest sitenodeVersion there is for the given siteNode.
 SiteNodeVersionVO getLatestActiveSiteNodeVersionVO(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the latest sitenodeVersion there is for the given siteNode.
 SiteNodeVersionVO getLatestActiveSiteNodeVersionVOForPageCache(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the latest sitenodeVersion there is for the given siteNode and stores it in a cache special to the deliver page cache.
 java.lang.Integer getMetaInfoContentId(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.String metaBindingName, boolean inheritParentBindings, DeliveryContext deliveryContext)
          This method returns the contentId of the bound metainfo-content to the given page.
static NodeDeliveryController getNodeDeliveryController(DeliveryContext deliveryContext)
          Factory method
static NodeDeliveryController getNodeDeliveryController(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId)
          Factory method
 java.lang.String getPageBaseUrl(org.exolab.castor.jdo.Database db)
          This method returns a url to the delivery engine
 java.lang.String getPageCacheKey(org.exolab.castor.jdo.Database db, javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.lang.String userAgent, java.lang.String queryString, java.lang.String extra)
          This method returns the pageCacheKey for the page.
 java.lang.String getPageNavigationPath(org.exolab.castor.jdo.Database db, InfoGluePrincipal infogluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, DeliveryContext deliveryContext)
           
 java.lang.String getPageNavigationTitle(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.lang.String metaBindingName, java.lang.String attributeName, boolean useLanguageFallback, DeliveryContext deliveryContext, boolean escapeHTML)
          This method returns the navigation-title to the given page.
 java.lang.String getPagePath(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.lang.String bindingName, java.lang.String attributeName, boolean useLanguageFallBack, DeliveryContext deliveryContext)
          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(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, DeliveryContext deliveryContext)
          This method returns a url to the given page.
 java.lang.String getPageUrlAfterLanguageChange(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, DeliveryContext deliveryContext)
           
 SiteNodeVO getParentSiteNode(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the SiteNodeVO that is the parent to the one sent in.
 SiteNodeVO getParentSiteNodeForPageCache(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the SiteNodeVO that is the parent to the one sent in.
 java.lang.Integer getProtectedSiteNodeVersionId(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the id of the siteNodeVersion that is protected if any.
 java.lang.Integer getProtectedSiteNodeVersionIdForPageCache(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the id of the siteNodeVersion that is protected if any.
 SiteNodeVO getRootSiteNode(org.exolab.castor.jdo.Database db, java.lang.Integer repositoryId)
          This method returns the root siteNodeVO for the specified repository.
static SiteNodeVO getRootSiteNode(org.exolab.castor.jdo.Database db, java.lang.String repositoryName)
          This method returns the root siteNodeVO for the specified repository.
 SiteNode getSiteNode(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the SiteNodeVO that is sent in.
 java.lang.Integer getSiteNodeId(org.exolab.castor.jdo.Database db, InfoGluePrincipal infogluePrincipal, java.lang.Integer repositoryId, java.lang.String path, java.lang.String attributeName, java.lang.Integer parentSiteNodeId, java.lang.Integer languageId, DeliveryContext deliveryContext)
           
static java.lang.Integer getSiteNodeIdFromPath(org.exolab.castor.jdo.Database db, InfoGluePrincipal infogluePrincipal, java.lang.Integer repositoryId, java.lang.String[] path, java.lang.String attributeName, java.lang.Integer languageId, DeliveryContext deliveryContext)
           
static java.lang.Integer getSiteNodeIdFromPath(InfoGluePrincipal infogluePrincipal, java.lang.Integer repositoryId, java.lang.String[] path, java.lang.String attributeName, java.lang.Integer languageId, DeliveryContext deliveryContext)
           
 boolean isValidSiteNode(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          Returns if a siteNode is between dates and has a siteNode version suitable for this delivery mode.
 boolean isValidSiteNode(SiteNode siteNode, org.exolab.castor.jdo.Database db)
          Returns if a siteNode is between dates and has a SiteNode version suitable for this delivery mode.
 
Methods inherited from class org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
beginTransaction, closeDatabase, closeTransaction, commitTransaction, createQuery, executeQuery, executeQuery, getAllVOObjects, getAllVOObjects, getLogger, getObjectWithId, getVOWithId, rollbackTransaction, toVOList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_INFO_BINDING_NAME

protected static final java.lang.String META_INFO_BINDING_NAME
See Also:
Constant Field Values

NAV_TITLE_ATTRIBUTE_NAME

protected static final java.lang.String NAV_TITLE_ATTRIBUTE_NAME
See Also:
Constant Field Values

NO

protected static final java.lang.Integer NO

YES

protected static final java.lang.Integer YES

INHERITED

protected static final java.lang.Integer INHERITED
Method Detail

getNodeDeliveryController

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

Throws:
SystemException
java.lang.Exception

getNodeDeliveryController

public static NodeDeliveryController getNodeDeliveryController(DeliveryContext deliveryContext)
                                                        throws SystemException,
                                                               java.lang.Exception
Factory method

Throws:
SystemException
java.lang.Exception

getActiveSiteNodeVersionVO

public SiteNodeVersionVO getActiveSiteNodeVersionVO(org.exolab.castor.jdo.Database db,
                                                    java.lang.Integer siteNodeId)
                                             throws java.lang.Exception
This method gets the appropriate siteNodeVersion

Throws:
java.lang.Exception

getActiveSiteNodeVersion

public SiteNodeVersion getActiveSiteNodeVersion(java.lang.Integer siteNodeId,
                                                org.exolab.castor.jdo.Database db)
                                         throws java.lang.Exception
This method gets the appropriate siteNodeVersion

Throws:
java.lang.Exception

getInheritedServiceDefinition

public ServiceDefinitionVO getInheritedServiceDefinition(java.util.List qualifyerList,
                                                         java.lang.Integer siteNodeId,
                                                         AvailableServiceBindingVO availableServiceBindingVO,
                                                         org.exolab.castor.jdo.Database db,
                                                         boolean inheritParentBindings)
                                                  throws SystemException,
                                                         java.lang.Exception
This method checks if there is a serviceBinding with the name on this or any parent node.

Throws:
SystemException
java.lang.Exception

getSiteNode

public SiteNode getSiteNode(org.exolab.castor.jdo.Database db,
                            java.lang.Integer siteNodeId)
                     throws SystemException
This method returns the SiteNodeVO that is sent in.

Throws:
SystemException

getLatestActiveSiteNodeVersionVO

public SiteNodeVersionVO getLatestActiveSiteNodeVersionVO(org.exolab.castor.jdo.Database db,
                                                          java.lang.Integer siteNodeId)
                                                   throws SystemException,
                                                          java.lang.Exception
This method returns the latest sitenodeVersion there is for the given siteNode.

Throws:
SystemException
java.lang.Exception

getLatestActiveSiteNodeVersionVOForPageCache

public SiteNodeVersionVO getLatestActiveSiteNodeVersionVOForPageCache(org.exolab.castor.jdo.Database db,
                                                                      java.lang.Integer siteNodeId)
                                                               throws SystemException,
                                                                      java.lang.Exception
This method returns the latest sitenodeVersion there is for the given siteNode and stores it in a cache special to the deliver page cache.

Throws:
SystemException
java.lang.Exception

getLatestActiveSiteNodeVersion

public SiteNodeVersion getLatestActiveSiteNodeVersion(java.lang.Integer siteNodeId,
                                                      org.exolab.castor.jdo.Database db)
                                               throws SystemException,
                                                      java.lang.Exception
This method returns the latest sitenodeVersion there is for the given siteNode.

Throws:
SystemException
java.lang.Exception

getParentSiteNode

public SiteNodeVO getParentSiteNode(org.exolab.castor.jdo.Database db,
                                    java.lang.Integer siteNodeId)
                             throws SystemException
This method returns the SiteNodeVO that is the parent to the one sent in.

Throws:
SystemException

getParentSiteNodeForPageCache

public SiteNodeVO getParentSiteNodeForPageCache(org.exolab.castor.jdo.Database db,
                                                java.lang.Integer siteNodeId)
                                         throws SystemException
This method returns the SiteNodeVO that is the parent to the one sent in.

Throws:
SystemException

getIsPageCacheDisabled

public boolean getIsPageCacheDisabled(org.exolab.castor.jdo.Database db,
                                      java.lang.Integer siteNodeId)
This method returns true if the if the page in question (ie sitenode) has page-caching disabled. This is essential to turn off when you have a dynamic page like an external application or searchresult.


getPageCacheKey

public java.lang.String getPageCacheKey(org.exolab.castor.jdo.Database db,
                                        javax.servlet.http.HttpSession session,
                                        javax.servlet.http.HttpServletRequest request,
                                        java.lang.Integer siteNodeId,
                                        java.lang.Integer languageId,
                                        java.lang.Integer contentId,
                                        java.lang.String userAgent,
                                        java.lang.String queryString,
                                        java.lang.String extra)
This method returns the pageCacheKey for the page.


getIsEditOnSightDisabled

public boolean getIsEditOnSightDisabled(org.exolab.castor.jdo.Database db,
                                        java.lang.Integer siteNodeId)
This method returns true if the if the page in question (ie sitenode) has editOnSight disabled.


getIsPageProtected

public boolean getIsPageProtected(org.exolab.castor.jdo.Database db,
                                  java.lang.Integer siteNodeId)
This method returns true if the if the page in question (ie sitenode) is protected byt the exctranet fnctionality. This is essential to turn off when you have a dynamic page like an external application or searchresult.


getProtectedSiteNodeVersionId

public java.lang.Integer getProtectedSiteNodeVersionId(org.exolab.castor.jdo.Database db,
                                                       java.lang.Integer siteNodeId)
This method returns the id of the siteNodeVersion that is protected if any.


getProtectedSiteNodeVersionIdForPageCache

public java.lang.Integer getProtectedSiteNodeVersionIdForPageCache(org.exolab.castor.jdo.Database db,
                                                                   java.lang.Integer siteNodeId)
This method returns the id of the siteNodeVersion that is protected if any.


getDisabledLanguagesSiteNodeVersionId

public java.lang.Integer getDisabledLanguagesSiteNodeVersionId(org.exolab.castor.jdo.Database db,
                                                               java.lang.Integer siteNodeId)
This method returns the id of the siteNodeVersion that has disabled languages if any.


getBoundContent

public ContentVO getBoundContent(org.exolab.castor.jdo.Database db,
                                 InfoGluePrincipal infoGluePrincipal,
                                 java.lang.Integer siteNodeId,
                                 java.lang.Integer languageId,
                                 boolean useLanguageFallback,
                                 java.lang.String availableServiceBindingName,
                                 boolean inheritParentBindings,
                                 DeliveryContext deliveryContext)
                          throws SystemException,
                                 java.lang.Exception
This method return a single content bound.

Throws:
SystemException
java.lang.Exception

getBoundContent

public ContentVO getBoundContent(org.exolab.castor.jdo.Database db,
                                 InfoGluePrincipal infoGluePrincipal,
                                 java.lang.Integer siteNodeId,
                                 java.lang.Integer languageId,
                                 boolean useLanguageFallback,
                                 java.lang.String availableServiceBindingName,
                                 boolean inheritParentBindings,
                                 boolean includeFolders,
                                 DeliveryContext deliveryContext)
                          throws SystemException,
                                 java.lang.Exception
This method return a single content bound.

Throws:
SystemException
java.lang.Exception

getBoundContent

public ContentVO getBoundContent(org.exolab.castor.jdo.Database db,
                                 InfoGluePrincipal infoGluePrincipal,
                                 java.lang.Integer siteNodeId,
                                 java.lang.Integer languageId,
                                 boolean useLanguageFallback,
                                 java.lang.String availableServiceBindingName,
                                 DeliveryContext deliveryContext)
                          throws SystemException,
                                 java.lang.Exception
This method return a single content bound.

Throws:
SystemException
java.lang.Exception

getBoundContent

public ContentVO getBoundContent(InfoGluePrincipal infoGluePrincipal,
                                 java.lang.Integer siteNodeId,
                                 java.lang.Integer languageId,
                                 boolean useLanguageFallback,
                                 java.lang.String availableServiceBindingName,
                                 DeliveryContext deliveryContext)
                          throws SystemException,
                                 java.lang.Exception
This method return a single content bound.

Throws:
SystemException
java.lang.Exception

getBoundContents

public java.util.List getBoundContents(org.exolab.castor.jdo.Database db,
                                       InfoGluePrincipal infoGluePrincipal,
                                       java.lang.Integer siteNodeId,
                                       java.lang.Integer languageId,
                                       boolean useLanguageFallback,
                                       java.lang.String availableServiceBindingName,
                                       boolean inheritParentBindings,
                                       boolean includeFolders,
                                       DeliveryContext deliveryContext)
                                throws SystemException,
                                       java.lang.Exception
This method returns a list of contents bound to the named availableServiceBinding.

Throws:
SystemException
java.lang.Exception

getBoundFolderContents

public java.util.List getBoundFolderContents(org.exolab.castor.jdo.Database db,
                                             InfoGluePrincipal infoGluePrincipal,
                                             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,
                                             boolean includeFolders,
                                             DeliveryContext deliveryContext)
                                      throws 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.

Throws:
SystemException
java.lang.Exception

getBoundFolderContents

public java.util.List getBoundFolderContents(org.exolab.castor.jdo.Database db,
                                             InfoGluePrincipal infoGluePrincipal,
                                             java.lang.Integer contentId,
                                             java.lang.Integer languageId,
                                             boolean searchRecursive,
                                             java.lang.Integer maximumNumberOfLevels,
                                             java.lang.String sortAttribute,
                                             java.lang.String sortOrder,
                                             boolean useLanguageFallback,
                                             boolean includeFolders,
                                             DeliveryContext deliveryContext)
                                      throws 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.

Throws:
SystemException
java.lang.Exception

getBoundSiteNode

public SiteNodeVO getBoundSiteNode(org.exolab.castor.jdo.Database db,
                                   java.lang.Integer siteNodeId,
                                   java.lang.String availableServiceBindingName)
                            throws SystemException,
                                   java.lang.Exception
This method return a single siteNode bound.

Throws:
SystemException
java.lang.Exception

getBoundSiteNode

public SiteNodeVO getBoundSiteNode(org.exolab.castor.jdo.Database db,
                                   java.lang.Integer siteNodeId,
                                   java.lang.String availableServiceBindingName,
                                   int position)
                            throws SystemException,
                                   java.lang.Exception
This method return a single siteNode bound.

Throws:
SystemException
java.lang.Exception

getBoundSiteNodes

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

Throws:
SystemException
java.lang.Exception

getPageUrl

public java.lang.String getPageUrl(org.exolab.castor.jdo.Database db,
                                   InfoGluePrincipal infoGluePrincipal,
                                   java.lang.Integer siteNodeId,
                                   java.lang.Integer languageId,
                                   java.lang.Integer contentId,
                                   DeliveryContext deliveryContext)
                            throws SystemException
This method returns a url to the given page. The url is composed of siteNode, language and content

Throws:
SystemException

getPageUrlAfterLanguageChange

public java.lang.String getPageUrlAfterLanguageChange(org.exolab.castor.jdo.Database db,
                                                      InfoGluePrincipal infoGluePrincipal,
                                                      java.lang.Integer siteNodeId,
                                                      java.lang.Integer languageId,
                                                      java.lang.Integer contentId,
                                                      DeliveryContext deliveryContext)
                                               throws SystemException
Throws:
SystemException

getPagePath

public java.lang.String getPagePath(org.exolab.castor.jdo.Database db,
                                    InfoGluePrincipal infoGluePrincipal,
                                    java.lang.Integer siteNodeId,
                                    java.lang.Integer languageId,
                                    java.lang.Integer contentId,
                                    java.lang.String bindingName,
                                    java.lang.String attributeName,
                                    boolean useLanguageFallBack,
                                    DeliveryContext deliveryContext)
                             throws 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.

Throws:
SystemException
java.lang.Exception

getPageBaseUrl

public java.lang.String getPageBaseUrl(org.exolab.castor.jdo.Database db)
                                throws SystemException
This method returns a url to the delivery engine

Throws:
SystemException

getPageNavigationTitle

public java.lang.String getPageNavigationTitle(org.exolab.castor.jdo.Database db,
                                               InfoGluePrincipal infoGluePrincipal,
                                               java.lang.Integer siteNodeId,
                                               java.lang.Integer languageId,
                                               java.lang.Integer contentId,
                                               java.lang.String metaBindingName,
                                               java.lang.String attributeName,
                                               boolean useLanguageFallback,
                                               DeliveryContext deliveryContext,
                                               boolean escapeHTML)
                                        throws 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.

Throws:
SystemException
java.lang.Exception

getSiteNodeId

public java.lang.Integer getSiteNodeId(org.exolab.castor.jdo.Database db,
                                       InfoGluePrincipal infogluePrincipal,
                                       java.lang.Integer repositoryId,
                                       java.lang.String path,
                                       java.lang.String attributeName,
                                       java.lang.Integer parentSiteNodeId,
                                       java.lang.Integer languageId,
                                       DeliveryContext deliveryContext)
                                throws SystemException,
                                       java.lang.Exception
Throws:
SystemException
java.lang.Exception

getPageNavigationPath

public java.lang.String getPageNavigationPath(org.exolab.castor.jdo.Database db,
                                              InfoGluePrincipal infogluePrincipal,
                                              java.lang.Integer siteNodeId,
                                              java.lang.Integer languageId,
                                              java.lang.Integer contentId,
                                              DeliveryContext deliveryContext)
                                       throws SystemException,
                                              java.lang.Exception
Throws:
SystemException
java.lang.Exception

getSiteNodeIdFromPath

public static java.lang.Integer getSiteNodeIdFromPath(org.exolab.castor.jdo.Database db,
                                                      InfoGluePrincipal infogluePrincipal,
                                                      java.lang.Integer repositoryId,
                                                      java.lang.String[] path,
                                                      java.lang.String attributeName,
                                                      java.lang.Integer languageId,
                                                      DeliveryContext deliveryContext)
                                               throws SystemException,
                                                      java.lang.Exception
Throws:
SystemException
java.lang.Exception

getSiteNodeIdFromPath

public static java.lang.Integer getSiteNodeIdFromPath(InfoGluePrincipal infogluePrincipal,
                                                      java.lang.Integer repositoryId,
                                                      java.lang.String[] path,
                                                      java.lang.String attributeName,
                                                      java.lang.Integer languageId,
                                                      DeliveryContext deliveryContext)
                                               throws SystemException,
                                                      java.lang.Exception
Throws:
SystemException
java.lang.Exception

getMetaInfoContentId

public java.lang.Integer getMetaInfoContentId(org.exolab.castor.jdo.Database db,
                                              InfoGluePrincipal infoGluePrincipal,
                                              java.lang.Integer siteNodeId,
                                              java.lang.String metaBindingName,
                                              boolean inheritParentBindings,
                                              DeliveryContext deliveryContext)
                                       throws SystemException,
                                              java.lang.Exception
This method returns the contentId of the bound metainfo-content to the given page.

Throws:
SystemException
java.lang.Exception

getRootSiteNode

public static SiteNodeVO getRootSiteNode(org.exolab.castor.jdo.Database db,
                                         java.lang.String repositoryName)
                                  throws 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.

Throws:
SystemException
java.lang.Exception

getRootSiteNode

public SiteNodeVO getRootSiteNode(org.exolab.castor.jdo.Database db,
                                  java.lang.Integer repositoryId)
                           throws 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.

Throws:
SystemException
java.lang.Exception

getChildSiteNodes

public java.util.List getChildSiteNodes(org.exolab.castor.jdo.Database db,
                                        java.lang.Integer siteNodeId)
                                 throws SystemException,
                                        java.lang.Exception
This method returns the list of siteNodeVO which is children to this one.

Throws:
SystemException
java.lang.Exception

isValidSiteNode

public boolean isValidSiteNode(org.exolab.castor.jdo.Database db,
                               java.lang.Integer siteNodeId)
                        throws java.lang.Exception
Returns if a siteNode is between dates and has a siteNode version suitable for this delivery mode.

Throws:
java.lang.Exception

isValidSiteNode

public boolean isValidSiteNode(SiteNode siteNode,
                               org.exolab.castor.jdo.Database db)
                        throws java.lang.Exception
Returns if a siteNode is between dates and has a SiteNode version suitable for this delivery mode.

Throws:
java.lang.Exception


Copyright © 2005 InfoGlue.org All Rights Reserved.