org.infoglue.cms.controllers.delivery.kernel.impl.simple
Class ComponentLogic
java.lang.Object
org.infoglue.cms.controllers.delivery.kernel.impl.simple.ComponentLogic
- Direct Known Subclasses:
- DecoratedComponentLogic
- public class ComponentLogic
- extends java.lang.Object
|
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,
java.lang.String assetKey,
int width,
int height)
|
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,
java.lang.String assetKey)
|
java.lang.Integer |
getBoundContentId(java.lang.String propertyName)
|
java.util.List |
getBoundContents(java.lang.String propertyName)
|
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 |
getBoundPages(java.lang.String propertyName)
This method returns a list of pages bound to the component. |
java.lang.String |
getContentAttribute(java.lang.String propertyName,
java.lang.String attributeName)
|
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,
java.lang.Integer contentId)
|
java.lang.String |
getPropertyValue(java.lang.String propertyName)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentLogic
public ComponentLogic(TemplateController templateController,
InfoGlueComponent infoGlueComponent)
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.
- 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,
java.lang.String assetKey)
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,
java.lang.String assetKey,
int width,
int height)
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)
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String propertyName)
getBoundContentId
public java.lang.Integer getBoundContentId(java.lang.String propertyName)
getBoundContents
public java.util.List getBoundContents(java.lang.String propertyName)
getBoundPages
public java.util.List getBoundPages(java.lang.String propertyName)
- This method returns a list of pages bound to the component.
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.Integer siteNodeId)
getPageUrl
public java.lang.String getPageUrl(java.lang.String propertyName,
java.lang.Integer contentId)
getPageNavTitle
public java.lang.String getPageNavTitle(java.lang.String propertyName)
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)