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

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.ViewDigitalAssetAction
              extended by org.infoglue.cms.applications.contenttool.actions.UpdateDigitalAssetAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, 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 class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
colorScheme
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
UpdateDigitalAssetAction()
           
 
Method Summary
 java.lang.String doExecute()
          Subclasses implement this
 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, 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
 

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
Description copied from class: WebworkAbstractAction
Subclasses implement this

Overrides:
doExecute in class ViewDigitalAssetAction
Throws:
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

Throws:
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


Copyright © 2005 InfoGlue.org All Rights Reserved.