@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 |
static String |
PREVIEWURL_DEFAULTXPATH |
static String |
PREVIEWURL_PREFIX |
protected WebActions |
webActions |
Constructor and Description |
---|
PreviewActionBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
documentHasPreview(DocumentModel document) |
String |
doSetFieldXPath() |
String |
getCurrentDocumentPreviewPopupURL() |
boolean |
getHasPreview() |
String |
getOldPreviewURL(DocumentModel doc,
String xpath) |
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 xpath) |
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
public static final String PREVIEWURL_PREFIX
public static final String PREVIEWURL_DEFAULTXPATH
@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 xpath)
public String getOldPreviewURL(DocumentModel doc, String xpath)
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 © 2019 Nuxeo. All rights reserved.