mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
106641: Merged 5.0.N (5.0.3) to HEAD-BUG-FIX (5.1/Cloud) (PARTIAL MERGE) 106597: Merged 5.0.2 (5.0.2) to 5.0.N (5.0.3) 106541: Merged /NESS/5.0.2-2015_06_03 (5.0.2) to URL: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/PATCHES/5.0.2 (..) 106485: MNT-12138 : ENH - Share must always offer the Download option - Added new Download button in Quick share screen available only for images - Added "nodeRef" on metadata response from api called by quickshare to avoid a call to a second api git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@106655 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -343,6 +343,7 @@ public class QuickShareServiceImpl implements QuickShareService, NodeServicePoli
|
||||
|
||||
Map<String, Object> metadata = new HashMap<String, Object>(8);
|
||||
|
||||
metadata.put("nodeRef", nodeRef.toString());
|
||||
metadata.put("name", nodeProps.get(ContentModel.PROP_NAME));
|
||||
metadata.put("title", nodeProps.get(ContentModel.PROP_TITLE));
|
||||
|
||||
@@ -401,7 +402,7 @@ public class QuickShareServiceImpl implements QuickShareService, NodeServicePoli
|
||||
metadata.put("sharable", sharable);
|
||||
}
|
||||
|
||||
Map<String, Object> model = new HashMap<String, Object>(1);
|
||||
Map<String, Object> model = new HashMap<String, Object>(2);
|
||||
model.put("item", metadata);
|
||||
return model;
|
||||
}
|
||||
@@ -451,6 +452,7 @@ public class QuickShareServiceImpl implements QuickShareService, NodeServicePoli
|
||||
{
|
||||
logger.debug("QuickShare - retrieved metadata: "+sharedId+" ["+nodeRef+"]["+model+"]");
|
||||
}
|
||||
//model.put("nodeRef", nodeRef)
|
||||
|
||||
return model;
|
||||
}
|
||||
|
Reference in New Issue
Block a user