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

java.lang.Object
  |
  +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.ContentDeliveryController

public class ContentDeliveryController
extends java.lang.Object


Method Summary
 java.lang.String getArchiveBaseUrl(java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback)
          This method deliveres a String with the URL to the base path of the directory resulting from an unpacking of a uploaded zip-digitalAsset.
 java.util.Vector getArchiveEntries(java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback)
           
 java.lang.Integer getAssetFileSize(java.lang.Integer contentId, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback)
           
 java.lang.Integer getAssetFileSize(java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback)
           
 java.util.Collection getAssetKeys(java.lang.Integer contentId, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback)
          This method returns all the assetsKeys available in a contentVersion.
 java.lang.String getAssetUrl(java.lang.Integer contentId, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback)
          This is the basic way of getting an asset-url for a content.
 java.lang.String getAssetUrl(java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback)
          This is the basic way of getting an asset-url for a content.
 java.lang.String getAttributeValue(org.infoglue.cms.entities.content.ContentVersionVO contentVersionVO, java.lang.String key)
          This method fetches a value from the xml that is the contentVersions Value.
 java.util.List getChildContents(java.lang.Integer contentId, boolean includeFolders)
          This method returns a sorted list of childContents to a content ordered by the given attribute in the direction given.
 java.lang.String getContentAttribute(org.infoglue.cms.entities.content.ContentVersionVO contentVersionVO, java.lang.String attributeName)
          This is the most common way of getting attributes from a content.
 java.lang.String getContentAttribute(java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String attributeName, java.lang.Integer siteNodeId, boolean useLanguageFallback)
          This is the most common way of getting attributes from a content.
static ContentDeliveryController getContentDeliveryController()
          Factory method
 org.infoglue.cms.entities.management.ContentTypeDefinitionVO getContentTypeDefinitionVO(java.lang.Integer contentId)
          This method returns the contentTypeDefinitionVO of the content sent in.
 org.infoglue.cms.entities.content.ContentVersionVO getContentVersionVO(java.lang.Integer siteNodeId, java.lang.Integer contentId, java.lang.Integer languageId, boolean useLanguageFallback)
          This method returns that contentVersionVO which matches the parameters sent in and which also has the correct state for this delivery-instance.
 org.infoglue.cms.entities.content.ContentVO getContentVO(java.lang.Integer contentId)
          This method return a contentVO
 java.util.List getSortedChildContents(java.lang.Integer languageId, java.lang.Integer contentId, java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db, boolean searchRecursive, java.lang.Integer maximumNumberOfLevels, java.lang.String sortAttribute, java.lang.String sortOrder, boolean useLanguageFallback)
          This method returns a sorted list of childContents to a content ordered by the given attribute in the direction given.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentDeliveryController

public static ContentDeliveryController getContentDeliveryController()
Factory method


getContentVO

public org.infoglue.cms.entities.content.ContentVO getContentVO(java.lang.Integer contentId)
                                                         throws org.infoglue.cms.exception.SystemException,
                                                                java.lang.Exception
This method return a contentVO

org.infoglue.cms.exception.SystemException
java.lang.Exception

getContentVersionVO

public org.infoglue.cms.entities.content.ContentVersionVO getContentVersionVO(java.lang.Integer siteNodeId,
                                                                              java.lang.Integer contentId,
                                                                              java.lang.Integer languageId,
                                                                              boolean useLanguageFallback)
                                                                       throws org.infoglue.cms.exception.SystemException,
                                                                              java.lang.Exception
This method returns that contentVersionVO which matches the parameters sent in and which also has the correct state for this delivery-instance.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getContentAttribute

public java.lang.String getContentAttribute(java.lang.Integer contentId,
                                            java.lang.Integer languageId,
                                            java.lang.String attributeName,
                                            java.lang.Integer siteNodeId,
                                            boolean useLanguageFallback)
                                     throws org.infoglue.cms.exception.SystemException,
                                            java.lang.Exception
This is the most common way of getting attributes from a content. It selects the correct contentVersion depending on the language and then gets the attribute in the xml associated.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getContentAttribute

public java.lang.String getContentAttribute(org.infoglue.cms.entities.content.ContentVersionVO contentVersionVO,
                                            java.lang.String attributeName)
                                     throws org.infoglue.cms.exception.SystemException,
                                            java.lang.Exception
This is the most common way of getting attributes from a content. It selects the correct contentVersion depending on the language and then gets the attribute in the xml associated.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getAssetKeys

