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

java.lang.Object
  extended by org.infoglue.deliver.controllers.kernel.impl.simple.ComponentLogic
Direct Known Subclasses:
DecoratedComponentLogic

public class ComponentLogic
extends java.lang.Object


Constructor Summary
ComponentLogic(TemplateController templateController, InfoGlueComponent infoGlueComponent)
           
 
Method Summary
 java.lang.String getAssetThumbnailUrl(java.lang.Integer contentId, int width, int height)
           
 java.lang.String getAssetThumbnailUrl(java.lang.Integer contentId, java.lang.String assetKey, int width, int height)
           
 java.lang.String getAssetThumbnailUrl(java.lang.String propertyName, int width, int height)
           
 java.lang.String getAssetThumbnailUrl(java.lang.String propertyName, int width, int height, boolean useInheritance)
           
 java.lang.String getAssetThumbnailUrl(java.lang.String propertyName, java.lang.String assetKey, int width, int height)
           
 java.lang.String getAssetThumbnailUrl(java.lang.String propertyName, java.lang.String assetKey, int width, int height, boolean useInheritance)
           
 java.lang.String getAssetUrl(java.lang.Integer contentId, java.lang.String assetKey)
           
 java.lang.String getAssetUrl(java.lang.String propertyName)
           
 java.lang.String getAssetUrl(java.lang.String propertyName, boolean useInheritance)
           
 java.lang.String getAssetUrl(java.lang.String propertyName, java.lang.String assetKey)
           
 java.lang.String getAssetUrl(java.lang.String propertyName, java.lang.String assetKey, boolean useInheritance)
           
 java.util.List getAssignedCategories(java.lang.String propertyName, java.lang.String categoryKey, java.lang.Integer languageId, boolean useInheritance, boolean useLanguageFallback)
           
 java.util.List getBoundCategoryContents(java.lang.String categoryAttribute, java.lang.String typeAttribute)
          The method returns a list of ContentVO-objects that are related to the category of named binding on the siteNode sent in.
 ContentVO getBoundContent(java.lang.Integer siteNodeId, java.lang.String propertyName, boolean useInheritance)
           
 ContentVO getBoundContent(java.lang.String propertyName)
           
 ContentVO getBoundContent(java.lang.String propertyName, boolean useInheritance)
           
 java.lang.Integer getBoundContentId(java.lang.String propertyName)
           
 java.lang.Integer getBoundContentId(java.lang.String propertyName, boolean useInheritance)
           
 java.util.List getBoundContents(java.util.Map property)
           
 java.util.List getBoundContents(java.lang.String propertyName)
           
 java.util.List getBoundContents(java.lang.String propertyName, boolean useInheritance)
           
 java.util.List getBoundFolderContents(java.lang.String propertyName, boolean searchRecursive, java.lang.String sortAttribute, java.lang.String sortOrder)
          The method returns a list of ContentVO-objects that is children to the bound content of named binding on the siteNode sent in.
 java.util.List getBoundFolderContents(java.lang.String propertyName, boolean searchRecursive, java.lang.String sortAttribute, java.lang.String sortOrder, boolean includeFolders)
          The method returns a list of ContentVO-objects that is children to the bound content of named binding on the siteNode sent in.
 WebPage getBoundPage(java.lang.String propertyName)
           
 WebPage getBoundPage(java.lang.String propertyName, boolean useInheritance)
          This method returns a page bound to the component.
 java.util.List getBoundPages(java.util.Map property)
           
 java.util.List getBoundPages(java.lang.String propertyName)
           
 java.util.List getBoundPages(java.lang.String propertyName, boolean useInheritance)
          This method returns a list of pages bound to the component.
 SiteNodeVO getBoundSiteNode(java.lang.Integer targetSiteNodeId, java.lang.String propertyName, boolean useInheritance)
          This method returns a list of pages bound to the component on the given siteNode.
 SiteNodeVO getBoundSiteNode(java.lang.String propertyName, boolean useInheritance)
          This method returns a list of pages bound to the component.
 java.util.List getChildComponents()
          This method returns all components which are on slots under the current component.
 java.util.List getChildComponents(InfoGlueComponent component, java.lang.String slotId)
          This method returns all components which are on slots under the current component.
 java.util.List getChildComponents(java.lang.String slotId)
          This method returns all components which are on a given slots under the current component.
 java.util.List getChildContents(java.lang.String propertyName)
          This method returns a list of childContents using inheritence as default.
 java.util.List getChildContents(java.lang.String propertyName, boolean useInheritance, boolean searchRecursive, java.lang.String sortAttribute, java.lang.String sortOrder, boolean includeFolders)
          This method returns a list of childcontents.
 java.util.List getChildPages(java.lang.Integer siteNodeId)
          This method returns a list of childpages.
 java.util.List getChildPages(java.lang.String propertyName)
          This method returns a list of childpages using inheritence as default.
 java.util.List getChildPages(java.lang.String propertyName, boolean useInheritance)
           
 java.util.List getChildPages(java.lang.String propertyName, boolean useInheritance, boolean escapeHTML)
           
 java.util.List getChildPages(java.lang.String propertyName, boolean useInheritance, boolean escapeHTML, boolean hideUnauthorizedPages)
          This method returns a list of childpages.
 ComponentDeliveryContext getComponentDeliveryContext()
          Returns ComponentDeliveryContext
 java.util.Map getComponentProperty(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.String propertyName)
          This method gets a property from the sitenode given .
 java.util.Map getComponentProperty(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.String propertyName, boolean useInheritance)
          This method gets a property from the sitenode given and also looks recursively upwards.
 java.lang.String getContentAttribute(java.lang.String propertyName, java.lang.Integer languageId, java.lang.String attributeName, boolean disableEditOnSight, boolean useInheritance)
           
 java.lang.String getContentAttribute(java.lang.String propertyName, java.lang.String attributeName)
           
 java.lang.String getContentAttribute(java.lang.String propertyName, java.lang.String attributeName, boolean disableEditOnSight)
           
 java.lang.String getContentAttribute(java.lang.String propertyName, java.lang.String attributeName, boolean disableEditOnSight, boolean useInheritance)
           
 java.lang.String getContentAttributeMapValue(java.lang.String propertyName, java.lang.String attributeName, java.lang.String keyName)
          Returns a map value from a content attribute bound by a propertie.
 java.lang.Integer getContentId(java.util.Map property)
           
 java.util.List getFormAttributes(java.lang.String propertyName, java.lang.String attributeName)
           
 boolean getHasDefinedProperty(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.String propertyName, boolean useInheritance)
          This method gets if a property is defined and available in the given page.
 InfoGlueComponent getInfoGlueComponent()
           
 java.util.List getInheritedComponentProperties(java.lang.Integer siteNodeId, java.lang.String propertyName, boolean useInheritance)
          This method gets a property from the component and if not found there checks in parent components.
 java.util.List getInheritedComponentProperties(java.lang.String propertyName, boolean useInheritance)
          This method gets a property from the component and if not found there checks in parent components.
 java.util.Map getInheritedComponentProperty(InfoGlueComponent component, java.lang.String propertyName, boolean useInheritance)
          This method gets a property from the component and if not found there checks in parent components.
 java.util.Map getInheritedComponentProperty(java.lang.Integer siteNodeId, InfoGlueComponent component, java.lang.String propertyName, boolean useInheritance)
          This method gets a property from the component and if not found there checks in parent components.
 java.lang.String getPageAsDigitalAssetUrl(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.lang.String fileSuffix)
          This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue.
 java.lang.String getPageAsDigitalAssetUrl(java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.lang.String fileSuffix, boolean cacheUrl)
          This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue.
 java.lang.String getPageAsDigitalAssetUrl(java.lang.String propertyName)
          This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue.
 java.lang.String getPageAsDigitalAssetUrl(java.lang.String propertyName, boolean useInheritance, java.lang.String fileSuffix)
          This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue.
 java.lang.String getPageAsDigitalAssetUrl(java.lang.String propertyName, java.lang.Integer languageId, java.lang.Integer contentId, boolean useInheritance, java.lang.String fileSuffix, boolean cacheUrl)
          This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue.
