org.infoglue.cms.applications.contenttool.actions
Class ViewContentVersionAction

java.lang.Object
  extended by org.infoglue.cms.applications.common.actions.WebworkAbstractAction
      extended by org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
          extended by org.infoglue.cms.applications.contenttool.actions.ViewContentVersionAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware
Direct Known Subclasses:
UpdateContentVersionAction, UpdateContentVersionAttributeAction, ViewContentVersionAttributeAction

public class ViewContentVersionAction
extends InfoGlueAbstractAction

See Also:
Serialized Form

Field Summary
 java.util.List attributes
           
 java.util.List availableLanguages
           
 ContentTypeDefinitionVO contentTypeDefinitionVO
           
protected  ContentVersionVO contentVersionVO
           
 
Fields inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
colorScheme
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewContentVersionAction()
           
ViewContentVersionAction(ContentVO contentVO, ContentVersionVO contentVersionVO)
           
 
Method Summary
 java.lang.String doBackground()
           
 java.lang.String doDeleteDigitalAsset()
           
 java.lang.String doDeleteDigitalAssetStandalone()
           
 java.lang.String doExecute()
          Subclasses implement this
 java.lang.String doPreview()
           
 java.lang.String doStandalone()
           
 java.lang.String doViewAssets()
           
 java.lang.String doViewAssetsDialog()
           
 java.lang.String doViewAssetsDialogForFCKEditor()
           
 java.lang.String doViewAssetsForFCKEditor()
           
 java.util.List getAllowedClasses()
          This method returns a infoglue-specific PropertySet
 java.lang.String getAssetKey()
           
 java.lang.String getAttributeName()
           
 java.lang.String getAttributeValue(java.lang.String key)
          This method fetches a value from the xml that is the contentVersions Value.
 java.util.List getAvailableCategories(java.lang.Integer categoryId)
          Returns the Category tree for the given Category id.
 java.util.List getAvailableLanguages()
           
 java.lang.String getCloseOnLoad()
           
 java.util.List getComponentPropertyDefinitions(java.lang.String componentPropertiesXML)
           
 boolean getConcurrentModification()
           
 java.lang.Integer getContentId()
           
 java.util.List getContentPath()
           
 java.util.List getContentRelationQualifyers(java.lang.String qualifyerXML)
           
 java.util.List getContentTypeAttributes()
          This method returns the attributes in the content type definition for generation.
 java.lang.Integer getContentTypeDefinitionId()
           
 java.lang.String getContentTypeDefinitionName()
           
 ContentTypeDefinitionVO getContentTypeDefinitionVO()
           
 java.lang.Integer getContentVersionId()
           
 ContentVersionVO getContentVersionVO()
           
 ContentVO getContentVO()
           
 java.util.List getCSSList()
          This method returns a infoglue-specific PropertySet
 java.util.List getCSSRules(java.lang.String url)
          This method returns a list of css-classes available to the WYSIWYG.
 java.lang.Integer getCurrentEditorId()
           
 java.util.List getDefinedCategoryKeys()
          Return the listing of Category attributes for this type of Content
 java.lang.String getDeliveryBaseUrl()
          This method returns the base-url to the delivery-engine.
 java.util.List getDigitalAssets()
          Returns a list of digital assets available for this content version.
 java.lang.String getDigitalAssetThumbnailUrl(java.lang.Integer digitalAssetId)
          This method fetches the blob from the database and saves it on the disk.
 java.lang.String getDigitalAssetThumbnailUrl(java.lang.Integer contentId, java.lang.Integer languageId)
          This method fetches the blob from the database and saves it on the disk.
 java.lang.String getDigitalAssetUrl(java.lang.Integer digitalAssetId)
          This method fetches the blob from the database and saves it on the disk.
 java.lang.String getDigitalAssetUrl(java.lang.Integer contentId, java.lang.Integer languageId)
          This method fetches the blob from the database and saves it on the disk.
 boolean getEnableCSSPlugin()
          This method returns a infoglue-specific PropertySet
 EventVO getEvent(java.lang.Integer contentVersionId)
           
 java.util.List getInheritedDigitalAssets()
          Returns a list of digital assets available for this content version.
 java.lang.Boolean getIsActive()
           
 java.lang.Integer getLanguageId()
           
 ContentVersionVO getLatestContentVersionVO(java.lang.Integer contentId, java.lang.Integer languageId)
           
 ContentVersionVO getMasterContentVersionVO(java.lang.Integer contentId, java.lang.Integer repositoryId)
           
 java.lang.String getName()
           
 java.lang.Integer getNewContentId()
           
 java.lang.Integer getOldContentId()
           
 long getOldModifiedDateTime()
           
 java.lang.String getPublishOnLoad()
           
 java.lang.String getQualifyerPath(java.lang.String entity, java.lang.String entityId)
           
 java.util.List getRelatedCategories(java.lang.String attribute)
          Returns all current Category relationships for th specified attrbiute name
 java.util.List getRepositories()
           
 java.lang.Integer getRepositoryId()
           
 java.lang.Integer getSiteNodeId()
           
 java.util.List getSiteNodeRelationQualifyers(java.lang.String qualifyerXML)
           
 java.lang.Integer getStateId()
           
 java.lang.String getTextAreaId()
           
 boolean getTreatAsLink()
           
 java.lang.String getUnescapedAttributeValue(java.lang.String key)
          This method fetches a value from the xml that is the contentVersions Value.
 java.lang.String getVersionComment()
           
 java.util.Map getWYSIWYGProperties()
          This method gets the WYSIWYG Properties
