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:
Kevin Roast
2007-12-04 11:44:28 +00:00
parent ebf766ef6c
commit 4dfac1d4bb

View File

@@ -506,7 +506,7 @@ public abstract class BaseContentNode implements TemplateContent
/** /**
* @return the content stream to the specified maximum length in characters * @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(); ContentService contentService = services.getContentService();
ContentReader reader = contentService.getReader(getNodeRef(), property); ContentReader reader = contentService.getReader(getNodeRef(), property);
@@ -526,7 +526,7 @@ public abstract class BaseContentNode implements TemplateContent
if (MimetypeMap.MIMETYPE_TEXT_PLAIN.equals(getMimetype())) if (MimetypeMap.MIMETYPE_TEXT_PLAIN.equals(getMimetype()))
{ {
result = getContent(length); result = getContentMaxLength(length);
} }
else else
{ {