mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user