@Name(value="renditionAction") @Scope(value=PAGE) public class RenditionActionBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected NavigationContext |
navigationContext |
static String |
RENDITION_REST_URL_FORMAT |
Constructor and Description |
---|
RenditionActionBean() |
Modifier and Type | Method and Description |
---|---|
List<Rendition> |
getCurrentDocumentRenditions() |
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
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)
Copyright © 2016 Nuxeo SA. All rights reserved.