When saving attachments, the thumbnail url was saved in a field whose name is "thumbnailUrl" whereas on retrieving it is called "ThumbnailUrl". So the retrieved field was null. Minor fixes on functions' java docs
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@122361 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1329d8b4a6
commit
2771bd00f8
|
@ -1917,7 +1917,7 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore {
|
|||
toAdd.setName(col.getStringValue());
|
||||
else if (col.getName().compareTo("description") == 0)
|
||||
toAdd.setDescription(col.getStringValue());
|
||||
else if (col.getName().compareTo("ThumbnailURL") == 0)
|
||||
else if (col.getName().compareTo("thumbnailURL") == 0)
|
||||
toAdd.setThumbnailURL(col.getStringValue());
|
||||
else if (col.getName().compareTo("mimeType") == 0)
|
||||
toAdd.setMimeType(col.getStringValue());
|
||||
|
|
|
@ -26,6 +26,7 @@ public class Attachment implements Serializable {
|
|||
* @param name the name of the attached file
|
||||
* @param description the description of the attached file
|
||||
* @param thumbnailURL the URL of the image representing the attached file
|
||||
* @param mimeType the type of file
|
||||
*/
|
||||
public Attachment(String id, String uri, String name, String description,
|
||||
String thumbnailURL, String mimeType) {
|
||||
|
|
|
@ -57,6 +57,7 @@ public class Feed implements Serializable, Comparable<Feed> {
|
|||
* @param thumbnailURL this is the user thumbnail url
|
||||
* @param linkTitle optional to be used when posting links
|
||||
* @param linkDescription optional to be used when posting links
|
||||
* @param linkHost option to be used when posting linkgs
|
||||
*/
|
||||
public Feed(String key, FeedType type, String entityId, Date time,
|
||||
String vreid, String uri, String uriThumbnail, String description, PrivacyLevel privacy,
|
||||
|
|
Loading…
Reference in New Issue