mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
ACE-5622: Search api scope now uses "locations"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133518 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -70,7 +70,9 @@ public class Node implements Comparable<Node>
|
||||
protected UserInfo archivedByUser;
|
||||
|
||||
// Version info - specifically for version node - see Version History API
|
||||
protected String versionLabel;
|
||||
protected String versionComment;
|
||||
protected String nodeId; //This is the frozen node id NOT the current node id
|
||||
|
||||
protected Boolean isFolder;
|
||||
protected Boolean isFile;
|
||||
@@ -95,6 +97,7 @@ public class Node implements Comparable<Node>
|
||||
|
||||
//optional SearchEntry (only ever returned from a search)
|
||||
protected SearchEntry search = null;
|
||||
protected String location;
|
||||
|
||||
public Node(NodeRef nodeRef, NodeRef parentNodeRef, Map<QName, Serializable> nodeProps, Map<String, UserInfo> mapUserInfo, ServiceRegistry sr)
|
||||
{
|
||||
@@ -377,6 +380,16 @@ public class Node implements Comparable<Node>
|
||||
this.archivedByUser = archivedByUser;
|
||||
}
|
||||
|
||||
public String getVersionLabel()
|
||||
{
|
||||
return versionLabel;
|
||||
}
|
||||
|
||||
public void setVersionLabel(String versionLabel)
|
||||
{
|
||||
this.versionLabel = versionLabel;
|
||||
}
|
||||
|
||||
public String getVersionComment()
|
||||
{
|
||||
return versionComment;
|
||||
@@ -387,6 +400,26 @@ public class Node implements Comparable<Node>
|
||||
this.versionComment = versionComment;
|
||||
}
|
||||
|
||||
public String getLocation()
|
||||
{
|
||||
return location;
|
||||
}
|
||||
|
||||
public void setLocation(String location)
|
||||
{
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public String getNodeId()
|
||||
{
|
||||
return nodeId;
|
||||
}
|
||||
|
||||
public void setNodeId(String nodeId)
|
||||
{
|
||||
this.nodeId = nodeId;
|
||||
}
|
||||
|
||||
public boolean equals(Object other)
|
||||
{
|
||||
if(this == other)
|
||||
@@ -451,6 +484,22 @@ public class Node implements Comparable<Node>
|
||||
{
|
||||
sb.append(", archivedByUser=").append(getArchivedByUser());
|
||||
}
|
||||
if (getVersionLabel() != null)
|
||||
{
|
||||
sb.append(", versionLabel=").append(getVersionLabel());
|
||||
}
|
||||
if (getVersionComment() != null)
|
||||
{
|
||||
sb.append(", versionComment=").append(getVersionComment());
|
||||
}
|
||||
if (getLocation() != null)
|
||||
{
|
||||
sb.append(", location=").append(getLocation());
|
||||
}
|
||||
if (getNodeId() != null)
|
||||
{
|
||||
sb.append(", nodeId=").append(getNodeId());
|
||||
}
|
||||
if (getIsLink() != null)
|
||||
{
|
||||
sb.append(", isLink=").append(getIsLink()); // note: symbolic link (not shared link)
|
||||
|
Reference in New Issue
Block a user