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
This commit is contained in:
Derek Hulley
2010-10-01 13:01:29 +00:00
parent 9aa9514956
commit d82de33326

View File

@@ -34,6 +34,8 @@ import org.alfresco.service.cmr.repository.ContentData;
*/ */
public class ContentDataWithId extends ContentData public class ContentDataWithId extends ContentData
{ {
private static final long serialVersionUID = -5305648398812370806L;
private final Long id; private final Long id;
public ContentDataWithId(ContentData contentData, Long id) public ContentDataWithId(ContentData contentData, Long id)
@@ -42,6 +44,12 @@ public class ContentDataWithId extends ContentData
this.id = id; this.id = id;
} }
@Override
public String toString()
{
return getInfoUrl() + "|id=" + (id == null ? "" : id.toString());
}
public Long getId() public Long getId()
{ {
return id; return id;