Merged HEAD (5.2) to 5.2.N (5.2.1)

126542 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
      123495 jvonka: Nodes (FileFolder) API - add optional relativePath (to make folders) when creating a folder, empty file or other custom node
      RA-703


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126887 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-05-11 12:04:50 +00:00
parent f294882433
commit 7925bca309
4 changed files with 186 additions and 38 deletions

View File

@@ -71,6 +71,9 @@ public class Node implements Comparable<Node>
protected PathInfo pathInfo;
protected String prefixTypeQName;
// note: currently only used for create request
protected String relativePath;
protected List<String> aspectNames;
protected Map<String, Object> properties;
@@ -297,6 +300,16 @@ public class Node implements Comparable<Node>
this.allowableOperations = allowableOperations;
}
public String getRelativePath()
{
return relativePath;
}
public void setRelativePath(String relativePath)
{
this.relativePath = relativePath;
}
public boolean equals(Object other)
{
if(this == other)
@@ -329,16 +342,38 @@ public class Node implements Comparable<Node>
sb.append(", name=").append(getName());
sb.append(", isFolder=").append(getIsFolder());
sb.append(", isFile=").append(getIsFile());
sb.append(", isLink=").append(getIsLink()); // note: symbolic link (not shared link)
sb.append(", modifiedAt=").append(getModifiedAt());
sb.append(", modifiedByUser=").append(getModifiedByUser());
sb.append(", createdAt=").append(getCreatedAt());
sb.append(", createdByUser=").append(getCreatedByUser());
sb.append(", path=").append(getPath());
sb.append(", content=").append(getContent());
sb.append(", aspectNames=").append(getAspectNames());
//sb.append(", properties=").append(getProperties());
sb.append(", allowableOperations=").append(getAllowableOperations());
if (getIsLink() != null)
{
sb.append(", isLink=").append(getIsLink()); // note: symbolic link (not shared link)
}
if (getPath() != null)
{
sb.append(", path=").append(getPath());
}
if (getContent() != null)
{
sb.append(", content=").append(getContent());
}
if (getAspectNames() != null)
{
sb.append(", aspectNames=").append(getAspectNames());
}
if (getProperties() != null)
{
//sb.append(", properties=").append(getProperties());
}
if (getRelativePath() != null)
{
sb.append(", relativePath=").append(getRelativePath());
}
if (getAllowableOperations() != null)
{
sb.append(", allowableOperations=").append(getAllowableOperations());
}
sb.append("]");
return sb.toString();
}