@Name(value="damActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class DamActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DAM_ID_PATTERN |
static String |
MAIN_TABS_DAM |
static String |
MAIN_TABS_DOCUMENT_MANAGEMENT |
Constructor and Description |
---|
DamActions() |
Modifier and Type | Method and Description |
---|---|
AssetLibrary |
getAssetLibrary() |
String |
getAssetPermanentLinkUrl(boolean newConversation)
Returns the permanent link of an asset.
|
boolean |
getCanCreateInAssetLibrary() |
String |
getDamMainTab() |
String |
getDownloadURL()
Returns the download URL for the current document.
|
String |
getSelectedDocumentId() |
boolean |
isOnAssetsView() |
boolean |
isOnDamView()
Returns true if the user is viewing DAM.
|
void |
selectDocument(DocumentModel doc) |
void |
setDamMainTab(String tabs) |
void |
setSelectedDocumentId(String selectedDocumentId) |
String |
updateCurrentDocument() |
String |
viewInDAM()
Deprecated.
since 5.9.5. Use
#getAssetPermanentLinkUrl . |
String |
viewInDM() |
public static final String MAIN_TABS_DAM
public static final String MAIN_TABS_DOCUMENT_MANAGEMENT
public static final String DAM_ID_PATTERN
public String getSelectedDocumentId()
public void setSelectedDocumentId(String selectedDocumentId) throws ClientException
ClientException
public void selectDocument(DocumentModel doc) throws ClientException
ClientException
public String getDamMainTab()
public void setDamMainTab(String tabs)
public String viewInDM() throws ClientException
ClientException
public String viewInDAM() throws ClientException, UnsupportedEncodingException
#getAssetPermanentLinkUrl
.public String updateCurrentDocument() throws ClientException
ClientException
public boolean getCanCreateInAssetLibrary() throws ClientException
ClientException
public AssetLibrary getAssetLibrary()
public boolean isOnDamView()
public boolean isOnAssetsView()
public String getDownloadURL()
public String getAssetPermanentLinkUrl(boolean newConversation) throws ClientException, UnsupportedEncodingException
ClientException
UnsupportedEncodingException
Copyright © 2015 Nuxeo SA. All rights reserved.