protected  java.lang.String getPageComponentsString(TemplateController templateController, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, java.util.Set usedContentVersionId)
          This method fetches the pageComponent structure from the metainfo content.
 java.lang.String getPageNavTitle(java.lang.Integer siteNodeId)
           
 java.lang.String getPageNavTitle(java.lang.String propertyName)
           
 java.lang.String getPageUrl(java.lang.Integer siteNodeId)
           
 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.
 java.lang.String getPageUrl(java.lang.String propertyName)
           
 java.lang.String getPageUrl(java.lang.String propertyName, boolean useInheritance)
           
 java.lang.String getPageUrl(java.lang.String propertyName, java.lang.Integer contentId)
           
 java.lang.String getPageUrl(java.lang.String propertyName, java.lang.Integer contentId, boolean useInheritance)
           
 java.lang.String getPageUrl(java.lang.String propertyName, java.lang.Integer contentId, java.lang.Integer languageId, boolean useInheritance)
           
 java.lang.String getParsedContentAttribute(java.lang.String propertyName, java.lang.Integer languageId, java.lang.String attributeName, boolean disableEditOnSight, boolean useInheritance)
           
 java.lang.String getParsedContentAttribute(java.lang.String propertyName, java.lang.String attributeName)
           
 java.lang.String getParsedContentAttribute(java.lang.String propertyName, java.lang.String attributeName, boolean disableEditOnSight, boolean useInheritance)
           
 java.lang.String getPropertyValue(java.lang.Integer siteNodeId, java.lang.String propertyName, boolean useLangaugeFallback, boolean useInheritance)
           
 java.lang.String getPropertyValue(java.lang.String propertyName)
           
 java.lang.String getPropertyValue(java.lang.String propertyName, boolean useLangaugeFallback)
           
 java.lang.String getPropertyValue(java.lang.String propertyName, boolean useLangaugeFallback, boolean useInheritance)
           
 java.util.List getRelatedPages(java.lang.String propertyName, java.lang.String attributeName)
           
 java.lang.String getRenderedTextUrl(java.lang.String text)
          Renders a text to a PNG file, the preferences of the text rendering is taken from the deliver.properties. ie. fontrender.fontName=Arial
 java.lang.String getRenderedTextUrl(java.lang.String fontConfigPropertyName, java.lang.String text)
          Renders a text to a PNG file, the preferences of the text rendering is taken from the bound component content of the property.
 java.lang.String getRenderedTextUrl(java.lang.String fontConfigPropertyName, java.lang.String text, java.util.Map renderAttributes)
          Renders a text to a PNG file, the preferences of the text rendering is taken from the bound component content of the property.
 java.lang.String getRenderedTextUrl(java.lang.String fontConfigPropertyName, java.lang.String text, java.lang.String renderAttributes)
          Renders a text to a PNG file, the preferences of the text rendering is taken from the bound component content of the property.
 java.lang.Integer getSiteNodeId(java.util.Map property)
           
 boolean getThreatFoldersAsContents()
           
 boolean getUseEditOnSight()
           
 boolean getUseInheritance()
           
 void setThreatFoldersAsContents(boolean threatFoldersAsContents)
           
 void setUseEditOnSight(boolean useEditOnSight)
           
 void setUseInheritance(boolean useInheritance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentLogic

public ComponentLogic(TemplateController templateController,
                      InfoGlueComponent infoGlueComponent)
Method Detail

getBoundFolderContents

public java.util.List getBoundFolderContents(java.lang.String propertyName,
                                             boolean searchRecursive,
                                             java.lang.String sortAttribute,
                                             java.lang.String sortOrder)
                                      throws java.lang.Exception
The method returns a list of ContentVO-objects that is children to the bound content of named binding on the siteNode sent in. The method is great for collection-pages on any site where you want to bind to a folder containing all contents to list. You can also state if the method should recurse into subfolders and how the contents should be sorted. The recursion only deals with three levels at the moment for performance-reasons.

Parameters:
propertyName - the name of the content binding property
searchRecursive - if true the search is made recursive
sortAttribute - the attribute to sort the resulting List
sortOrder - if desc sorting is descendend otherwise ascending.
Returns:
a List of ContentVO objects,
Throws:
java.lang.Exception - if an error occures

getBoundFolderContents

public java.util.List getBoundFolderContents(java.lang.String propertyName,
                                             boolean searchRecursive,
                                             java.lang.String sortAttribute,
                                             java.lang.String sortOrder,
                                             boolean includeFolders)
                                      throws java.lang.Exception
The method returns a list of ContentVO-objects that is children to the bound content of named binding on the siteNode sent in. The method is great for collection-pages on any site where you want to bind to a folder containing all contents to list. You can also state if the method should recurse into subfolders and how the contents should be sorted. The recursion only deals with three levels at the moment for performance-reasons.

Parameters:
propertyName - the name of the content binding property
searchRecursive - if true the search is made recursive
sortAttribute - the attribute to sort the rsulting List
sortOrder - if desc sorting is descendend otherwise ascending.
includeFolders - true if the folders should be added to the List
Returns:
a List of ContentVO objects,
Throws:
java.lang.Exception - if an error occures

getBoundCategoryContents

public java.util.List getBoundCategoryContents(java.lang.String categoryAttribute,
                                               java.lang.String typeAttribute)
                                        throws java.lang.Exception
The method returns a list of ContentVO-objects that are related to the category of named binding on the siteNode sent in. The method is great for collection-pages on any site where you want to bind a category.

Throws:
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(java.lang.String propertyName)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(java.lang.String propertyName,
                                    boolean useInheritance)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(java.lang.String propertyName,
                                    java.lang.String assetKey)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(java.lang.String propertyName,
                                    java.lang.String assetKey,
                                    boolean useInheritance)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(java.lang.String propertyName,
                                             int width,
                                             int height)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(java.lang.String propertyName,
                                             int width,
                                             int height,
                                             boolean useInheritance)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(java.lang.String propertyName,
                                             java.lang.String assetKey,
                                             int width,
                                             int height)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(java.lang.String propertyName,
                                             java.lang.String assetKey,
                                             int width,
                                             int height,
                                             boolean useInheritance)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(java.lang.Integer contentId,
                                             int width,
                                             int height)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(java.lang.Integer contentId,
                                             java.lang.String assetKey,
                                             int width,
                                             int height)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(java.lang.Integer contentId,
                                    java.lang.String assetKey)

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String propertyName,
                                            java.lang.String attributeName)

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String propertyName,
                                            java.lang.String attributeName,
                                            boolean disableEditOnSight)

