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

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.ViewAssetListAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware

public class ViewAssetListAction
extends InfoGlueAbstractAction

See Also:
Serialized Form

Nested Class Summary
 class ViewAssetListAction.DigitalAssetCollection
           
 class ViewAssetListAction.FilterVO
           
 
Field Summary
 java.util.List attributes
           
 java.util.List availableLanguages
           
 ContentTypeDefinitionVO contentTypeDefinitionVO
           
 
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
ViewAssetListAction()
           
ViewAssetListAction(ContentVO contentVO)
           
 
Method Summary
 java.lang.String doBrowser()
           
 java.lang.String doExecute()
          Subclasses implement this
 java.lang.String getAssetKey()
           
 java.util.List getAvailableLanguages()
           
 java.lang.Integer getContentId()
           
 java.lang.String getContentPath(java.lang.Integer contentId)
           
 java.lang.Integer getContentTypeDefinitionId()
           
 java.lang.String getContentTypeDefinitionName()
           
 ContentVO getContentVO()
           
 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.
 java.lang.String getFilter()
           
 java.util.List getFilters()
           
 java.util.List getInheritedDigitalAssets()
          Returns a list of digital assets available for this content and all the child contents.
 java.lang.Integer getLanguageId()
           
protected  ContentVersionVO getLatestContentVersionVO(java.lang.Integer contentId)
           
 MathHelper getMathHelper()
           
 java.lang.String getName()
           
 java.util.List getRepositories()
           
 java.lang.Integer getRepositoryId()
           
 boolean getTreatAsLink()
           
protected  void initialize(java.lang.Integer contentId, java.lang.Integer languageId)
           
 boolean isShowLeafs()
           
 void setAssetKey(java.lang.String assetKey)
           
 void setContentId(java.lang.Integer contentId)
           
 void setFilter(java.lang.String filter)
           
 void setLanguageId(java.lang.Integer languageId)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 void setShowLeafs(boolean showLeafs)
           
 void setTreatAsLink(boolean treatAsLink)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, commitTransaction, encode, getAllowPublicationEventFilter, getAnonymousPrincipal, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getDisableCustomIcons, getDisableImageEditor, getEnableDateTimeDirectEditing, getInfoGluePrincipal, getLanguageCode, getLocale, 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

attributes

public java.util.List attributes
Constructor Detail

ViewAssetListAction

public ViewAssetListAction()

ViewAssetListAction

public ViewAssetListAction(ContentVO contentVO)
Method Detail

initialize

protected void initialize(java.lang.Integer contentId,
                          java.lang.Integer languageId)
                   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

doBrowser

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

getContentPath

public java.lang.String getContentPath(java.lang.Integer contentId)
                                throws ConstraintException,
                                       SystemException,
                                       Bug,
                                       java.lang.Exception
Throws:
ConstraintException
SystemException
Bug
java.lang.Exception

getMathHelper

public MathHelper getMathHelper()

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()

getName

public java.lang.String getName()

getRepositoryId

public java.lang.Integer getRepositoryId()

getAvailableLanguages

public java.util.List getAvailableLanguages()

getInheritedDigitalAssets

public java.util.List getInheritedDigitalAssets()
Returns a list of digital assets available for this content and all the child contents.


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

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)

getTreatAsLink

public boolean getTreatAsLink()

setTreatAsLink

public void setTreatAsLink(boolean treatAsLink)

getContentVO

public ContentVO getContentVO()

getLatestContentVersionVO

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

isShowLeafs

public boolean isShowLeafs()

setShowLeafs

public void setShowLeafs(boolean showLeafs)

getFilters

public java.util.List getFilters()

getFilter

public java.lang.String getFilter()

setFilter

public void setFilter(java.lang.String filter)


Copyright © 2005 InfoGlue.org All Rights Reserved.