mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Clean up of some OpenSearch queries and generated output, fix to Template API for accessing non-standard d:content properties
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7521 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -506,7 +506,7 @@ public abstract class BaseContentNode implements TemplateContent
|
||||
/**
|
||||
* @return the content stream to the specified maximum length in characters
|
||||
*/
|
||||
public String getContent(int length)
|
||||
public String getContentMaxLength(int length)
|
||||
{
|
||||
ContentService contentService = services.getContentService();
|
||||
ContentReader reader = contentService.getReader(getNodeRef(), property);
|
||||
@@ -526,7 +526,7 @@ public abstract class BaseContentNode implements TemplateContent
|
||||
|
||||
if (MimetypeMap.MIMETYPE_TEXT_PLAIN.equals(getMimetype()))
|
||||
{
|
||||
result = getContent(length);
|
||||
result = getContentMaxLength(length);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user