org.infoglue.cms.controllers.kernel.impl.simple
Class ContentVersionController

java.lang.Object
  extended by org.infoglue.cms.controllers.kernel.impl.simple.BaseController
      extended by org.infoglue.cms.controllers.kernel.impl.simple.ContentVersionController
Direct Known Subclasses:
ContentVersionControllerProxy

public class ContentVersionController
extends BaseController

Author:
Mattias Bogeblad

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

ContentVersionController

public ContentVersionController()
Method Detail

getContentVersionController

public static ContentVersionController getContentVersionController()
Factory method to get object


getContentIdForContentVersion

public java.lang.Integer getContentIdForContentVersion(java.lang.Integer contentVersionId)
                                                throws SystemException,
                                                       Bug
Throws:
SystemException
Bug

getContentIdForContentVersion

public java.lang.Integer getContentIdForContentVersion(java.lang.Integer contentVersionId,
                                                       org.exolab.castor.jdo.Database db)
                                                throws SystemException,
                                                       Bug
Throws:
SystemException
Bug

getContentVersionVOWithId

public ContentVersionVO getContentVersionVOWithId(java.lang.Integer contentVersionId)
                                           throws SystemException,
                                                  Bug
Throws:
SystemException
Bug

getContentVersionWithId

public ContentVersion getContentVersionWithId(java.lang.Integer contentVersionId,
                                              org.exolab.castor.jdo.Database db)
                                       throws SystemException,
                                              Bug
Throws:
SystemException
Bug

getReadOnlyContentVersionWithId

public ContentVersion getReadOnlyContentVersionWithId(java.lang.Integer contentVersionId,
                                                      org.exolab.castor.jdo.Database db)
                                               throws SystemException,
                                                      Bug
Throws:
SystemException
Bug

getContentVersionVOList

public java.util.List getContentVersionVOList()
                                       throws SystemException,
                                              Bug
Throws:
SystemException
Bug

getContentVersionVOWithParentRecursive

public java.util.List getContentVersionVOWithParentRecursive(java.lang.Integer contentId,
                                                             java.lang.Integer stateId,
                                                             boolean mustBeFirst)
                                                      throws ConstraintException,
                                                             SystemException
Recursive methods to get all contentVersions of a given state under the specified parent content.

Throws:
ConstraintException
SystemException

getContentVersionVOWithParentRecursiveAndRelated

public java.util.List getContentVersionVOWithParentRecursiveAndRelated(java.lang.Integer contentId,
                                                                       java.lang.Integer stateId,
                                                                       boolean mustBeFirst)
                                                                throws ConstraintException,
                                                                       SystemException
Recursive methods to get all contentVersions of a given state under the specified parent content.

Throws:
ConstraintException
SystemException

getContentVersionVOWithParent

public java.util.List getContentVersionVOWithParent(java.lang.Integer contentId)
                                             throws SystemException,
                                                    Bug
Throws:
SystemException
Bug

getContentVersionWithParent

public java.util.List getContentVersionWithParent(java.lang.Integer contentId,
                                                  org.exolab.castor.jdo.Database db)
                                           throws SystemException,
                                                  Bug,
                                                  java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

getLatestContentVersionVOWithParent

public java.util.List getLatestContentVersionVOWithParent(java.lang.Integer contentId,
                                                          java.lang.Integer stateId,
                                                          boolean mustBeFirst)
                                                   throws SystemException,
                                                          Bug
This method returns a list of active contentversions, and only one / language in the specified state

Parameters:
contentId - The content to look for versions in
stateId - The state of the versions
Returns:
A list of the latest versions matching the given state
Throws:
SystemException
Bug

getLatestContentVersionWithParent

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
This method returns a list of active contentversions, and only one / language in the specified state

Parameters:
contentId - The content to look for versions in
stateId - The state of the versions
Returns:
A list of the latest versions matching the given state
Throws:
SystemException
Bug
java.lang.Exception

getLatestActiveContentVersionIfInState

public java.util.List getLatestActiveContentVersionIfInState(Content content,
                                                             java.lang.Integer stateId,
                                                             org.exolab.castor.jdo.Database db)
                                                      throws SystemException,
                                                             java.lang.Exception
This method returns the latest contentVersion there is for the given content if it is active and is the latest made.

Throws:
SystemException
java.lang.Exception

getLatestActiveContentVersionVO

public ContentVersionVO getLatestActiveContentVersionVO(java.lang.Integer contentId,
                                                        java.lang.Integer languageId)
                                                 throws SystemException,
                                                        Bug
This method returns the latest active content version.

Throws:
SystemException
Bug

getLatestActiveContentVersionVO

public ContentVersionVO getLatestActiveContentVersionVO(java.lang.Integer contentId,
                                                        java.lang.Integer languageId,
                                                        org.exolab.castor.jdo.Database db)
                                                 throws SystemException,
                                                        Bug
This method returns the latest active content version.

Throws:
SystemException
Bug

getLatestActiveContentVersion

