Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)

77234: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud)
      76041: Support for ACE-2077    SOLR 4 - Store content, metadata doc & fields for reindex & highlighting
      - fix up to include content data id


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78090 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2014-07-23 16:44:52 +00:00
parent e63e7a3d7b
commit 233ed7edc1
2 changed files with 12 additions and 3 deletions

View File

@@ -13,14 +13,16 @@ public class ContentPropertyValue extends PropertyValue
private long length;
private String encoding;
private String mimetype;
private Long id;
public ContentPropertyValue(Locale locale, long length, String encoding, String mimetype)
public ContentPropertyValue(Locale locale, long length, String encoding, String mimetype, Long id)
{
super();
this.locale = locale;
this.length = length;
this.encoding = encoding;
this.mimetype = mimetype;
this.id = id;
}
public String getEncoding()
@@ -43,10 +45,15 @@ public class ContentPropertyValue extends PropertyValue
return length;
}
public Long getId()
{
return id;
}
@Override
public String toString()
{
return "ContentPropertyValue [locale=" + locale + ", length=" + length + ", encoding="
+ encoding + ", mimetype=" + mimetype + "]";
+ encoding + ", mimetype=" + mimetype + ", id="+id+"]";
}
}

View File

@@ -650,7 +650,9 @@ public class SOLRAPIClient
String encoding = o.has("encoding") ? o.getString("encoding") : null;
String mimetype = o.has("mimetype") ? o.getString("mimetype") : null;
ret = new ContentPropertyValue(locale, size, encoding, mimetype);
Long id = o.has("contentId") ? o.getLong("contentId") : null;
ret = new ContentPropertyValue(locale, size, encoding, mimetype, id);
}
else
{