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

java.lang.Object
  |
  +--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 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.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.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.lang.String propertyName)
           
 java.util.List getBoundPages(java.lang.String propertyName, boolean useInheritance)
          This method returns a list of pages bound to the 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)
          This method returns a list of childpages.
 ComponentDeliveryContext getComponentDeliveryContext()
           
 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.util.List getFormAttributes(java.lang.String propertyName, java.lang.String attributeName)
           
 InfoGlueComponent getInfoGlueComponent()
           
 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.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.String attributeName)
           
 java.lang.String getParsedContentAttribute(java.lang.String propertyName, java.lang.String attributeName, boolean disableEditOnSight, 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)
           
 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
equals, 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.

java.lang.Exception

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.

java.lang.Exception

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.

java.lang.Exception

getAssetUrl

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

getAssetUrl

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

getAssetUrl

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

getAssetUrl

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

getAssetThumbnailUrl

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

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(java.lang.String propertyName,
                                             int width,
                                             int height,
                                             boolean useInheritance)
                                      throws java.lang.Exception
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
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
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(java.lang.Integer contentId,
                                             int width,
                                             int height)
                                      throws java.lang.Exception
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
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)

getContentAttribute

public java.lang.String getContentAttribute(java.lang.String propertyName,
                                            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)

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
SystemException

getPropertyValue

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

getPropertyValue

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

getBoundContent

public ContentVO getBoundContent(java.lang.String propertyName)

getBoundContent

public ContentVO getBoundContent(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.


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)
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
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)

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.


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 TODO - temporary dev solution


getPageNavTitle

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

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()