protected  void initialize(java.lang.Integer contentVersionId, java.lang.Integer contentId, java.lang.Integer languageId)
           
protected  void initialize(java.lang.Integer contentVersionId, java.lang.Integer contentId, java.lang.Integer languageId, boolean fallBackToMasterLanguage)
           
 void setAssetKey(java.lang.String assetKey)
           
 void setAttributeName(java.lang.String attributeName)
           
 void setCloseOnLoad(java.lang.String closeOnLoad)
           
 void setConcurrentModification(boolean concurrentModification)
           
 void setContentId(java.lang.Integer contentId)
           
 void setContentVersionId(java.lang.Integer contentVersionId)
           
 void setContentVersionVO(ContentVersionVO contentVersionVO)
           
 void setCurrentEditorId(java.lang.Integer integer)
           
 void setDigitalAssetId(java.lang.Integer digitalAssetId)
           
 void setForceWorkingChange(boolean forceWorkingChange)
           
 void setLanguageId(java.lang.Integer languageId)
           
 void setNewContentId(java.lang.Integer newContentId)
           
 void setOldContentId(java.lang.Integer oldContentId)
           
 void setOldModifiedDateTime(long oldModifiedDateTime)
           
 void setPublishOnLoad(java.lang.String publishOnLoad)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 void setSiteNodeId(java.lang.Integer siteNodeId)
           
 void setStateId(java.lang.Integer stateId)
           
 void setTextAreaId(java.lang.String textAreaId)
           
 void setTreatAsLink(boolean treatAsLink)
           
 void setVersionComment(java.lang.String versionComment)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, commitTransaction, encode, getAnonymousPrincipal, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getLanguageCode, getLocale, getLogger, getLogoutURL, getOriginalFullURL, getParameter, getPrincipalPropertyHashValues, getPrincipalPropertyValue, getPrincipalPropertyValue, getSessionTimeout, getSingleParameter, getThis, getToolId, getToolLocales, getURLBase, getUserName, hasAccessTo, hasAccessTo, rollbackTransaction, setColorScheme, setLanguageCode, setToolId
 
Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getHttpSession, getInfoGluePrincipal, getLocalizedString, getRequest, getResponse, getRoot, getSession, setCommand, setError, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentTypeDefinitionVO

public ContentTypeDefinitionVO contentTypeDefinitionVO

availableLanguages

public java.util.List availableLanguages

contentVersionVO

protected ContentVersionVO contentVersionVO

attributes

public java.util.List attributes
Constructor Detail

ViewContentVersionAction

public ViewContentVersionAction()

ViewContentVersionAction

public ViewContentVersionAction(ContentVO contentVO,
                                ContentVersionVO contentVersionVO)
Method Detail

getQualifyerPath

public java.lang.String getQualifyerPath(java.lang.String entity,
                                         java.lang.String entityId)

getContentRelationQualifyers

public java.util.List getContentRelationQualifyers(java.lang.String qualifyerXML)

getSiteNodeRelationQualifyers

public java.util.List getSiteNodeRelationQualifyers(java.lang.String qualifyerXML)

getComponentPropertyDefinitions

public java.util.List getComponentPropertyDefinitions(java.lang.String componentPropertiesXML)

