mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Made downloadUrl available across all public APIs for nodes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6047 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,6 +24,13 @@
|
||||
*/
|
||||
package org.alfresco.repo.template;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.text.MessageFormat;
|
||||
|
||||
import org.alfresco.service.cmr.repository.TemplateException;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
|
||||
/**
|
||||
* Contract for Template API objects that support content on the 'cm:content' default property.
|
||||
@@ -46,6 +53,14 @@ public interface TemplateContent extends TemplateProperties
|
||||
*/
|
||||
public String getUrl();
|
||||
|
||||
/**
|
||||
* @return For a content document, this method returns the download URL to the content for
|
||||
* the default content property (@see ContentModel.PROP_CONTENT)
|
||||
* <p>
|
||||
* For a container node, this method returns an empty string
|
||||
*/
|
||||
public String getDownloadUrl();
|
||||
|
||||
/**
|
||||
* @return The mimetype encoding for content attached to the node from the default content property
|
||||
* (@see ContentModel.PROP_CONTENT)
|
||||
|
Reference in New Issue
Block a user