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

java.lang.Object
  extended by org.infoglue.deliver.controllers.kernel.impl.simple.BasicTemplateController
      extended by org.infoglue.deliver.controllers.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.


Field Summary
 
Fields inherited from class org.infoglue.deliver.controllers.kernel.impl.simple.BasicTemplateController
browserBean, componentLogic, contentDeliveryController, contentId, databaseWrapper, deliveryContext, DO_NOT_USE_INHERITANCE, DO_NOT_USE_LANGUAGE_FALLBACK, infoGluePrincipal, integrationDeliveryController, languageId, META_INFO_BINDING_NAME, NAV_TITLE_ATTRIBUTE_NAME, nodeDeliveryController, persistedContext, request, siteNodeId, TEMPLATE_ATTRIBUTE_NAME, templateLogicContext, TITLE_ATTRIBUTE_NAME, USE_INHERITANCE, USE_LANGUAGE_FALLBACK
 
Constructor Summary
EditOnSiteBasicTemplateController(DatabaseWrapper databaseWrapper, InfoGluePrincipal infoGluePrincipal)
           
 
Method Summary
 java.lang.String decoratePage(java.lang.String page)
          This method adds the neccessairy html to a template to make it right-clickable.
 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.Integer languageId, 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.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 deliveres a String with the content-attribute asked for a specific content and ensure not to get decorated attributes if EditOnSite is turned 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 getContentAttributeValue(java.lang.Integer contentId, java.lang.String attributeName, boolean clean, boolean escapeHTML)
          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.Integer languageId, 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 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.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 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 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 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.
 java.lang.String getParsedContentAttribute(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.
 TemplateController getTemplateController(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, javax.servlet.http.HttpServletRequest request, InfoGluePrincipal infoGluePrincipal)
           
 TemplateController getTemplateController(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, InfoGluePrincipal infoGluePrincipal)
          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.
 
Methods inherited from class org.infoglue.deliver.controllers.kernel.impl.simple.BasicTemplateController
addToContext, addToContext, closeTransaction, commitDatabase, getAccessRights, getAllGroups, getAllRoles, getArchiveBaseUrl, getArchiveBaseUrl, getArchiveBaseUrl, getArchiveBaseUrlForAssetWithId, getArchiveEntries, getAssetFileSize, getAssetFileSize, getAssetFileSize, getAssetFileSize, getAssetFileSizeForAssetWithId, getAssetIds, getAssetKeys, getAssetKeys, getAssets, getAssetThumbnailUrl, getAssetThumbnailUrl, getAssetThumbnailUrl, getAssetThumbnailUrl, getAssetThumbnailUrl, getAssetThumbnailUrlForAssetWithId, getAssetUrl, getAssetUrl, getAssetUrl, getAssetUrl, getAssetUrl, getAssetUrl, getAssetUrlForAssetWithId, getAssignedCategories, getAssignPropertyBindingTag, getAvailableLanguages, getBoundContent, getBoundContents, getBoundFolderContents, getBoundFolderContents, getBoundPage, getBoundPages, getBoundPages, getBoundPages, getBoundPages, getBrowserBean, getCategoryPath, getChartHelper, getChildContents, getChildContents, getChildContents, getChildPages, getChildPages, getChildPages, getChildPages, getChildPages, getChildPages, getChildPages, getChildPages, getChildPages, getChildPages, getChildPages, getChildPages, getColorHelper, getComponentLogic, getContent, getContent, getContentAttribute, getContentAttribute, getContentAttribute, getContentAttribute, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsImageUrl, getContentAttributeAsPDFUrl, getContentAttributeAsPDFUrl, getContentAttributes, getContentAttributes, getContentAttributeUsingLanguageFallback, getContentAttributeValue, getContentAttributeValue, getContentAttributeWithReturningId, getContentId, getContentId, getContentId, getContentTypeDefinitionAssetKeys, getContentTypeDefinitionCategories, getContentTypeDefinitionVO, getContentTypeDefinitionVO, getContentVersion, getContentVersion, getContentVersionById, getContentVersions, getContentVersionsByCategory, getCookie, getCurrentPagePath, getCurrentPageUrl, getDatabase, getDatabaseWrapper, getDeliveryContext, getDesEncryptionHelper, getDigitalAssetBaseUrl, getDigitalAssetId, getDigitalAssetId, getDocumentTransformerHelper, getEditOnSightTag, getEditOnSightTag, getEncodedUrl, getFontHelper, getFormAttributes, getFormAttributes, getFormHelper, getFromContext, getHasLocalizedVersion, getHasPrincipalGroup, getHasPrincipalRole, getHasUserContentAccess, getHasUserContentAccess, getHasUserPageAccess, getHasUserPageAccess, getHasUserPageWriteAccess, getHTTPHelper, getHttpServletRequest, getInfoGlueWebServiceHelper, getInlineAssetUrl, getInlineAssetUrl, getIsCurrentSiteNode, getIsDecorated, getIsEditOnSightDisabled, getIsInPageComponentMode, getIsPageCacheDisabled, getIsPageProtected, getIsParentToCurrent, getLanguage, getLanguage, getLanguageCode, getLanguageId, getLocale, getLocaleAvailableInTool, getLocalizedBoundPages, getLogoutURL, getMatchingContents, getMatchingContents, getMatchingContents, getMathHelper, getMetaInfoContentAttribute, getMetaInfoContentAttribute, getMetaInformationContentId, getMetaInformationContentId, getNodeAvailableLanguages, getNodeAvailableLanguages, getNumberFormatHelper, getObjectConverter, getObjectWithName, getOperatingMode, getOriginalFullURL, getOriginalQueryString, getOriginalURL, getPageAccessRights, getPageAsDigitalAssetUrl, getPageBaseUrl, getPageBaseUrl, getPageContentType, getPageLanguages, getPageLanguages, getPageNavTitle, getPageNavTitle, getPageNavTitle, getPageNavTitle, getPageNavTitle, getPageTitle, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrlAfterLanguageChange, getPageUrlOnPosition, getParentRepositoryId, getParentRepositoryId, getParentSiteNode, getParsedContentAttribute, getParsedContentAttribute, getParsedContentAttribute, getParsedContentAttributes, getPrincipal, getPrincipal, getPrincipalContentVersions, getPrincipalGroupCategories, getPrincipalGroupCategories, getPrincipalGroupRelatedContents, getPrincipalGroupRelatedContents, getPrincipalGroupRelatedPages, getPrincipalGroupRelatedPages, getPrincipalGroupRelatedPages, getPrincipalGroupRelatedPages, getPrincipalPropertyHashValues, getPrincipalPropertyHashValues, getPrincipalPropertyHashValues, getPrincipalPropertyHashValues, getPrincipalPropertyValue, getPrincipalPropertyValue, getPrincipalPropertyValue, getPrincipalPropertyValue, getPrincipalPropertyValue, getPrincipalPropertyValue, getPrincipalRoleCategories, getPrincipalRoleCategories, getPrincipalRoleRelatedContents, getPrincipalRoleRelatedContents, getPrincipalRoleRelatedPages, getPrincipalRoleRelatedPages, getPrincipalRoleRelatedPages, getPrincipalRoleRelatedPages, getReferencingPages, getRelatedContents, getRelatedContents, getRelatedContents, getRelatedContents, getRelatedContents, getRelatedContentsByQualifyer, getRelatedPages, getRelatedPages, getRelatedPages, getRelatedPages, getRelatedPages, getRelatedPages, getRenderedTextUrl, getRenderedTextUrl, getRepositoryBaseUrl, getRepositoryExtraProperty, getRepositoryRootSiteNode, getRepositoryRootSiteNode, getRequestParamenterNames, getRequestParameter, getRequestParameterValues, getRssHelper, getSiteNode, getSiteNode, getSiteNodeId, getSiteNodeId, getSiteNodesFromWebPages, getStringAsImageUrl, getStringAsImageUrl, getStringAsImageUrl, getStringAsImageUrl, getTemplateAttributeName, getTemplateController, getTemplateController, getThreatFoldersAsContents, getUrlContent, getUrlContent, getUrlContent, getUrlContent, getWebServiceHelper, getVisualFormatter, getWorkflowCurrentSteps, getWorkflowHistoricalSteps, getWorkflowSteps, include, include, include, isPersistedContext, renderString, renderString, replace, replace, setBrowserBean, setComponentLogic, setCookie, setDeliveryContext, setDeliveryControllers, setHttpRequest, setPersistedContext, setStandardRequestParameters, setThreatFoldersAsContents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditOnSiteBasicTemplateController

public EditOnSiteBasicTemplateController(DatabaseWrapper databaseWrapper,
                                         InfoGluePrincipal infoGluePrincipal)
Method Detail

decoratePage

public java.lang.String decoratePage(java.lang.String page)
This method adds the neccessairy html to a template to make it right-clickable.

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

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.

Specified by:
getContentAttribute in interface TemplateController
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.

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,
                                            boolean clean)