public ContentVersion getLatestActiveContentVersion(java.lang.Integer contentId,
                                                    java.lang.Integer languageId,
                                                    org.exolab.castor.jdo.Database db)
                                             throws SystemException,
                                                    Bug,
                                                    java.lang.Exception
This method returns the latest active content version.

Throws:
SystemException
Bug
java.lang.Exception

getLatestActiveContentVersionReadOnly

public ContentVersion getLatestActiveContentVersionReadOnly(java.lang.Integer contentId,
                                                            java.lang.Integer languageId,
                                                            org.exolab.castor.jdo.Database db)
                                                     throws SystemException,
                                                            Bug
This method returns the latest active content version.

Throws:
SystemException
Bug

getLatestContentVersionVO

public ContentVersionVO getLatestContentVersionVO(java.lang.Integer contentId,
                                                  java.lang.Integer languageId)
                                           throws SystemException,
                                                  Bug
Throws:
SystemException
Bug

getContentVersionWithId

public ContentVersion getContentVersionWithId(java.lang.Integer contentVersionId)
                                       throws SystemException,
                                              Bug
Throws:
SystemException
Bug

getLatestContentVersion

public ContentVersion getLatestContentVersion(java.lang.Integer contentId,
                                              java.lang.Integer languageId,
                                              org.exolab.castor.jdo.Database db)
                                       throws SystemException,
                                              Bug,
                                              java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

create

public ContentVersionVO create(java.lang.Integer contentId,
                               java.lang.Integer languageId,
                               ContentVersionVO contentVersionVO,
                               java.lang.Integer oldContentVersionId)
                        throws ConstraintException,
                               SystemException
This method created a new contentVersion in the database.

Throws:
ConstraintException
SystemException

create

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
This method created a new contentVersion in the database. It also updates the owning content so it recognises the change.

Throws:
ConstraintException
SystemException
java.lang.Exception

create

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
This method created a new contentVersion in the database. It also updates the owning content so it recognises the change.

Throws:
ConstraintException
SystemException
java.lang.Exception

delete

public void delete(ContentVersionVO contentVersionVO)
            throws ConstraintException,
                   SystemException
This method deletes an contentversion and notifies the owning content.

Throws:
ConstraintException
SystemException

delete

public void delete(ContentVersionVO contentVersionVO,
                   org.exolab.castor.jdo.Database db)
            throws ConstraintException,
                   SystemException,
                   java.lang.Exception
This method deletes an contentversion and notifies the owning content.

Throws:
ConstraintException
SystemException
java.lang.Exception

delete

public void delete(ContentVersion contentVersion,
                   org.exolab.castor.jdo.Database db)
            throws ConstraintException,
                   SystemException,
                   java.lang.Exception
This method deletes an contentversion and notifies the owning content.

Throws:
ConstraintException
SystemException
java.lang.Exception

delete

public void delete(ContentVersion contentVersion,
                   org.exolab.castor.jdo.Database db,
                   boolean forceDelete)
            throws ConstraintException,
                   SystemException,
                   java.lang.Exception
This method deletes an contentversion and notifies the owning content.

Throws:
ConstraintException
SystemException
java.lang.Exception

deleteVersionsForContent

public void deleteVersionsForContent(Content content,
                                     org.exolab.castor.jdo.Database db,
                                     InfoGluePrincipal principal)
                              throws ConstraintException,
                                     SystemException,
                                     Bug,
                                     java.lang.Exception
This method deletes all contentVersions for the content sent in. The contentVersion is related to digital assets but we don't remove the asset itself in case other versions or contents reference the same asset.

Throws:
ConstraintException
SystemException
Bug
java.lang.Exception

deleteVersionsForContent

public void deleteVersionsForContent(Content content,
                                     org.exolab.castor.jdo.Database db,
                                     boolean forceDelete,
                                     InfoGluePrincipal infogluePrincipal)
                              throws ConstraintException,
                                     SystemException,
                                     Bug,
                                     java.lang.Exception
This method deletes all contentVersions for the content sent in. The contentVersion is related to digital assets but we don't remove the asset itself in case other versions or contents reference the same asset.

Throws:
ConstraintException
SystemException
Bug
java.lang.Exception

deleteDigitalAsset

public void deleteDigitalAsset(java.lang.Integer contentId,
                               java.lang.Integer languageId,
                               java.lang.String assetKey)
                        throws ConstraintException,
                               SystemException
This method deletes a digitalAsset.

Throws:
ConstraintException
SystemException

update

public ContentVersionVO update(java.lang.Integer contentId,
                               java.lang.Integer languageId,
                               ContentVersionVO contentVersionVO)
                        throws ConstraintException,
                               SystemException
This method updates the contentversion.

Throws:
ConstraintException
SystemException

update

public ContentVersionVO update(java.lang.Integer contentId,
                               java.lang.Integer languageId,
                               ContentVersionVO contentVersionVO,
                               InfoGluePrincipal principal)
                        throws ConstraintException,
                               SystemException
