From d82de33326ea309bb942195d058bf925b0661faa Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Fri, 1 Oct 2010 13:01:29 +0000 Subject: [PATCH] Better fix for ALF-4919: Content Property format has changed - Append ID to previously-informative 'info' URL in ContentDataWithId - Add proper conversion in DefaultTypeConverter git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22810 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/repo/domain/node/ContentDataWithId.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/java/org/alfresco/repo/domain/node/ContentDataWithId.java b/source/java/org/alfresco/repo/domain/node/ContentDataWithId.java index 3e6af01d74..9503decd06 100644 --- a/source/java/org/alfresco/repo/domain/node/ContentDataWithId.java +++ b/source/java/org/alfresco/repo/domain/node/ContentDataWithId.java @@ -34,6 +34,8 @@ import org.alfresco.service.cmr.repository.ContentData; */ public class ContentDataWithId extends ContentData { + private static final long serialVersionUID = -5305648398812370806L; + private final Long id; public ContentDataWithId(ContentData contentData, Long id) @@ -42,6 +44,12 @@ public class ContentDataWithId extends ContentData this.id = id; } + @Override + public String toString() + { + return getInfoUrl() + "|id=" + (id == null ? "" : id.toString()); + } + public Long getId() { return id;