org.nuxeo.dam.webapp.contentbrowser
Class DocumentActions
java.lang.Object
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
DocumentActions
public DocumentActions()
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 frommaxLength
- 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)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.