initialize

protected void initialize(java.lang.Integer contentVersionId,
                          java.lang.Integer contentId,
                          java.lang.Integer languageId)
                   throws java.lang.Exception
Throws:
java.lang.Exception

initialize

protected void initialize(java.lang.Integer contentVersionId,
                          java.lang.Integer contentId,
                          java.lang.Integer languageId,
                          boolean fallBackToMasterLanguage)
                   throws java.lang.Exception
Throws:
java.lang.Exception

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Description copied from class: WebworkAbstractAction
Subclasses implement this

Specified by:
doExecute in class WebworkAbstractAction
Throws:
java.lang.Exception

doStandalone

public java.lang.String doStandalone()
                              throws java.lang.Exception
Throws:
java.lang.Exception

doBackground

public java.lang.String doBackground()
                              throws java.lang.Exception
Throws:
java.lang.Exception

doViewAssetsDialog

public java.lang.String doViewAssetsDialog()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

doViewAssetsDialogForFCKEditor

public java.lang.String doViewAssetsDialogForFCKEditor()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

doViewAssets

public java.lang.String doViewAssets()
                              throws java.lang.Exception
Throws:
java.lang.Exception

doViewAssetsForFCKEditor

public java.lang.String doViewAssetsForFCKEditor()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

doPreview

public java.lang.String doPreview()
                           throws java.lang.Exception
Throws:
java.lang.Exception

doDeleteDigitalAsset

public java.lang.String doDeleteDigitalAsset()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

doDeleteDigitalAssetStandalone

public java.lang.String doDeleteDigitalAssetStandalone()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

getEvent

public EventVO getEvent(java.lang.Integer contentVersionId)

getContentPath

public java.util.List getContentPath()

getContentVersionId

public java.lang.Integer getContentVersionId()

setContentVersionId

public void setContentVersionId(java.lang.Integer contentVersionId)

getContentId

public java.lang.Integer getContentId()

setContentId

public void setContentId(java.lang.Integer contentId)

getContentTypeDefinitionId

public java.lang.Integer getContentTypeDefinitionId()

getContentTypeDefinitionName

public java.lang.String getContentTypeDefinitionName()

setLanguageId

public void setLanguageId(java.lang.Integer languageId)

getLanguageId

public java.lang.Integer getLanguageId()

setStateId

public void setStateId(java.lang.Integer stateId)

setVersionComment

public void setVersionComment(java.lang.String versionComment)

setDigitalAssetId

public void setDigitalAssetId(java.lang.Integer digitalAssetId)

getVersionComment

public java.lang.String getVersionComment()

getStateId

public java.lang.Integer getStateId()

getIsActive

public java.lang.Boolean getIsActive()

getName

public java.lang.String getName()

getRepositoryId

public java.lang.Integer getRepositoryId()

getAvailableLanguages

public java.util.List getAvailableLanguages()

getDigitalAssets

public java.util.List getDigitalAssets()
Returns a list of digital assets available for this content version.


getInheritedDigitalAssets

public java.util.List getInheritedDigitalAssets()
Returns a list of digital assets available for this content version.


getDigitalAssetUrl

public java.lang.String getDigitalAssetUrl(java.lang.Integer digitalAssetId)
                                    throws java.lang.Exception
This method fetches the blob from the database and saves it on the disk. Then it returnes a url for it

Throws:
java.lang.Exception

getDigitalAssetThumbnailUrl

public java.lang.String getDigitalAssetThumbnailUrl(java.lang.Integer digitalAssetId)
                                             throws java.lang.Exception
This method fetches the blob from the database and saves it on the disk. Then it returnes a url for it

Throws:
java.lang.Exception

getDigitalAssetUrl

public java.lang.String getDigitalAssetUrl(java.lang.Integer contentId,
                                           java.lang.Integer languageId)
                                    throws java.lang.Exception
This method fetches the blob from the database and saves it on the disk. Then it returnes a url for it

Throws:
java.lang.Exception

getDigitalAssetThumbnailUrl

public java.lang.String getDigitalAssetThumbnailUrl(java.lang.Integer contentId,
                                                    java.lang.Integer languageId)
                                             throws java.lang.Exception
This method fetches the blob from the database and saves it on the disk. Then it returnes a url for it

Throws:
java.lang.Exception

getAttributeValue

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


getUnescapedAttributeValue