getContentId

public java.lang.Integer getContentId(java.util.Map property)

getBoundContents

public java.util.List getBoundContents(java.util.Map property)

getSiteNodeId

public java.lang.Integer getSiteNodeId(java.util.Map property)

getBoundPages

public java.util.List getBoundPages(java.util.Map property)

getAssignedCategories

public java.util.List getAssignedCategories(java.lang.String propertyName,
                                            java.lang.String categoryKey,
                                            java.lang.Integer languageId,
                                            boolean useInheritance,
                                            boolean useLanguageFallback)

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String propertyName,
                                            java.lang.String attributeName,
                                            boolean disableEditOnSight,
                                            boolean useInheritance)

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String propertyName,
                                            java.lang.Integer languageId,
                                            java.lang.String attributeName,
                                            boolean disableEditOnSight,
                                            boolean useInheritance)

getParsedContentAttribute

public java.lang.String getParsedContentAttribute(java.lang.String propertyName,
                                                  java.lang.String attributeName)

getParsedContentAttribute

public java.lang.String getParsedContentAttribute(java.lang.String propertyName,
                                                  java.lang.String attributeName,
                                                  boolean disableEditOnSight,
                                                  boolean useInheritance)

getParsedContentAttribute

public java.lang.String getParsedContentAttribute(java.lang.String propertyName,
                                                  java.lang.Integer languageId,
                                                  java.lang.String attributeName,
                                                  boolean disableEditOnSight,
                                                  boolean useInheritance)

