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

java.lang.Object
  |
  +--org.infoglue.cms.applications.common.actions.WebworkAbstractAction
        |
        +--org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
              |
              +--org.infoglue.cms.applications.contenttool.actions.ViewDigitalAssetAction
                    |
                    +--org.infoglue.cms.applications.contenttool.actions.UpdateDigitalAssetAction
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, java.io.Serializable, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware

public class UpdateDigitalAssetAction
extends ViewDigitalAssetAction

This is the action-class for UpdateDigitalAssetVersion

Author:
Mattias Bogeblad
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
UpdateDigitalAssetAction()
           
 
Method Summary
 java.lang.String doExecute()
           
 java.lang.String getAssetThumbnailUrl()
           
 java.lang.String getCloseOnLoad()
           
 ContentTypeDefinitionVO getContentTypeDefinitionVO()
           
 java.lang.Integer getContentVersionId()
           
 java.lang.Integer getDigitalAssetId()
           
 java.lang.String getDigitalAssetKey()
           
 java.lang.String getDigitalAssetUrl()
          This method fetches the blob from the database and saves it on the disk.
 boolean getIsUpdated()
           
 java.lang.String getReasonKey()
           
 void setCloseOnLoad(java.lang.String closeOnLoad)
           
 void setContentTypeDefinitionId(java.lang.Integer contentTypeDefinitionId)
           
 void setContentVersionId(java.lang.Integer contentVersionId)
           
 void setDigitalAssetId(java.lang.Integer digitalAssetId)
           
 void setDigitalAssetKey(java.lang.String digitalAssetKey)
           
 
Methods inherited from class org.infoglue.cms.applications.contenttool.actions.ViewDigitalAssetAction
doUpdate, getAvailableLanguages, getDefinedAssetKeys, getEntity, getEntityId, getUploadedFilesCounter, setEntity, setEntityId
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, encode, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getLanguageCode, getLocale, getPrincipalPropertyHashValues, getPrincipalPropertyValue, getPrincipalPropertyValue, getSessionTimeout, getThis, getURLBase, getUserName, hasAccessTo, hasAccessTo, rollbackTransaction, setColorScheme
 
Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getInfoGluePrincipal, getLocalizedString, getRoot, getSession, setCommand, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateDigitalAssetAction

public UpdateDigitalAssetAction()
Method Detail

setDigitalAssetKey

public void setDigitalAssetKey(java.lang.String digitalAssetKey)

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Overrides:
doExecute in class ViewDigitalAssetAction
java.lang.Exception

getDigitalAssetUrl

public java.lang.String getDigitalAssetUrl()
                                    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

java.lang.Exception

getAssetThumbnailUrl

public java.lang.String getAssetThumbnailUrl()

getDigitalAssetId

public java.lang.Integer getDigitalAssetId()
Overrides:
getDigitalAssetId in class ViewDigitalAssetAction

setDigitalAssetId

public void setDigitalAssetId(java.lang.Integer digitalAssetId)
Overrides:
setDigitalAssetId in class ViewDigitalAssetAction

getDigitalAssetKey

public java.lang.String getDigitalAssetKey()
Overrides:
getDigitalAssetKey in class ViewDigitalAssetAction

getIsUpdated

public boolean getIsUpdated()

getContentVersionId

public java.lang.Integer getContentVersionId()
Overrides:
getContentVersionId in class ViewDigitalAssetAction

setContentVersionId

public void setContentVersionId(java.lang.Integer contentVersionId)
Overrides:
setContentVersionId in class ViewDigitalAssetAction

getReasonKey

public java.lang.String getReasonKey()

getCloseOnLoad

public java.lang.String getCloseOnLoad()

setCloseOnLoad

public void setCloseOnLoad(java.lang.String closeOnLoad)

setContentTypeDefinitionId

public void setContentTypeDefinitionId(java.lang.Integer contentTypeDefinitionId)

getContentTypeDefinitionVO

public ContentTypeDefinitionVO getContentTypeDefinitionVO()
Overrides:
getContentTypeDefinitionVO in class ViewDigitalAssetAction