public java.lang.String getUnescapedAttributeValue(java.lang.String key)
This method fetches a value from the xml that is the contentVersions Value. If the contentVersioVO is null the contentVersion has not been created yet and no values are present.


getContentTypeAttributes

public java.util.List getContentTypeAttributes()
This method returns the attributes in the content type definition for generation.


getContentVersionVO

public ContentVersionVO getContentVersionVO()

getWYSIWYGProperties

public java.util.Map getWYSIWYGProperties()
                                   throws java.lang.Exception
This method gets the WYSIWYG Properties

Throws:
java.lang.Exception

getCSSRules

public java.util.List getCSSRules(java.lang.String url)
This method returns a list of css-classes available to the WYSIWYG.


getEnableCSSPlugin

public boolean getEnableCSSPlugin()
                           throws java.lang.Exception
This method returns a infoglue-specific PropertySet

Throws:
java.lang.Exception

getCSSList

public java.util.List getCSSList()
                          throws java.lang.Exception
This method returns a infoglue-specific PropertySet

Throws:
java.lang.Exception

getAllowedClasses

public java.util.List getAllowedClasses()
                                 throws java.lang.Exception
This method returns a infoglue-specific PropertySet

Throws:
java.lang.Exception

getDeliveryBaseUrl

public java.lang.String getDeliveryBaseUrl()
This method returns the base-url to the delivery-engine.


getDefinedCategoryKeys

public java.util.List getDefinedCategoryKeys()
Return the listing of Category attributes for this type of Content


getAvailableCategories

public java.util.List getAvailableCategories(java.lang.Integer categoryId)
Returns the Category tree for the given Category id.

Parameters:
categoryId - The base Category
Returns:
A list of all Children (and their children, etc)

getRelatedCategories

public java.util.List getRelatedCategories(java.lang.String attribute)
Returns all current Category relationships for th specified attrbiute name

Parameters:
attribute -
Returns:

getMasterContentVersionVO

public ContentVersionVO getMasterContentVersionVO(java.lang.Integer contentId,
                                                  java.lang.Integer repositoryId)
                                           throws SystemException,
                                                  java.lang.Exception
Throws:
SystemException
java.lang.Exception

getLatestContentVersionVO

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

getCurrentEditorId

public java.lang.Integer getCurrentEditorId()

setCurrentEditorId

public void setCurrentEditorId(java.lang.Integer integer)

getAttributeName

public java.lang.String getAttributeName()

setAttributeName

public void setAttributeName(java.lang.String attributeName)

getTextAreaId

public java.lang.String getTextAreaId()

setTextAreaId

public void setTextAreaId(java.lang.String textAreaId)

getSiteNodeId

public java.lang.Integer getSiteNodeId()

setSiteNodeId

public void setSiteNodeId(java.lang.Integer siteNodeId)

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)

getRepositories

public java.util.List getRepositories()

getAssetKey

public java.lang.String getAssetKey()

setAssetKey

public void setAssetKey(java.lang.String assetKey)

getOldContentId

public java.lang.Integer getOldContentId()

setOldContentId

public void setOldContentId(java.lang.Integer oldContentId)

getTreatAsLink

public boolean getTreatAsLink()

setTreatAsLink

public void setTreatAsLink(boolean treatAsLink)

getContentVO

public ContentVO getContentVO()

getCloseOnLoad

public java.lang.String getCloseOnLoad()

setCloseOnLoad

public void setCloseOnLoad(java.lang.String closeOnLoad)

getNewContentId

public java.lang.Integer getNewContentId()

setNewContentId

public void setNewContentId(java.lang.Integer newContentId)

setContentVersionVO

public void setContentVersionVO(ContentVersionVO contentVersionVO)

getContentTypeDefinitionVO

public ContentTypeDefinitionVO getContentTypeDefinitionVO()

getConcurrentModification

public boolean getConcurrentModification()

setConcurrentModification

public void setConcurrentModification(boolean concurrentModification)

getOldModifiedDateTime

public long getOldModifiedDateTime()

setOldModifiedDateTime

public void setOldModifiedDateTime(long oldModifiedDateTime)

setForceWorkingChange

public void setForceWorkingChange(boolean forceWorkingChange)

getPublishOnLoad

public java.lang.String getPublishOnLoad()

setPublishOnLoad

public void setPublishOnLoad(java.lang.String publishOnLoad)


Copyright © 2005 InfoGlue.org All Rights Reserved.