This method deliveres a String with the content-attribute asked for a specific content and ensure not to get decorated attributes if EditOnSite is turned on.

Specified by:
getContentAttribute in interface TemplateController
Overrides:
getContentAttribute in class BasicTemplateController
Parameters:
contentId - the contentId of a content
attributeName - the attribute name in the content. (ie. Title, Leadin etc)
clean - true if the content should be decorated in the editonsite working mode. No decoration is made if content-attribute is empty.
Returns:
the contentAttribute or empty string if none found.
See Also:
org.infoglue.deliver.controllers.kernel.impl.simple.EditOnSiteTemplateController#getContentAttribute(java.lang.String, boolean)

getContentAttributeValue

public java.lang.String getContentAttributeValue(java.lang.Integer contentId,
                                                 java.lang.String attributeName,
                                                 boolean clean,
                                                 boolean escapeHTML)
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:
getContentAttributeValue in class BasicTemplateController

getContentAttribute

public java.lang.String getContentAttribute(java.lang.Integer contentId,
                                            java.lang.Integer languageId,
                                            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.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:
getParsedContentAttribute in interface TemplateController
Overrides:
getParsedContentAttribute in class BasicTemplateController

getParsedContentAttribute

public java.lang.String getParsedContentAttribute(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.

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,
                                                  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:
getParsedContentAttribute in interface TemplateController
Overrides:
getParsedContentAttribute in class BasicTemplateController

getParsedContentAttribute

public java.lang.String getParsedContentAttribute(java.lang.Integer contentId,
                                                  java.lang.Integer languageId,
                                                  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:
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,
                                                InfoGluePrincipal infoGluePrincipal)
                                         throws 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.

Throws:
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,
                                                InfoGluePrincipal infoGluePrincipal)
                                         throws SystemException,
                                                java.lang.Exception
Throws:
SystemException
java.lang.Exception


Copyright © 2005 InfoGlue.org All Rights Reserved.