getFormAttributes

public java.util.List getFormAttributes(java.lang.String propertyName,
                                        java.lang.String attributeName)

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String propertyName)
                                  throws SystemException
Throws:
SystemException

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String propertyName,
                                         boolean useLangaugeFallback)
                                  throws SystemException
Throws:
SystemException

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String propertyName,
                                         boolean useLangaugeFallback,
                                         boolean useInheritance)
                                  throws SystemException
Throws:
SystemException

getPropertyValue

public java.lang.String getPropertyValue(java.lang.Integer siteNodeId,
                                         java.lang.String propertyName,
                                         boolean useLangaugeFallback,
                                         boolean useInheritance)
                                  throws SystemException
Throws:
SystemException

getBoundContent

public ContentVO getBoundContent(java.lang.String propertyName)

getBoundContent

public ContentVO getBoundContent(java.lang.String propertyName,
                                 boolean useInheritance)

getBoundContent

public ContentVO getBoundContent(java.lang.Integer siteNodeId,
                                 java.lang.String propertyName,
                                 boolean useInheritance)

getBoundContentId

public java.lang.Integer getBoundContentId(java.lang.String propertyName)

getBoundContentId

public java.lang.Integer getBoundContentId(java.lang.String propertyName,
                                           boolean useInheritance)

