@Name(value="previewActions") @Scope(value=CONVERSATION) public class PreviewActionBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
documentManager |
static String |
PREVIEW_POPUP_VIEW |
protected WebActions |
webActions |
Constructor and Description |
---|
PreviewActionBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
documentHasPreview(DocumentModel document) |
String |
doSetFieldXPath() |
String |
getCurrentDocumentPreviewPopupURL() |
boolean |
getHasPreview() |
String |
getPreviewPopupURL(DocumentModel doc) |
String |
getPreviewPopupURL(DocumentModel doc,
boolean newConversation) |
String |
getPreviewPopupURL(String docId) |
String |
getPreviewURL() |
String |
getPreviewURL(DocumentModel doc) |
String |
getPreviewURL(DocumentModel doc,
String field) |
String |
getPreviewWithBlobPostProcessingURL() |
String |
getPreviewWithBlobPostProcessingURL(DocumentModel doc) |
boolean |
hasBlobPreview(DocumentModel doc,
String field) |
protected String |
protectField(String field) |
void |
resetFields() |
public static final String PREVIEW_POPUP_VIEW
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true, required=false) protected WebActions webActions
public PreviewActionBean()
public boolean getHasPreview()
public boolean documentHasPreview(DocumentModel document)
public String getPreviewURL()
public String getPreviewURL(DocumentModel doc)
public String getPreviewURL(DocumentModel doc, String field)
public String getPreviewWithBlobPostProcessingURL()
public String getPreviewWithBlobPostProcessingURL(DocumentModel doc)
public String getCurrentDocumentPreviewPopupURL()
public String getPreviewPopupURL(DocumentModel doc)
public String getPreviewPopupURL(DocumentModel doc, boolean newConversation)
@WebRemote public String getPreviewPopupURL(String docId)
public boolean hasBlobPreview(DocumentModel doc, String field)
@Observer(value={"documentSelectionChanged","documentChanged"}, create=false) @BypassInterceptors public void resetFields()
public String doSetFieldXPath()
protected String protectField(String field)
Copyright © 2018 Nuxeo. All rights reserved.