@Name(value="renditionAction") @Scope(value=PAGE) public class RenditionActionBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
documentManager |
protected NavigationContext |
navigationContext |
static String |
RENDITION_REST_URL_FORMAT |
Constructor and Description |
---|
RenditionActionBean() |
Modifier and Type | Method and Description |
---|---|
List<Rendition> |
getCurrentDocumentRenditions() |
DocumentModel |
getRenditionSourceDocumentModel(DocumentModel doc) |
String |
getRenditionURL(DocumentModel doc,
String renditionName) |
String |
getRenditionURL(String renditionName) |
List<RenditionDefinition> |
getVisibleRenditionDefinitions() |
List<Rendition> |
getVisibleRenditions(String excludedKinds) |
boolean |
hasVisibleRenditions(String excludedKinds) |
public static final String RENDITION_REST_URL_FORMAT
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
public RenditionActionBean()
@Factory(value="currentDocumentRenditions", scope=EVENT) public List<Rendition> getCurrentDocumentRenditions() throws Exception
Exception
@Factory(value="currentDocumentVisibleRenditionDefinitions", scope=EVENT) public List<RenditionDefinition> getVisibleRenditionDefinitions() throws Exception
Exception
public List<Rendition> getVisibleRenditions(String excludedKinds)
public boolean hasVisibleRenditions(String excludedKinds)
public String getRenditionURL(String renditionName)
public String getRenditionURL(DocumentModel doc, String renditionName)
public DocumentModel getRenditionSourceDocumentModel(DocumentModel doc)
Copyright © 2016 Nuxeo SA. All rights reserved.