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

java.lang.Object
  |
  +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.BasicTemplateController
        |
        +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.EditOnSiteBasicTemplateController
All Implemented Interfaces:
TemplateController

public class EditOnSiteBasicTemplateController
extends BasicTemplateController

This is the most basic template controller supplying the templates using it with methods to fetch contents, structure and other suff needed for a site. Mostly this class just acts as a delegator to other more specialized classes.


Constructor Summary
EditOnSiteBasicTemplateController()
           
 
Method Summary
 java.util.List getBoundPages(java.lang.Integer siteNodeId, java.lang.String structureBindningName)
          The method returns a list of WebPage-objects that is the bound sitenodes of named binding.
 java.util.List getBoundPages(java.lang.String structureBindningName)
          The method returns a list of WebPage-objects that is the bound sitenodes of named binding.
 java.lang.String getContentAttribute(java.lang.Integer contentId, java.lang.String attributeName)
          This method deliveres a String with the content-attribute asked for.
 java.lang.String getContentAttribute(java.lang.Integer contentId, java.lang.String attributeName, boolean clean)
          This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on.
 java.lang.String getContentAttribute(java.lang.String attributeName)
          This method deliveres a String with the content-attribute asked for if it exists in the content defined in the url-parameter contentId.
 java.lang.String getContentAttribute(java.lang.String attributeName, boolean clean)
          This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on.
 java.lang.String getContentAttribute(java.lang.String contentBindningName, java.lang.String attributeName)
          This method deliveres a String with the content-attribute asked for.
 java.lang.String getContentAttribute(java.lang.String contentBindningName, java.lang.String attributeName, boolean clean)
          This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on.
 java.lang.String getPageNavTitle(java.lang.String structureBindningName)
          This method deliveres a String with the Navigation title the page asked for has.
 java.lang.String getParsedContentAttribute(java.lang.Integer contentId, java.lang.String attributeName)
          This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted.
 java.lang.String getParsedContentAttribute(java.lang.String attributeName)
          This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted.
 java.lang.String getParsedContentAttribute(java.lang.String contentBindningName, java.lang.String attributeName)
          This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted.
 TemplateController getTemplateController(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId)
          This method should be much more sophisticated later and include a check to see if there is a digital asset uploaded which is more specialized and can be used to act as serverside logic to the template.
 TemplateController getTemplateController(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.infoglue.cms.controllers.delivery.kernel.impl.simple.BasicTemplateController
getArchiveBaseUrl, getArchiveBaseUrl, getArchiveBaseUrl, getArchiveEntries, getAssetFileSize, getAssetFileSize, getAssetFileSize, getAssetFileSize, getAssetKeys, getAssetUrl, getAssetUrl, getAssetUrl, getAssetUrl, getAssetUrl, getAvailableLanguages, getBoundContent, getBoundContents, getBoundFolderContents, getBoundFolderContents, getBoundPage, getBrowserBean, getChildContents, getChildPages, getChildPages, getChildPages, getColorHelper, getComponentLogic, getContent, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentId, getContentId, getContentId, getContentTypeDefinitionVO, getCurrentPagePath, getCurrentPageUrl, getEncodedUrl, getFontHelper, getFormAttributes, getHasLocalizedVersion, getHttpServletRequest, getInlineAssetUrl, getIsPageCacheDisabled, getIsPageProtected, getIsParentToCurrent, getLanguageCode, getLanguageId, getLocalizedBoundPages, getMathHelper, getNodeAvailableLanguages, getNodeAvailableLanguages, getNumberFormatHelper, getObjectConverter, getObjectWithName, getPageBaseUrl, getPageContentType, getPageNavTitle, getPageNavTitle, getPageTitle, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrlAfterLanguageChange, getPageUrlOnPosition, getRelatedContents, getRequestParamenterNames, getRequestParameter, getRequestParameterValues, getSiteNodeId, getSiteNodeId, getStringAsImageUrl, getTemplateAttributeName, getUrlContent, getUrlContent, getVisualFormatter, include, include, include, replace, replace, setBrowserBean, setComponentLogic, setDeliveryControllers, setHttpRequest, setStandardRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditOnSiteBasicTemplateController

public EditOnSiteBasicTemplateController()
Method Detail

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for if it exists in the content defined in the url-parameter contentId. It decorates the attibute with html so the attribute can be clicked on for editing.

Specified by:
getContentAttribute in interface TemplateController
Overrides:
getContentAttribute in class BasicTemplateController

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String contentBindningName,
                                            java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for. As the siteNode can have multiple bindings as well as a content as a parameter this parameter requires a bindingName which refers to the AvailableServiceBinding.name-attribute.

Specified by:
getContentAttribute in interface TemplateController
Overrides:
getContentAttribute in class BasicTemplateController

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String contentBindningName,
                                            java.lang.String attributeName,
                                            boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on.

Overrides:
getContentAttribute in class BasicTemplateController

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String attributeName,
                                            boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on.

Overrides:
getContentAttribute in class BasicTemplateController

getContentAttribute

public java.lang.String getContentAttribute(java.lang.Integer contentId,
                                            java.lang.String attributeName,
                                            boolean clean)
This method is just a dummy method used to ensure that we can ensure to not get a decorated attribute value if OnSiteEdit is on.

Specified by:
getContentAttribute in interface TemplateController
Overrides:
getContentAttribute in class BasicTemplateController

getContentAttribute

public java.lang.String getContentAttribute(java.lang.Integer contentId,
                                            java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for. As the siteNode can have multiple bindings as well as a content as a parameter this parameter requires a bindingName which refers to the AvailableServiceBinding.name-attribute.

Specified by:
getContentAttribute in interface TemplateController
Overrides:
getContentAttribute in class BasicTemplateController

getParsedContentAttribute

public java.lang.String getParsedContentAttribute(java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted. As the siteNode can have multiple bindings as well as a content as a parameter this parameter requires a bindingName which refers to the AvailableServiceBinding.name-attribute.

Specified by:
getParsedContentAttribute in interface TemplateController
Overrides:
getParsedContentAttribute in class BasicTemplateController

getParsedContentAttribute

public java.lang.String getParsedContentAttribute(java.lang.String contentBindningName,
                                                  java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted. As the siteNode can have multiple bindings as well as a content as a parameter this parameter requires a bindingName which refers to the AvailableServiceBinding.name-attribute.

Specified by:
getParsedContentAttribute in interface TemplateController
Overrides:
getParsedContentAttribute in class BasicTemplateController

getParsedContentAttribute

public java.lang.String getParsedContentAttribute(java.lang.Integer contentId,
                                                  java.lang.String attributeName)
This method deliveres a String with the content-attribute asked for after it has been parsed and all special tags have been converted. The attribute is fetched from the specified content.

Specified by:
getParsedContentAttribute in interface TemplateController
Overrides:
getParsedContentAttribute in class BasicTemplateController

getBoundPages

public java.util.List getBoundPages(java.lang.String structureBindningName)
The method returns a list of WebPage-objects that is the bound sitenodes of named binding. The method is great for navigation-purposes on any site.

Specified by:
getBoundPages in interface TemplateController
Overrides:
getBoundPages in class BasicTemplateController

getBoundPages

public java.util.List getBoundPages(java.lang.Integer siteNodeId,
                                    java.lang.String structureBindningName)
The method returns a list of WebPage-objects that is the bound sitenodes of named binding. The method is great for navigation-purposes on any site.

Specified by:
getBoundPages in interface TemplateController
Overrides:
getBoundPages in class BasicTemplateController

getPageNavTitle

public java.lang.String getPageNavTitle(java.lang.String structureBindningName)
This method deliveres a String with the Navigation title the page asked for has. As the siteNode can have multiple bindings the method requires a bindingName which refers to the AvailableServiceBinding.name-attribute. The navigation-title is fetched from the meta-info-content bound to the site node.

Specified by:
getPageNavTitle in interface TemplateController
Overrides:
getPageNavTitle in class BasicTemplateController

getTemplateController

public TemplateController getTemplateController(java.lang.Integer siteNodeId,
                                                java.lang.Integer languageId,
                                                java.lang.Integer contentId)
                                         throws org.infoglue.cms.exception.SystemException,
                                                java.lang.Exception
This method should be much more sophisticated later and include a check to see if there is a digital asset uploaded which is more specialized and can be used to act as serverside logic to the template.

Specified by:
getTemplateController in interface TemplateController
Overrides:
getTemplateController in class BasicTemplateController
org.infoglue.cms.exception.SystemException
java.lang.Exception

getTemplateController

public TemplateController getTemplateController(java.lang.Integer siteNodeId,
                                                java.lang.Integer languageId,
                                                java.lang.Integer contentId,
                                                javax.servlet.http.HttpServletRequest request)
                                         throws org.infoglue.cms.exception.SystemException,
                                                java.lang.Exception
Specified by:
getTemplateController in interface TemplateController
Overrides:
getTemplateController in class BasicTemplateController
org.infoglue.cms.exception.SystemException
java.lang.Exception