mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126514 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 122926 jvonka: (Quick) Shared Links API - updates and fixes - A/C changed from 400 to 409 if shared link already exists - tweak 404 error message (entity id not found) - change response from sharedId to just id - add optional filter when finding links, eg. where=(sharedByUser/id='userId') (userId can also be -me-) - TODO add a few more tests (rendition download, filtered find) RA-708, RA-777 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126858 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,9 +23,11 @@ import java.util.Date;
|
||||
/**
|
||||
* Representation of quick share link
|
||||
*
|
||||
* The "sharedId" provides a short link/url that is easy to copy/paste/send (via email or other).
|
||||
* As of now, these links are public in that they provide unauthenticated access to the
|
||||
* node's content and limited metadata info, such as file name and last modifer/modification.
|
||||
* The shared link id provides a short id that can be part of a short app url that is easy to
|
||||
* copy/paste/send (via email or other).
|
||||
*
|
||||
* As of now, these shared links are public in that they provide unauthenticated access to the
|
||||
* node's content and limited metadata info, such as file name and last modifier/modification.
|
||||
*
|
||||
* In the future, the QuickShareService *could* be enhanced to provide additional features,
|
||||
* such as link expiry &/or "password" protection, etc.
|
||||
@@ -35,7 +37,7 @@ import java.util.Date;
|
||||
*/
|
||||
public class QuickShareLink
|
||||
{
|
||||
// unique "short" link (ie. shorter than a guid, 22 vs 36 chars)
|
||||
// unique short id (ie. shorter than a guid, 22 vs 36 chars)
|
||||
private String sharedId;
|
||||
|
||||
private String nodeId;
|
||||
@@ -58,11 +60,11 @@ public class QuickShareLink
|
||||
this.nodeId = nodeId;
|
||||
}
|
||||
|
||||
public String getSharedId() {
|
||||
public String getId() {
|
||||
return sharedId;
|
||||
}
|
||||
|
||||
public void setSharedId(String sharedId) {
|
||||
public void setId(String sharedId) {
|
||||
this.sharedId = sharedId;
|
||||
}
|
||||
|
||||
@@ -129,7 +131,7 @@ public class QuickShareLink
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("QuickShareLink [sharedId=").append(getSharedId());
|
||||
sb.append("QuickShareLink [id=").append(getId());
|
||||
sb.append(", nodeId=").append(getNodeId());
|
||||
sb.append(", name=").append(getName());
|
||||
sb.append(", modifiedAt=").append(getModifiedAt());
|
||||
|
Reference in New Issue
Block a user