getBoundContents

public java.util.List getBoundContents(java.lang.String propertyName)

getBoundContents

public java.util.List getBoundContents(java.lang.String propertyName,
                                       boolean useInheritance)

getBoundPage

public WebPage getBoundPage(java.lang.String propertyName)

getBoundPage

public WebPage getBoundPage(java.lang.String propertyName,
                            boolean useInheritance)
This method returns a page bound to the component.


getBoundPages

public java.util.List getBoundPages(java.lang.String propertyName)

getBoundPages

public java.util.List getBoundPages(java.lang.String propertyName,
                                    boolean useInheritance)
This method returns a list of pages bound to the component.


getBoundSiteNode

public SiteNodeVO getBoundSiteNode(java.lang.String propertyName,
                                   boolean useInheritance)
This method returns a list of pages bound to the component.


getBoundSiteNode

public SiteNodeVO getBoundSiteNode(java.lang.Integer targetSiteNodeId,
                                   java.lang.String propertyName,
                                   boolean useInheritance)
This method returns a list of pages bound to the component on the given siteNode.


getChildContents

public java.util.List getChildContents(java.lang.String propertyName)
This method returns a list of childContents using inheritence as default.


getChildContents

public java.util.List getChildContents(java.lang.String propertyName,
                                       boolean useInheritance,
                                       boolean searchRecursive,
                                       java.lang.String sortAttribute,
                                       java.lang.String sortOrder,
                                       boolean includeFolders)
This method returns a list of childcontents.


getChildPages

public java.util.List getChildPages(java.lang.String propertyName)
This method returns a list of childpages using inheritence as default.


getChildPages

public java.util.List getChildPages(java.lang.String propertyName,
                                    boolean useInheritance)

getChildPages

public java.util.List getChildPages(java.lang.String propertyName,
                                    boolean useInheritance,
                                    boolean escapeHTML)

getChildPages

public java.util.List getChildPages(java.lang.String propertyName,
                                    boolean useInheritance,
                                    boolean escapeHTML,
                                    boolean hideUnauthorizedPages)
This method returns a list of childpages.


getChildPages

public java.util.List getChildPages(java.lang.Integer siteNodeId)
This method returns a list of childpages.


getPageUrl

public java.lang.String getPageUrl(java.lang.String propertyName)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getPageUrl

public java.lang.String getPageUrl(java.lang.String propertyName,
                                   boolean useInheritance)

getPageUrl

public java.lang.String getPageUrl(java.lang.Integer siteNodeId)

getPageUrl

public java.lang.String getPageUrl(java.lang.String propertyName,
                                   java.lang.Integer contentId)

getPageUrl

public java.lang.String getPageUrl(java.lang.String propertyName,
                                   java.lang.Integer contentId,
                                   boolean useInheritance)

getPageUrl

public java.lang.String getPageUrl(java.lang.String propertyName,
                                   java.lang.Integer contentId,
                                   java.lang.Integer languageId,
                                   boolean useInheritance)

getPageAsDigitalAssetUrl

public java.lang.String getPageAsDigitalAssetUrl(java.lang.String propertyName)
                                          throws java.lang.Exception
This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue. Not suitable for use if you have very dynamic css:es or scripts which includes logic depending on user info etc.. mostly usable if you have a static css or controls it on the pageCache parameters.

