|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
org.infoglue.deliver.controllers.kernel.impl.simple.ContentDeliveryController
public class ContentDeliveryController
| 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 |
|---|
public static ContentDeliveryController getContentDeliveryController()
public ContentVO getContentVO(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public ContentVO getContentVO(org.exolab.castor.jdo.Database db,
java.lang.Integer contentId,
DeliveryContext deliveryContext)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
public java.lang.String getContentAttribute(org.exolab.castor.jdo.Database db,
ContentVersionVO contentVersionVO,
java.lang.String attributeName,
boolean escapeHTML)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
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
categoryId - The Category to search onattributeName - The attribute of the Category relationshipinfoGluePrincipal - The user making the requestsiteNodeId - The SiteNode that the request is coming fromlanguageId - The Language of the requestuseLanguageFallback - True is the search is to use the fallback (default) language for the Repository
SystemException
java.lang.Exception
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
java.lang.Exception
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
contentVersionId - The content version id to search oncategoryKey - The attribute of the Category relationshipinfoGluePrincipal - The user making the requestsiteNodeId - The SiteNode that the request is coming fromlanguageId - The Language of the requestuseLanguageFallback - True is the search is to use the fallback (default) language for the Repository
SystemException
java.lang.Exception
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
contentVersionId - The content version id to search oncategoryKey - The attribute of the Category relationshipinfoGluePrincipal - The user making the requestsiteNodeId - The SiteNode that the request is coming fromlanguageId - The Language of the requestuseLanguageFallback - True is the search is to use the fallback (default) language for the Repository
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
public java.lang.String getAttributeValue(org.exolab.castor.jdo.Database db,
ContentVersionVO contentVersionVO,
java.lang.String key,
boolean escapeHTML)
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
SystemException
java.lang.Exception
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
SystemException
java.lang.Exception
public ContentTypeDefinitionVO getContentTypeDefinitionVO(org.exolab.castor.jdo.Database db,
java.lang.Integer contentId)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
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
java.lang.Exception
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
java.lang.Exception
public java.lang.Integer getProtectedContentId(org.exolab.castor.jdo.Database db,
java.lang.Integer contentId)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public java.lang.Integer getProtectedContentId(org.exolab.castor.jdo.Database db,
Content content)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||