public java.util.Collection getAssetKeys(java.lang.Integer contentId,
                                         java.lang.Integer languageId,
                                         java.lang.Integer siteNodeId,
                                         boolean useLanguageFallback)
                                  throws org.infoglue.cms.exception.SystemException,
                                         java.lang.Exception
This method returns all the assetsKeys available in a contentVersion.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(java.lang.Integer contentId,
                                    java.lang.Integer languageId,
                                    java.lang.Integer siteNodeId,
                                    boolean useLanguageFallback)
                             throws org.infoglue.cms.exception.SystemException,
                                    java.lang.Exception
This is the basic way of getting an asset-url for a content. It selects the correct contentVersion depending on the language and then gets the digitalAsset associated. If the asset is cached on disk it returns that path imediately it's ok - otherwise it dumps it fresh.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(java.lang.Integer contentId,
                                    java.lang.Integer languageId,
                                    java.lang.String assetKey,
                                    java.lang.Integer siteNodeId,
                                    boolean useLanguageFallback)
                             throws org.infoglue.cms.exception.SystemException,
                                    java.lang.Exception
This is the basic way of getting an asset-url for a content. It selects the correct contentVersion depending on the language and then gets the digitalAsset associated with the key. If the asset is cached on disk it returns that path imediately it's ok - otherwise it dumps it fresh.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getAssetFileSize

public java.lang.Integer getAssetFileSize(java.lang.Integer contentId,
                                          java.lang.Integer languageId,
                                          java.lang.Integer siteNodeId,
                                          boolean useLanguageFallback)
                                   throws org.infoglue.cms.exception.SystemException,
                                          java.lang.Exception
org.infoglue.cms.exception.SystemException
java.lang.Exception

getAssetFileSize

public java.lang.Integer getAssetFileSize(java.lang.Integer contentId,
                                          java.lang.Integer languageId,
                                          java.lang.String assetKey,
                                          java.lang.Integer siteNodeId,
                                          boolean useLanguageFallback)
                                   throws org.infoglue.cms.exception.SystemException,
                                          java.lang.Exception
org.infoglue.cms.exception.SystemException
java.lang.Exception

getArchiveBaseUrl

public java.lang.String getArchiveBaseUrl(java.lang.Integer contentId,
                                          java.lang.Integer languageId,
                                          java.lang.String assetKey,
                                          java.lang.Integer siteNodeId,
                                          boolean useLanguageFallback)
                                   throws org.infoglue.cms.exception.SystemException,
                                          java.lang.Exception
This method deliveres a String with the URL to the base path of the directory resulting from an unpacking of a uploaded zip-digitalAsset.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getArchiveEntries

public java.util.Vector getArchiveEntries(java.lang.Integer contentId,
                                          java.lang.Integer languageId,
                                          java.lang.String assetKey,
                                          java.lang.Integer siteNodeId,
                                          boolean useLanguageFallback)
                                   throws org.infoglue.cms.exception.SystemException,
                                          java.lang.Exception
org.infoglue.cms.exception.SystemException
java.lang.Exception

getAttributeValue

public java.lang.String getAttributeValue(org.infoglue.cms.entities.content.ContentVersionVO contentVersionVO,
                                          java.lang.String key)
This method fetches a value from the xml that is the contentVersions Value. If the contentVersioVO is null the contentVersion has not been created yet and no values are present.


getChildContents

public java.util.List getChildContents(java.lang.Integer contentId,
                                       boolean includeFolders)
                                throws org.infoglue.cms.exception.SystemException,
                                       java.lang.Exception
This method returns a sorted list of childContents to a content ordered by the given attribute in the direction given.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getSortedChildContents

public java.util.List getSortedChildContents(java.lang.Integer languageId,
                                             java.lang.Integer contentId,
                                             java.lang.Integer siteNodeId,
                                             org.exolab.castor.jdo.Database db,
                                             boolean searchRecursive,
                                             java.lang.Integer maximumNumberOfLevels,
                                             java.lang.String sortAttribute,
                                             java.lang.String sortOrder,
                                             boolean useLanguageFallback)
                                      throws org.infoglue.cms.exception.SystemException,
                                             java.lang.Exception
This method returns a sorted list of childContents to a content ordered by the given attribute in the direction given.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getContentTypeDefinitionVO

public org.infoglue.cms.entities.management.ContentTypeDefinitionVO getContentTypeDefinitionVO(java.lang.Integer contentId)
                                                                                        throws org.infoglue.cms.exception.SystemException,
                                                                                               java.lang.Exception
This method returns the contentTypeDefinitionVO of the content sent in.

org.infoglue.cms.exception.SystemException
java.lang.Exception