Throws:
java.lang.Exception

getPageAsDigitalAssetUrl

public java.lang.String getPageAsDigitalAssetUrl(java.lang.String propertyName,
                                                 boolean useInheritance,
                                                 java.lang.String fileSuffix)
This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue. Not suitable for use if you have very dynamic css:es or scripts which includes logic depending on user info etc.. mostly usable if you have a static css or controls it on the pageCache parameters.


getPageAsDigitalAssetUrl

public java.lang.String getPageAsDigitalAssetUrl(java.lang.String propertyName,
                                                 java.lang.Integer languageId,
                                                 java.lang.Integer contentId,
                                                 boolean useInheritance,
                                                 java.lang.String fileSuffix,
                                                 boolean cacheUrl)
This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue. Not suitable for use if you have very dynamic css:es or scripts which includes logic depending on user info etc.. mostly usable if you have a static css or controls it on the pageCache parameters.


getPageAsDigitalAssetUrl

public java.lang.String getPageAsDigitalAssetUrl(java.lang.Integer siteNodeId,
                                                 java.lang.Integer languageId,
                                                 java.lang.Integer contentId,
                                                 java.lang.String fileSuffix)
This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue. Not suitable for use if you have very dynamic css:es or scripts which includes logic depending on user info etc.. mostly usable if you have a static css or controls it on the pageCache parameters.


getPageAsDigitalAssetUrl

public java.lang.String getPageAsDigitalAssetUrl(java.lang.Integer siteNodeId,
                                                 java.lang.Integer languageId,
                                                 java.lang.Integer contentId,
                                                 java.lang.String fileSuffix,
                                                 boolean cacheUrl)
This method calls an page and stores it as an digitalAsset - that way one can avoid having to serve javascript-files and css-files through InfoGlue. Not suitable for use if you have very dynamic css:es or scripts which includes logic depending on user info etc.. mostly usable if you have a static css or controls it on the pageCache parameters.


getPageNavTitle

public java.lang.String getPageNavTitle(java.lang.String propertyName)

getRelatedPages

public java.util.List getRelatedPages(java.lang.String propertyName,
                                      java.lang.String attributeName)

getInheritedComponentProperty

public java.util.Map getInheritedComponentProperty(InfoGlueComponent component,
                                                   java.lang.String propertyName,
                                                   boolean useInheritance)
This method gets a property from the component and if not found there checks in parent components.


getInheritedComponentProperty

public java.util.Map getInheritedComponentProperty(java.lang.Integer siteNodeId,
                                                   InfoGlueComponent component,
                                                   java.lang.String propertyName,
                                                   boolean useInheritance)
This method gets a property from the component and if not found there checks in parent components.


getInheritedComponentProperties

public java.util.List getInheritedComponentProperties(java.lang.String propertyName,
                                                      boolean useInheritance)
This method gets a property from the component and if not found there checks in parent components.


getInheritedComponentProperties

public java.util.List getInheritedComponentProperties(java.lang.Integer siteNodeId,
                                                      java.lang.String propertyName,
                                                      boolean useInheritance)
This method gets a property from the component and if not found there checks in parent components.


getHasDefinedProperty

public boolean getHasDefinedProperty(java.lang.Integer siteNodeId,
                                     java.lang.Integer languageId,
                                     java.lang.String propertyName,
                                     boolean useInheritance)
This method gets if a property is defined and available in the given page.


getComponentProperty

public java.util.Map getComponentProperty(java.lang.Integer siteNodeId,
                                          java.lang.Integer languageId,
                                          java.lang.String propertyName,
                                          boolean useInheritance)
This method gets a property from the sitenode given and also looks recursively upwards.


getComponentProperty

public java.util.Map getComponentProperty(java.lang.Integer siteNodeId,
                                          java.lang.Integer languageId,
                                          java.lang.String propertyName)
This method gets a property from the sitenode given .


getPageUrl

public 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. The url is composed of siteNode, language and content


getPageNavTitle

public java.lang.String getPageNavTitle(java.lang.Integer siteNodeId)

getChildComponents

public java.util.List getChildComponents()
This method returns all components which are on slots under the current component.


getChildComponents

