|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.cms.controllers.kernel.impl.simple.BaseController
org.infoglue.cms.controllers.kernel.impl.simple.ContentVersionController
public class ContentVersionController
| Constructor Summary | |
|---|---|
ContentVersionController()
|
|
| Method Summary | |
|---|---|
void |
copyDigitalAssets(ContentVersion originalContentVersion,
ContentVersion newContentVersion,
org.exolab.castor.jdo.Database db)
This method assigns the same digital assets the old content-version has. |
ContentVersion |
create(Content content,
Language language,
ContentVersionVO contentVersionVO,
java.lang.Integer oldContentVersionId,
org.exolab.castor.jdo.Database db)
This method created a new contentVersion in the database. |
ContentVersionVO |
create(java.lang.Integer contentId,
java.lang.Integer languageId,
ContentVersionVO contentVersionVO,
java.lang.Integer oldContentVersionId)
This method created a new contentVersion in the database. |
ContentVersion |
create(java.lang.Integer contentId,
java.lang.Integer languageId,
ContentVersionVO contentVersionVO,
java.lang.Integer oldContentVersionId,
org.exolab.castor.jdo.Database db)
This method created a new contentVersion in the database. |
void |
delete(ContentVersion contentVersion,
org.exolab.castor.jdo.Database db)
This method deletes an contentversion and notifies the owning content. |
void |
delete(ContentVersion contentVersion,
org.exolab.castor.jdo.Database db,
boolean forceDelete)
This method deletes an contentversion and notifies the owning content. |
void |
delete(ContentVersionVO contentVersionVO)
This method deletes an contentversion and notifies the owning content. |
void |
delete(ContentVersionVO contentVersionVO,
org.exolab.castor.jdo.Database db)
This method deletes an contentversion and notifies the owning content. |
void |
deleteDigitalAsset(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.String assetKey)
This method deletes a digitalAsset. |
void |
deleteDigitalAssetRelation(java.lang.Integer contentVersionId,
DigitalAsset digitalAsset,
org.exolab.castor.jdo.Database db)
This method deletes the relation to a digital asset - not the asset itself. |
void |
deleteDigitalAssetRelation(java.lang.Integer contentVersionId,
java.lang.Integer digitalAssetId)
This method deletes the relation to a digital asset - not the asset itself. |
void |
deleteVersionsForContent(Content content,
org.exolab.castor.jdo.Database db,
boolean forceDelete,
InfoGluePrincipal infogluePrincipal)
This method deletes all contentVersions for the content sent in. |
void |
deleteVersionsForContent(Content content,
org.exolab.castor.jdo.Database db,
InfoGluePrincipal principal)
This method deletes all contentVersions for the content sent in. |
java.lang.String |
getAttributeValue(ContentVersionVO contentVersionVO,
java.lang.String attributeName,
boolean escapeHTML)
Returns an attribute value from the ContentVersionVO |
java.lang.String |
getAttributeValue(java.lang.Integer contentVersionId,
java.lang.String attributeName,
boolean escapeHTML)
This method fetches a value from the xml that is the contentVersions Value. |
void |
getContentAndAffectedItemsRecursive(java.lang.Integer contentId,
java.lang.Integer stateId,
java.util.List siteNodeVersionVOList,
java.util.List contenteVersionVOList,
boolean mustBeFirst,
boolean includeMetaInfo)
Recursive methods to get all contentVersions of a given state under the specified parent content. |
java.lang.Integer |
getContentIdForContentVersion(java.lang.Integer contentVersionId)
|
java.lang.Integer |
getContentIdForContentVersion(java.lang.Integer contentVersionId,
org.exolab.castor.jdo.Database db)
|
static ContentVersionController |
getContentVersionController()
Factory method to get object |
ContentVersion |
getContentVersionWithId(java.lang.Integer contentVersionId)
|
ContentVersion |
getContentVersionWithId(java.lang.Integer contentVersionId,
org.exolab.castor.jdo.Database db)
|
java.util.List |
getContentVersionWithParent(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
|
java.util.List |
getContentVersionVOList()
|
ContentVersionVO |
getContentVersionVOWithId(java.lang.Integer contentVersionId)
|
java.util.List |
getContentVersionVOWithParent(java.lang.Integer contentId)
|
java.util.List |
getContentVersionVOWithParentRecursive(java.lang.Integer contentId,
java.lang.Integer stateId,
boolean mustBeFirst)
Recursive methods to get all contentVersions of a given state under the specified parent content. |
java.util.List |
getContentVersionVOWithParentRecursiveAndRelated(java.lang.Integer contentId,
java.lang.Integer stateId,
boolean mustBeFirst)
Recursive methods to get all contentVersions of a given state under the specified parent content. |
OptimizationBeanList |
getHeavyContentVersions(int numberOfVersionsToKeep,
int assetSizeLimit,
int assetNumberLimit)
This method are here to return all content versions that have somewhat heavy digitalAssets and are x number of versions behind the current active version. |
ContentVersion |
getLatestActiveContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
This method returns the latest active content version. |
java.util.List |
getLatestActiveContentVersionIfInState(Content content,
java.lang.Integer stateId,
org.exolab.castor.jdo.Database db)
This method returns the latest contentVersion there is for the given content if it is active and is the latest made. |
ContentVersion |
getLatestActiveContentVersionReadOnly(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
This method returns the latest active content version. |
ContentVersionVO |
getLatestActiveContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId)
This method returns the latest active content version. |
ContentVersionVO |
getLatestActiveContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
This method returns the latest active content version. |
ContentVersion |
getLatestContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
|
java.util.List |
getLatestContentVersionWithParent(java.lang.Integer contentId,
java.lang.Integer stateId,
org.exolab.castor.jdo.Database db,
boolean mustBeFirst)
This method returns a list of active contentversions, and only one / language in the specified state |
ContentVersionVO |
getLatestContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId)
|
java.util.List |
getLatestContentVersionVOWithParent(java.lang.Integer contentId,
java.lang.Integer stateId,
boolean mustBeFirst)
This method returns a list of active contentversions, and only one / language in the specified state |
ContentVersion |
getLatestPublishedContentVersion(java.lang.Integer contentId)
|
ContentVersion |
getLatestPublishedContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId)
|
ContentVersion |
getLatestPublishedContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
|
BaseEntityVO |
getNewVO()
This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling. |
ContentVersionVO |
getPreviousActiveContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.Integer contentVersionId,
org.exolab.castor.jdo.Database db)
This method returns the version previous to the one sent in. |
ContentVersionVO |
getPreviousContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.Integer contentVersionId)
This method returns the version previous to the one sent in. |
java.util.List |
getPublishedActiveContentVersionVOList(java.lang.Integer contentId)
|
java.util.List |
getPublishedActiveContentVersionVOList(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
|
ContentVersion |
getReadOnlyContentVersionWithId(java.lang.Integer contentVersionId,
org.exolab.castor.jdo.Database db)
|
ContentVersionVO |
update(java.lang.Integer contentVersionId,
ContentVersionVO contentVersionVO)
This method updates the contentversion. |
ContentVersionVO |
update(java.lang.Integer contentVersionId,
ContentVersionVO contentVersionVO,
InfoGluePrincipal principal)
|
ContentVersionVO |
update(java.lang.Integer contentId,
java.lang.Integer languageId,
ContentVersionVO contentVersionVO)
This method updates the contentversion. |
ContentVersionVO |
update(java.lang.Integer contentId,
java.lang.Integer languageId,
ContentVersionVO contentVersionVO,
InfoGluePrincipal principal)
|
void |
updateAttributeValue(java.lang.Integer contentVersionId,
java.lang.String attributeName,
java.lang.String attributeValue,
InfoGluePrincipal infogluePrincipal)
This method fetches a value from the xml that is the contentVersions Value. |
| Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController |
|---|
beginTransaction, beginTransaction, closeDatabase, commitTransaction, createEntity, createEntity, createQuery, deleteEntity, deleteEntity, deleteEntity, deleteEntity, executeQuery, executeQuery, executeQuery, executeQuery, getAllObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getObjectWithId, getObjectWithId, getObjectWithIdAsReadOnly, getVOWithId, getVOWithId, getVOWithId, getVOWithId, intercept, intercept, rollbackTransaction, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, updateEntity, validateEntity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentVersionController()
| Method Detail |
|---|
public static ContentVersionController getContentVersionController()
public java.lang.Integer getContentIdForContentVersion(java.lang.Integer contentVersionId)
throws SystemException,
Bug
SystemException
Bug
public java.lang.Integer getContentIdForContentVersion(java.lang.Integer contentVersionId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public ContentVersionVO getContentVersionVOWithId(java.lang.Integer contentVersionId)
throws SystemException,
Bug
SystemException
Bug
public ContentVersion getContentVersionWithId(java.lang.Integer contentVersionId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public ContentVersion getReadOnlyContentVersionWithId(java.lang.Integer contentVersionId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getContentVersionVOList()
throws SystemException,
Bug
SystemException
Bug
public java.util.List getContentVersionVOWithParentRecursive(java.lang.Integer contentId,
java.lang.Integer stateId,
boolean mustBeFirst)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public java.util.List getContentVersionVOWithParentRecursiveAndRelated(java.lang.Integer contentId,
java.lang.Integer stateId,
boolean mustBeFirst)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public java.util.List getContentVersionVOWithParent(java.lang.Integer contentId)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getContentVersionWithParent(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public java.util.List getLatestContentVersionVOWithParent(java.lang.Integer contentId,
java.lang.Integer stateId,
boolean mustBeFirst)
throws SystemException,
Bug
contentId - The content to look for versions instateId - The state of the versions
SystemException
Bug
public java.util.List getLatestContentVersionWithParent(java.lang.Integer contentId,
java.lang.Integer stateId,
org.exolab.castor.jdo.Database db,
boolean mustBeFirst)
throws SystemException,
Bug,
java.lang.Exception
contentId - The content to look for versions instateId - The state of the versions
SystemException
Bug
java.lang.Exception
public java.util.List getLatestActiveContentVersionIfInState(Content content,
java.lang.Integer stateId,
org.exolab.castor.jdo.Database db)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public ContentVersionVO getLatestActiveContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId)
throws SystemException,
Bug
SystemException
Bug
public ContentVersionVO getLatestActiveContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public ContentVersion getLatestActiveContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public ContentVersion getLatestActiveContentVersionReadOnly(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public ContentVersionVO getLatestContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId)
throws SystemException,
Bug
SystemException
Bug
public ContentVersion getContentVersionWithId(java.lang.Integer contentVersionId)
throws SystemException,
Bug
SystemException
Bug
public ContentVersion getLatestContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public ContentVersionVO create(java.lang.Integer contentId,
java.lang.Integer languageId,
ContentVersionVO contentVersionVO,
java.lang.Integer oldContentVersionId)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentVersion create(java.lang.Integer contentId,
java.lang.Integer languageId,
ContentVersionVO contentVersionVO,
java.lang.Integer oldContentVersionId,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public ContentVersion create(Content content,
Language language,
ContentVersionVO contentVersionVO,
java.lang.Integer oldContentVersionId,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public void delete(ContentVersionVO contentVersionVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public void delete(ContentVersionVO contentVersionVO,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public void delete(ContentVersion contentVersion,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public void delete(ContentVersion contentVersion,
org.exolab.castor.jdo.Database db,
boolean forceDelete)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public void deleteVersionsForContent(Content content,
org.exolab.castor.jdo.Database db,
InfoGluePrincipal principal)
throws ConstraintException,
SystemException,
Bug,
java.lang.Exception
ConstraintException
SystemException
Bug
java.lang.Exception
public void deleteVersionsForContent(Content content,
org.exolab.castor.jdo.Database db,
boolean forceDelete,
InfoGluePrincipal infogluePrincipal)
throws ConstraintException,
SystemException,
Bug,
java.lang.Exception
ConstraintException
SystemException
Bug
java.lang.Exception
public void deleteDigitalAsset(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.String assetKey)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentVersionVO update(java.lang.Integer contentId,
java.lang.Integer languageId,
ContentVersionVO contentVersionVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentVersionVO update(java.lang.Integer contentId,
java.lang.Integer languageId,
ContentVersionVO contentVersionVO,
InfoGluePrincipal principal)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentVersionVO update(java.lang.Integer contentVersionId,
ContentVersionVO contentVersionVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentVersionVO update(java.lang.Integer contentVersionId,
ContentVersionVO contentVersionVO,
InfoGluePrincipal principal)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public java.util.List getPublishedActiveContentVersionVOList(java.lang.Integer contentId)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public java.util.List getPublishedActiveContentVersionVOList(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public ContentVersion getLatestPublishedContentVersion(java.lang.Integer contentId)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public ContentVersion getLatestPublishedContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public ContentVersion getLatestPublishedContentVersion(java.lang.Integer contentId,
java.lang.Integer languageId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public ContentVersionVO getPreviousContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.Integer contentVersionId)
throws SystemException,
Bug
SystemException
Bug
public ContentVersionVO getPreviousActiveContentVersionVO(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.Integer contentVersionId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public void deleteDigitalAssetRelation(java.lang.Integer contentVersionId,
java.lang.Integer digitalAssetId)
throws SystemException,
Bug
SystemException
Bug
public void deleteDigitalAssetRelation(java.lang.Integer contentVersionId,
DigitalAsset digitalAsset,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public void copyDigitalAssets(ContentVersion originalContentVersion,
ContentVersion newContentVersion,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public java.lang.String getAttributeValue(java.lang.Integer contentVersionId,
java.lang.String attributeName,
boolean escapeHTML)
throws SystemException
SystemException
public java.lang.String getAttributeValue(ContentVersionVO contentVersionVO,
java.lang.String attributeName,
boolean escapeHTML)
contentVersionVO - The version on which to find the valueattributeName - THe name of the attribute whose value is wantedescapeHTML - A boolean indicating if the result should be escaped
public void updateAttributeValue(java.lang.Integer contentVersionId,
java.lang.String attributeName,
java.lang.String attributeValue,
InfoGluePrincipal infogluePrincipal)
throws SystemException,
Bug
SystemException
Bugpublic BaseEntityVO getNewVO()
getNewVO in class BaseController
public void getContentAndAffectedItemsRecursive(java.lang.Integer contentId,
java.lang.Integer stateId,
java.util.List siteNodeVersionVOList,
java.util.List contenteVersionVOList,
boolean mustBeFirst,
boolean includeMetaInfo)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public OptimizationBeanList getHeavyContentVersions(int numberOfVersionsToKeep,
int assetSizeLimit,
int assetNumberLimit)
throws SystemException
numberOfVersionsToKeep - assetSizeLimit -
SystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||