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

java.lang.Object
  extended by org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
      extended by org.infoglue.deliver.controllers.kernel.impl.simple.ContentDeliveryController

public class ContentDeliveryController
extends BaseDeliveryController


Method Summary
 java.util.List findContentCategoriesForContentVersionId(org.exolab.castor.jdo.Database db, java.lang.Integer contentVersionId, java.lang.String categoryKey, DeliveryContext deliveryContext)
          Find all CategoryVOs that are related to the provided content version on a specific category key.
 java.util.List findContentCategoryVOsForContentVersionId(org.exolab.castor.jdo.Database db, java.lang.Integer contentVersionId, java.lang.String categoryKey, DeliveryContext deliveryContext)
          Find all CategoryVOs that are related to the provided content version on a specific category key.
 java.util.List findContentVersionVOsForCategory(org.exolab.castor.jdo.Database db, java.lang.Integer categoryId, java.lang.String attributeName, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, java.lang.Integer languageId, boolean useLanguageFallback, DeliveryContext deliveryContext)
          Find all ContentVersionVOs that are related to the provided Category.
 java.lang.String getArchiveBaseUrl(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          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(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
           
 java.lang.Integer getAssetFileSize(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
           
 java.lang.Integer getAssetFileSize(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
           
 java.util.Collection getAssetKeys(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          This method returns all the assetsKeys available in a contentVersion.
 java.lang.String getAssetThumbnailUrl(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, int width, int height, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          This is the basic way of getting an asset-url for a content.
 java.lang.String getAssetThumbnailUrl(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback, int width, int height, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          This is the basic way of getting an asset-url for a content.
 java.lang.String getAssetUrl(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          This is the basic way of getting an asset-url for a content.
 java.lang.String getAssetUrl(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          This is the basic way of getting an asset-url for a content.
 java.util.List getAssignedCategoryVOsForContentVersionId(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String categoryKey, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
           
 java.lang.String getAttributeValue(org.exolab.castor.jdo.Database db, ContentVersionVO contentVersionVO, java.lang.String key, boolean escapeHTML)
          This method fetches a value from the xml that is the contentVersions Value.
 java.util.List getChildContents(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.Integer contentId, java.lang.Integer languageId, boolean useLanguageFallback, boolean includeFolders, DeliveryContext deliveryContext)
          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.exolab.castor.jdo.Database db, ContentVersionVO contentVersionVO, java.lang.String attributeName, boolean escapeHTML)
          This is the most common way of getting attributes from a content.
 java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String attributeName, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infogluePrincipal, boolean escapeHTML)
          This is the most common way of getting attributes from a content.
 java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String attributeName, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infogluePrincipal, boolean escapeHTML, boolean isMetaInfoQuery)
          This is the most common way of getting attributes from a content.
 java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String attributeName, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infogluePrincipal, boolean escapeHTML, boolean isMetaInfoQuery, java.util.Set usedContentVersionId)
          This is the most common way of getting attributes from a content.
 java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String attributeName, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infogluePrincipal, boolean escapeHTML, java.util.Set usedContentVersionId)
          This is the most common way of getting attributes from a content.
static ContentDeliveryController getContentDeliveryController()
          Factory method
 ContentTypeDefinitionVO getContentTypeDefinitionVO(org.exolab.castor.jdo.Database db, java.lang.Integer contentId)
          This method returns the contentTypeDefinitionVO of the content sent in.
 ContentVersionVO getContentVersionVO(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId, java.lang.Integer contentId, java.lang.Integer languageId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          This method returns that contentVersionVO which matches the parameters sent in and which also has the correct state for this delivery-instance.
 ContentVO getContentVO(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, DeliveryContext deliveryContext)
          This method return a contentVO
 ContentVO getContentVO(java.lang.Integer contentId, org.exolab.castor.jdo.Database db)
          This method return a contentVO
 java.lang.Integer getDigitalAssetId(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, java.lang.String assetKey, java.lang.Integer siteNodeId, boolean useLanguageFallback, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          This method returns the id of the digital asset.
 java.lang.Integer getProtectedContentId(org.exolab.castor.jdo.Database db, Content content)
          This method returns the id of the content that is protected if any.
 java.lang.Integer getProtectedContentId(org.exolab.castor.jdo.Database db, java.lang.Integer contentId)
          This method returns the id of the content that is protected if any.
 java.util.List getSortedChildContents(InfoGluePrincipal infoGluePrincipal, 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, boolean includeFolders, DeliveryContext deliveryContext)
          This method returns a sorted list of childContents to a content ordered by the given attribute in the direction given.
 boolean isValidContent(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer languageId, boolean useLanguageFallback, boolean includeFolders, InfoGluePrincipal infoGluePrincipal, DeliveryContext deliveryContext)
          Returns if a content is between dates and has a content version suitable for this delivery mode.
 boolean isValidContent(InfoGluePrincipal infoGluePrincipal, Content content, java.lang.Integer languageId, boolean useLanguageFallBack, boolean includeFolders, org.exolab.castor.jdo.Database db, DeliveryContext deliveryContext)
          Returns if a content is between dates and has a content version suitable for this delivery mode.
 java.util.List sortContents(org.exolab.castor.jdo.Database db, java.util.Collection contents, java.lang.Integer languageId, java.lang.Integer siteNodeId, java.lang.String sortAttributeName, java.lang.String sortOrder, boolean useLanguageFallback, boolean includeFolders, DeliveryContext deliveryContext, InfoGluePrincipal infoGluePrincipal)
          This method just sorts the list of qualifyers on sortOrder.
 
Methods inherited from class org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
beginTransaction, closeDatabase, closeTransaction, commitTransaction, createQuery, executeQuery, executeQuery, getAllVOObjects, getAllVOObjects, getObjectWithId, getVOWithId, rollbackTransaction, toVOList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentDeliveryController

public static ContentDeliveryController getContentDeliveryController()
Factory method


getContentVO

public ContentVO getContentVO(java.lang.Integer contentId,
                              org.exolab.castor.jdo.Database db)
                       throws SystemException,
                              java.lang.Exception
This method return a contentVO

Throws:
SystemException
java.lang.Exception

getContentVO

public ContentVO getContentVO(org.exolab.castor.jdo.Database db,
                              java.lang.Integer contentId,
                              DeliveryContext deliveryContext)
                       throws SystemException,
                              java.lang.Exception
This method return a contentVO

Throws:
SystemException
java.lang.Exception

getContentVersionVO

public ContentVersionVO getContentVersionVO(org.exolab.castor.jdo.Database db,
                                            java.lang.Integer siteNodeId,
                                            java.lang.Integer contentId,
                                            java.lang.Integer languageId,
                                            boolean useLanguageFallback,
                                            DeliveryContext deliveryContext,
                                            InfoGluePrincipal infoGluePrincipal)
                                     throws 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.

Throws:
SystemException
java.lang.Exception

getContentAttribute

public java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db,
                                            java.lang.Integer contentId,
                                            java.lang.Integer languageId,
                                            java.lang.String attributeName,
                                            java.lang.Integer siteNodeId,
                                            boolean useLanguageFallback,
                                            DeliveryContext deliveryContext,
                                            InfoGluePrincipal infogluePrincipal,
                                            boolean escapeHTML)
                                     throws 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.

Throws:
SystemException
java.lang.Exception

getContentAttribute

public java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db,
                                            java.lang.Integer contentId,
                                            java.lang.Integer languageId,
                                            java.lang.String attributeName,
                                            java.lang.Integer siteNodeId,
                                            boolean useLanguageFallback,
                                            DeliveryContext deliveryContext,
                                            InfoGluePrincipal infogluePrincipal,
                                            boolean escapeHTML,
                                            boolean isMetaInfoQuery)
                                     throws 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.

Throws:
SystemException
java.lang.Exception

getContentAttribute

public java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db,
                                            java.lang.Integer contentId,
                                            java.lang.Integer languageId,
                                            java.lang.String attributeName,
                                            java.lang.Integer siteNodeId,
                                            boolean useLanguageFallback,
                                            DeliveryContext deliveryContext,
                                            InfoGluePrincipal infogluePrincipal,
                                            boolean escapeHTML,
                                            java.util.Set usedContentVersionId)
                                     throws 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.

Throws:
SystemException
java.lang.Exception

getContentAttribute

public java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db,
                                            java.lang.Integer contentId,
                                            java.lang.Integer languageId,
                                            java.lang.String attributeName,
                                            java.lang.Integer siteNodeId,
                                            boolean useLanguageFallback,
                                            DeliveryContext deliveryContext,
                                            InfoGluePrincipal infogluePrincipal,
                                            boolean escapeHTML,
                                            boolean isMetaInfoQuery,
                                            java.util.Set usedContentVersionId)
                                     throws 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.

Throws:
SystemException
java.lang.Exception

getContentAttribute

public java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db,
                                            ContentVersionVO contentVersionVO,
                                            java.lang.String attributeName,
                                            boolean escapeHTML)
                                     throws 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.

Throws:
SystemException
java.lang.Exception

findContentVersionVOsForCategory

public java.util.List findContentVersionVOsForCategory(org.exolab.castor.jdo.Database db,
                                                       java.lang.Integer categoryId,
                                                       java.lang.String attributeName,
                                                       InfoGluePrincipal infoGluePrincipal,
                                                       java.lang.Integer siteNodeId,
                                                       java.lang.Integer languageId,
                                                       boolean useLanguageFallback,
                                                       DeliveryContext deliveryContext)
                                                throws SystemException,
                                                       java.lang.Exception
Find all ContentVersionVOs that are related to the provided Category. TODO: Right now this method depends on the ContentVersion having an owningContent TODO: This is potentially bad from a performance standpoint app-wide, so a workaround may TODO: be to look up each Content for the ContentVersions after we have done everything we TODO: can to wed down the list alot, so the overhead will not be too much.

Parameters:
categoryId - The Category to search on
attributeName - The attribute of the Category relationship
infoGluePrincipal - The user making the request
siteNodeId - The SiteNode that the request is coming from
languageId - The Language of the request
useLanguageFallback - True is the search is to use the fallback (default) language for the Repository
Returns:
A List of ContentVersionVOs matching the Category search, that are considered valid
Throws:
SystemException
java.lang.Exception

getAssignedCategoryVOsForContentVersionId

public java.util.List getAssignedCategoryVOsForContentVersionId(org.exolab.castor.jdo.Database db,
                                                                java.lang.Integer contentId,
                                                                java.lang.Integer languageId,
                                                                java.lang.String categoryKey,
                                                                java.lang.Integer siteNodeId,
                                                                boolean useLanguageFallback,
                                                                DeliveryContext deliveryContext,
                                                                InfoGluePrincipal infoGluePrincipal)
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

findContentCategoryVOsForContentVersionId

public java.util.List findContentCategoryVOsForContentVersionId(org.exolab.castor.jdo.Database db,
                                                                java.lang.Integer contentVersionId,
                                                                java.lang.String categoryKey,
                                                                DeliveryContext deliveryContext)
                                                         throws SystemException,
                                                                java.lang.Exception
Find all CategoryVOs that are related to the provided content version on a specific category key.

Parameters:
contentVersionId - The content version id to search on
categoryKey - The attribute of the Category relationship
infoGluePrincipal - The user making the request
siteNodeId - The SiteNode that the request is coming from
languageId - The Language of the request
useLanguageFallback - True is the search is to use the fallback (default) language for the Repository
Returns:
A List of ContentVersionVOs matching the Category search, that are considered valid
Throws:
SystemException
java.lang.Exception

findContentCategoriesForContentVersionId

public java.util.List findContentCategoriesForContentVersionId(org.exolab.castor.jdo.Database db,
                                                               java.lang.Integer contentVersionId,
                                                               java.lang.String categoryKey,
                                                               DeliveryContext deliveryContext)
                                                        throws SystemException,
                                                               java.lang.Exception
Find all CategoryVOs that are related to the provided content version on a specific category key.

Parameters:
contentVersionId - The content version id to search on
categoryKey - The attribute of the Category relationship
infoGluePrincipal - The user making the request
siteNodeId - The SiteNode that the request is coming from
languageId - The Language of the request
useLanguageFallback - True is the search is to use the fallback (default) language for the Repository
Returns:
A List of ContentVersionVOs matching the Category search, that are considered valid
Throws:
SystemException
java.lang.Exception

getAssetKeys

public java.util.Collection getAssetKeys(org.exolab.castor.jdo.Database db,
                                         java.lang.Integer contentId,
                                         java.lang.Integer languageId,
                                         java.lang.Integer siteNodeId,
                                         boolean useLanguageFallback,
                                         DeliveryContext deliveryContext,
                                         InfoGluePrincipal infoGluePrincipal)
                                  throws SystemException,
                                         java.lang.Exception
This method returns all the assetsKeys available in a contentVersion.

Throws:
SystemException
java.lang.Exception

getDigitalAssetId

public java.lang.Integer getDigitalAssetId(org.exolab.castor.jdo.Database db,
                                           java.lang.Integer contentId,
                                           java.lang.Integer languageId,
                                           java.lang.String assetKey,
                                           java.lang.Integer siteNodeId,
                                           boolean useLanguageFallback,
                                           DeliveryContext deliveryContext,
                                           InfoGluePrincipal infoGluePrincipal)
                                    throws SystemException,
                                           java.lang.Exception
This method returns the id of the digital asset. It selects the correct contentVersion depending on the language and then gets the digitalAsset associated.

Throws:
SystemException
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(org.exolab.castor.jdo.Database db,
                                    java.lang.Integer contentId,
                                    java.lang.Integer languageId,
                                    java.lang.Integer siteNodeId,
                                    boolean useLanguageFallback,
                                    DeliveryContext deliveryContext,
                                    InfoGluePrincipal infoGluePrincipal)
                             throws 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.

Throws:
SystemException
java.lang.Exception

getAssetUrl

public java.lang.String getAssetUrl(org.exolab.castor.jdo.Database db,
                                    java.lang.Integer contentId,
                                    java.lang.Integer languageId,
                                    java.lang.String assetKey,
                                    java.lang.Integer siteNodeId,
                                    boolean useLanguageFallback,
                                    DeliveryContext deliveryContext,
                                    InfoGluePrincipal infoGluePrincipal)
                             throws 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.

Throws:
SystemException
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(org.exolab.castor.jdo.Database db,
                                             java.lang.Integer contentId,
                                             java.lang.Integer languageId,
                                             java.lang.Integer siteNodeId,
                                             boolean useLanguageFallback,
                                             int width,
                                             int height,
                                             DeliveryContext deliveryContext,
                                             InfoGluePrincipal infoGluePrincipal)
                                      throws 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.

Throws:
SystemException
java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl(org.exolab.castor.jdo.Database db,
                                             java.lang.Integer contentId,
                                             java.lang.Integer languageId,
                                             java.lang.String assetKey,
                                             java.lang.Integer siteNodeId,
                                             boolean useLanguageFallback,
                                             int width,
                                             int height,
                                             DeliveryContext deliveryContext,
                                             InfoGluePrincipal infoGluePrincipal)
                                      throws 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.

Throws:
SystemException
java.lang.Exception

getAssetFileSize

public java.lang.Integer getAssetFileSize(org.exolab.castor.jdo.Database db,
                                          java.lang.Integer contentId,
                                          java.lang.Integer languageId,
                                          java.lang.Integer siteNodeId,
                                          boolean useLanguageFallback,
                                          DeliveryContext deliveryContext,
                                          InfoGluePrincipal infoGluePrincipal)
                                   throws SystemException,
                                          java.lang.Exception
Throws:
SystemException
java.lang.Exception

getAssetFileSize

public java.lang.Integer getAssetFileSize(org.exolab.castor.jdo.Database db,
                                          java.lang.Integer contentId,
                                          java.lang.Integer languageId,
                                          java.lang.String assetKey,
                                          java.lang.Integer siteNodeId,
                                          boolean useLanguageFallback,
                                          DeliveryContext deliveryContext,
                                          InfoGluePrincipal infoGluePrincipal)
                                   throws SystemException,
                                          java.lang.Exception
Throws:
SystemException
java.lang.Exception

getArchiveBaseUrl

public java.lang.String getArchiveBaseUrl(org.exolab.castor.jdo.Database db,
                                          java.lang.Integer contentId,
                                          java.lang.Integer languageId,
                                          java.lang.String assetKey,
                                          java.lang.Integer siteNodeId,
                                          boolean useLanguageFallback,
                                          DeliveryContext deliveryContext,
                                          InfoGluePrincipal infoGluePrincipal)
                                   throws 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.

Throws:
SystemException
java.lang.Exception

getArchiveEntries

public java.util.Vector getArchiveEntries(org.exolab.castor.jdo.Database db,
                                          java.lang.Integer contentId,
                                          java.lang.Integer languageId,
                                          java.lang.String assetKey,
                                          java.lang.Integer siteNodeId,
                                          boolean useLanguageFallback,
                                          DeliveryContext deliveryContext,
                                          InfoGluePrincipal infoGluePrincipal)
                                   throws SystemException,
                                          java.lang.Exception
Throws:
SystemException
java.lang.Exception

getAttributeValue

public java.lang.String getAttributeValue(org.exolab.castor.jdo.Database db,
                                          ContentVersionVO contentVersionVO,
                                          java.lang.String key,
                                          boolean escapeHTML)
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(org.exolab.castor.jdo.Database db,
                                       InfoGluePrincipal infoGluePrincipal,
                                       java.lang.Integer contentId,
                                       java.lang.Integer languageId,
                                       boolean useLanguageFallback,
                                       boolean includeFolders,
                                       DeliveryContext deliveryContext)
                                throws SystemException,
                                       java.lang.Exception
This method returns a sorted list of childContents to a content ordered by the given attribute in the direction given.

Throws:
SystemException
java.lang.Exception

getSortedChildContents

public java.util.List getSortedChildContents(InfoGluePrincipal infoGluePrincipal,
                                             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,
                                             boolean includeFolders,
                                             DeliveryContext deliveryContext)
                                      throws SystemException,
                                             java.lang.Exception
This method returns a sorted list of childContents to a content ordered by the given attribute in the direction given.

Throws:
SystemException
java.lang.Exception

getContentTypeDefinitionVO

public ContentTypeDefinitionVO getContentTypeDefinitionVO(org.exolab.castor.jdo.Database db,
                                                          java.lang.Integer contentId)
                                                   throws SystemException,
                                                          java.lang.Exception
This method returns the contentTypeDefinitionVO of the content sent in.

Throws:
SystemException
java.lang.Exception

isValidContent

public boolean isValidContent(org.exolab.castor.jdo.Database db,
                              java.lang.Integer contentId,
                              java.lang.Integer languageId,
                              boolean useLanguageFallback,
                              boolean includeFolders,
                              InfoGluePrincipal infoGluePrincipal,
                              DeliveryContext deliveryContext)
                       throws java.lang.Exception
Returns if a content is between dates and has a content version suitable for this delivery mode.

Throws:
java.lang.Exception

isValidContent

public boolean isValidContent(InfoGluePrincipal infoGluePrincipal,
                              Content content,
                              java.lang.Integer languageId,
                              boolean useLanguageFallBack,
                              boolean includeFolders,
                              org.exolab.castor.jdo.Database db,
                              DeliveryContext deliveryContext)
                       throws java.lang.Exception
Returns if a content is between dates and has a content version suitable for this delivery mode.

Throws:
java.lang.Exception

getProtectedContentId

public java.lang.Integer getProtectedContentId(org.exolab.castor.jdo.Database db,
                                               java.lang.Integer contentId)
                                        throws SystemException,
                                               java.lang.Exception
This method returns the id of the content that is protected if any. Looks recursive upwards.

Throws:
SystemException
java.lang.Exception

getProtectedContentId

public java.lang.Integer getProtectedContentId(org.exolab.castor.jdo.Database db,
                                               Content content)
This method returns the id of the content that is protected if any. Looks recursive upwards.


sortContents

public java.util.List sortContents(org.exolab.castor.jdo.Database db,
                                   java.util.Collection contents,
                                   java.lang.Integer languageId,
                                   java.lang.Integer siteNodeId,
                                   java.lang.String sortAttributeName,
                                   java.lang.String sortOrder,
                                   boolean useLanguageFallback,
                                   boolean includeFolders,
                                   DeliveryContext deliveryContext,
                                   InfoGluePrincipal infoGluePrincipal)
This method just sorts the list of qualifyers on sortOrder.



Copyright © 2005 InfoGlue.org All Rights Reserved.