public java.util.List getChildComponents(java.lang.String slotId)
This method returns all components which are on a given slots under the current component.


getChildComponents

public java.util.List getChildComponents(InfoGlueComponent component,
                                         java.lang.String slotId)
This method returns all components which are on slots under the current component.


getPageComponentsString

protected java.lang.String getPageComponentsString(TemplateController templateController,
                                                   java.lang.Integer siteNodeId,
                                                   java.lang.Integer languageId,
                                                   java.lang.Integer contentId,
                                                   java.util.Set usedContentVersionId)
                                            throws SystemException,
                                                   java.lang.Exception
This method fetches the pageComponent structure from the metainfo content.

Throws:
SystemException
java.lang.Exception

getInfoGlueComponent

public InfoGlueComponent getInfoGlueComponent()
Returns:
Returns the infoGlueComponent.

getUseInheritance

public boolean getUseInheritance()

setUseInheritance

public void setUseInheritance(boolean useInheritance)

getUseEditOnSight

public boolean getUseEditOnSight()

setUseEditOnSight

public void setUseEditOnSight(boolean useEditOnSight)

getThreatFoldersAsContents

public boolean getThreatFoldersAsContents()

setThreatFoldersAsContents

public void setThreatFoldersAsContents(boolean threatFoldersAsContents)

getComponentDeliveryContext

public ComponentDeliveryContext getComponentDeliveryContext()
Returns ComponentDeliveryContext

Returns:
the ComponentDeliveryContext

getContentAttributeMapValue

public java.lang.String getContentAttributeMapValue(java.lang.String propertyName,
                                                    java.lang.String attributeName,
                                                    java.lang.String keyName)
Returns a map value from a content attribute bound by a propertie. This method is good for global labels and translations, instead of having property files on disk you have them in the cms.

Parameters:
propertyName - a bound content
attributeName - a attribute in the content
keyName - keyname in the propertyu, the text should be formed as a standard java property file (key=val)
Returns:
The value of the keyname in the content attribute or empty string if none found.

getRenderedTextUrl

public java.lang.String getRenderedTextUrl(java.lang.String text)
Renders a text to a PNG file, the preferences of the text rendering is taken from the deliver.properties. ie. fontrender.fontName=Arial

Parameters:
text - The text to render
Returns:
an asseturl to the rendered text or an empty string if something went wrong

getRenderedTextUrl

public java.lang.String getRenderedTextUrl(java.lang.String fontConfigPropertyName,
                                           java.lang.String text)
Renders a text to a PNG file, the preferences of the text rendering is taken from the bound component content of the property. The content is iterated and extract all matching properties. ie. fontName, fontsize etc.

Parameters:
fontConfigPropertyName - name of the bound component with font render properties. If null property is ignored.
text - the text to render.
Returns:
an asseturl to the rendered text or an empty string if something went wrong

getRenderedTextUrl

public java.lang.String getRenderedTextUrl(java.lang.String fontConfigPropertyName,
                                           java.lang.String text,
                                           java.lang.String renderAttributes)
Renders a text to a PNG file, the preferences of the text rendering is taken from the bound component content of the property. The content is iterated and extract all matching properties. ie. fontName, fontsize etc.

Parameters:
propertyName - name of the bound component with font render properties. If null property is ignored.
text - the text to render
renderAttributes - render attributes in a commaseparated string ie. "fontname=Arial,fontsize=12" to override the bound content preferences
Returns:
an asseturl to the rendered text or an empty string if something went wrong

getRenderedTextUrl

public java.lang.String getRenderedTextUrl(java.lang.String fontConfigPropertyName,
                                           java.lang.String text,
                                           java.util.Map renderAttributes)
Renders a text to a PNG file, the preferences of the text rendering is taken from the bound component content of the property. The content is iterated and extract all matching properties. ie. fontName, fontsize etc.

Parameters:
propertyName - name of the bound component with font render properties. If null property is ignored.
text - the text to render
renderAttributes - render attributes in a commaseparated string ie. "fontname=Arial,fontsize=12" to override the bound content preferences
Returns:
an asseturl to the rendered text or an empty string if something went wrong


Copyright © 2005 InfoGlue.org All Rights Reserved.