Nuxeo Enterprise Platform 5.4

org.nuxeo.dam.webapp.contentbrowser
Class DocumentActions

java.lang.Object
  extended by org.nuxeo.dam.webapp.contentbrowser.DocumentActions
All Implemented Interfaces:
Serializable

@Name(value="documentActions")
@Scope(value=CONVERSATION)
@Install(precedence=10)
public class DocumentActions
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
DocumentActions()
           
 
Method Summary
 boolean canEditAsset()
           
 void download(org.nuxeo.ecm.platform.url.api.DocumentView docView)
           
 String downloadBlob()
           
 org.nuxeo.ecm.core.api.DocumentModel getCurrentSelection()
           
 String getCurrentSelectionLink()
           
 String getDisplayMode()
           
 String getDownloadSize()
           
 String getFullUserName()
           
 String getTitleCropped(org.nuxeo.ecm.core.api.DocumentModel document, int maxLength)
          Takes in a DocumentModel, gets the 'title' from it, and crops it to a maximum of maxLength characters.
 boolean isShowExifArea()
           
 boolean isShowIptcArea()
           
 void last(org.nuxeo.ecm.core.api.PagedDocumentsProvider provider)
           
 void next(org.nuxeo.ecm.core.api.PagedDocumentsProvider provider)
           
 void previous(org.nuxeo.ecm.core.api.PagedDocumentsProvider provider)
           
static void raiseEvents(org.nuxeo.ecm.core.api.DocumentModel document)
           
 void rewind(org.nuxeo.ecm.core.api.PagedDocumentsProvider provider)
           
 void setCurrentSelection(org.nuxeo.ecm.core.api.DocumentModel selection)
           
 void setCurrentTabAction(org.nuxeo.ecm.platform.actions.Action currentTabAction)
           
 void setDownloadSize(String downloadSize)
           
 void setShowExifArea(boolean showExifArea)
           
 void setShowIptcArea(boolean showIptcArea)
           
 void toggleDisplayMode()
           
 void toggleExifArea(ActionEvent event)
           
 void toggleIptcArea(ActionEvent event)
           
 void updateCurrentSelection()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentActions

public DocumentActions()
Method Detail

getCurrentSelection

public org.nuxeo.ecm.core.api.DocumentModel getCurrentSelection()

setCurrentSelection

public void setCurrentSelection(org.nuxeo.ecm.core.api.DocumentModel selection)

getCurrentSelectionLink

public String getCurrentSelectionLink()

setCurrentTabAction

public void setCurrentTabAction(org.nuxeo.ecm.platform.actions.Action currentTabAction)

getDisplayMode

public String getDisplayMode()

toggleDisplayMode

public void toggleDisplayMode()

updateCurrentSelection

public void updateCurrentSelection()
                            throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

getTitleCropped

public String getTitleCropped(org.nuxeo.ecm.core.api.DocumentModel document,
                              int maxLength)
Takes in a DocumentModel, gets the 'title' from it, and crops it to a maximum of maxLength characters. If the Title is more than maxLength characters it will return the Beginning of the title, followed by 3 ellipses (...) followed by the End of the title.

A minimum of 6 characters is needed before cropping takes effect. If you specify a maxLength of less than 5, it is ignored - in this case maxLength will be set to begin at 5.

Parameters:
document - to extract the title from
maxLength - the maximum length of the title before cropping will occur
Returns:
String with the cropped title restricted to maximum of maxLength characters

download

public void download(org.nuxeo.ecm.platform.url.api.DocumentView docView)
              throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

downloadBlob

public String downloadBlob()
                    throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

getDownloadSize

public String getDownloadSize()

setDownloadSize

public void setDownloadSize(String downloadSize)

rewind

public void rewind(org.nuxeo.ecm.core.api.PagedDocumentsProvider provider)

previous

public void previous(org.nuxeo.ecm.core.api.PagedDocumentsProvider provider)

next

public void next(org.nuxeo.ecm.core.api.PagedDocumentsProvider provider)

last

public void last(org.nuxeo.ecm.core.api.PagedDocumentsProvider provider)

raiseEvents

public static void raiseEvents(org.nuxeo.ecm.core.api.DocumentModel document)

getFullUserName

public String getFullUserName()

canEditAsset

public boolean canEditAsset()
                     throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

isShowExifArea

public boolean isShowExifArea()

setShowExifArea

public void setShowExifArea(boolean showExifArea)

toggleExifArea

public void toggleExifArea(ActionEvent event)

isShowIptcArea

public boolean isShowIptcArea()

setShowIptcArea

public void setShowIptcArea(boolean showIptcArea)

toggleIptcArea

public void toggleIptcArea(ActionEvent event)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.