Throws:
ConstraintException
SystemException

update

public ContentVersionVO update(java.lang.Integer contentVersionId,
                               ContentVersionVO contentVersionVO)
                        throws ConstraintException,
                               SystemException
This method updates the contentversion.

Throws:
ConstraintException
SystemException

update

public ContentVersionVO update(java.lang.Integer contentVersionId,
                               ContentVersionVO contentVersionVO,
                               InfoGluePrincipal principal)
                        throws ConstraintException,
                               SystemException
Throws:
ConstraintException
SystemException

getPublishedActiveContentVersionVOList

public java.util.List getPublishedActiveContentVersionVOList(java.lang.Integer contentId)
                                                      throws SystemException,
                                                             Bug,
                                                             java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

getPublishedActiveContentVersionVOList

public java.util.List getPublishedActiveContentVersionVOList(java.lang.Integer contentId,
                                                             org.exolab.castor.jdo.Database db)
                                                      throws SystemException,
                                                             Bug,
                                                             java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

getLatestPublishedContentVersion

public ContentVersion getLatestPublishedContentVersion(java.lang.Integer contentId)
                                                throws SystemException,
                                                       Bug,
                                                       java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

getLatestPublishedContentVersion

public ContentVersion getLatestPublishedContentVersion(java.lang.Integer contentId,
                                                       java.lang.Integer languageId)
                                                throws SystemException,
                                                       Bug,
                                                       java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

getLatestPublishedContentVersion

public ContentVersion getLatestPublishedContentVersion(java.lang.Integer contentId,
                                                       java.lang.Integer languageId,
                                                       org.exolab.castor.jdo.Database db)
                                                throws SystemException,
                                                       Bug,
                                                       java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

getPreviousContentVersionVO

public ContentVersionVO getPreviousContentVersionVO(java.lang.Integer contentId,
                                                    java.lang.Integer languageId,
                                                    java.lang.Integer contentVersionId)
                                             throws SystemException,
                                                    Bug
This method returns the version previous to the one sent in.

Throws:
SystemException
Bug

getPreviousActiveContentVersionVO

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
This method returns the version previous to the one sent in.

Throws:
SystemException
Bug
java.lang.Exception

deleteDigitalAssetRelation

public void deleteDigitalAssetRelation(java.lang.Integer contentVersionId,
                                       java.lang.Integer digitalAssetId)
                                throws SystemException,
                                       Bug
This method deletes the relation to a digital asset - not the asset itself.

Throws:
SystemException
Bug

deleteDigitalAssetRelation

public void deleteDigitalAssetRelation(java.lang.Integer contentVersionId,
                                       DigitalAsset digitalAsset,
                                       org.exolab.castor.jdo.Database db)
                                throws SystemException,
                                       Bug
This method deletes the relation to a digital asset - not the asset itself.

Throws:
SystemException
Bug

copyDigitalAssets

public void copyDigitalAssets(ContentVersion originalContentVersion,
                              ContentVersion newContentVersion,
                              org.exolab.castor.jdo.Database db)
                       throws ConstraintException,
                              SystemException,
                              java.lang.Exception
This method assigns the same digital assets the old content-version has. It's ofcourse important that noone deletes the digital asset itself for then it's lost to everyone.

Throws:
ConstraintException
SystemException
java.lang.Exception

getAttributeValue

public java.lang.String getAttributeValue(java.lang.Integer contentVersionId,
                                          java.lang.String attributeName,
                                          boolean escapeHTML)
                                   throws SystemException
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.

Throws:
SystemException

getAttributeValue

public java.lang.String getAttributeValue(ContentVersionVO contentVersionVO,
                                          java.lang.String attributeName,
                                          boolean escapeHTML)
Returns an attribute value from the ContentVersionVO

Parameters:
contentVersionVO - The version on which to find the value
attributeName - THe name of the attribute whose value is wanted
escapeHTML - A boolean indicating if the result should be escaped
Returns:
The String vlaue of the attribute, or blank if it doe snot exist.

updateAttributeValue

public void updateAttributeValue(java.lang.Integer contentVersionId,
                                 java.lang.String attributeName,
                                 java.lang.String attributeValue,
                                 InfoGluePrincipal infogluePrincipal)
                          throws SystemException,
                                 Bug
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.

Throws:
SystemException
Bug

getNewVO

public BaseEntityVO getNewVO()
This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.

Specified by:
getNewVO in class BaseController

getContentAndAffectedItemsRecursive

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
Recursive methods to get all contentVersions of a given state under the specified parent content.

Throws:
ConstraintException
SystemException

getHeavyContentVersions

public OptimizationBeanList getHeavyContentVersions(int numberOfVersionsToKeep,
                                                    int assetSizeLimit,
                                                    int assetNumberLimit)
                                             throws SystemException
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. This is for archiving purposes.

Parameters:
numberOfVersionsToKeep -
assetSizeLimit -
Returns:
Throws:
SystemException


Copyright © 2005 InfoGlue.org All Rights Reserved.