mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
126351 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 118825 jkaabimofrad: RA-655: manual merge of SFS module to FILE-FOLDER-API. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126696 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
93 lines
1.8 KiB
Java
93 lines
1.8 KiB
Java
|
|
package org.alfresco.rest.api.model;
|
|
|
|
import java.util.List;
|
|
|
|
import org.alfresco.service.cmr.repository.NodeRef;
|
|
|
|
/**
|
|
* Representation of a path info
|
|
*
|
|
* @author janv
|
|
*/
|
|
public class PathInfo
|
|
{
|
|
private String name;
|
|
private Boolean isComplete;
|
|
private List<ElementInfo> elements;
|
|
|
|
public PathInfo()
|
|
{
|
|
}
|
|
|
|
public PathInfo(String name, Boolean isComplete, List<ElementInfo> elements)
|
|
{
|
|
this.name = name;
|
|
this.isComplete = isComplete;
|
|
this.elements = elements;
|
|
}
|
|
|
|
public String getName()
|
|
{
|
|
return name;
|
|
}
|
|
|
|
public Boolean getIsComplete()
|
|
{
|
|
return isComplete;
|
|
}
|
|
|
|
public List<ElementInfo> getElements()
|
|
{
|
|
return elements;
|
|
}
|
|
|
|
@Override
|
|
public String toString()
|
|
{
|
|
final StringBuilder sb = new StringBuilder(120);
|
|
sb.append("PathInfo [name='").append(name)
|
|
.append(", isComplete=").append(isComplete)
|
|
.append(", elements=").append(elements)
|
|
.append(']');
|
|
return sb.toString();
|
|
}
|
|
|
|
public static class ElementInfo
|
|
{
|
|
|
|
private NodeRef id;
|
|
private String name;
|
|
|
|
public ElementInfo()
|
|
{
|
|
}
|
|
|
|
public ElementInfo(NodeRef id, String name)
|
|
{
|
|
this.id = id;
|
|
this.name = name;
|
|
}
|
|
|
|
public String getName()
|
|
{
|
|
return name;
|
|
}
|
|
|
|
public NodeRef getId()
|
|
{
|
|
return id;
|
|
}
|
|
|
|
@Override
|
|
public String toString()
|
|
{
|
|
final StringBuilder sb = new StringBuilder(250);
|
|
sb.append("PathElement [id=").append(id)
|
|
.append(", name='").append(name)
|
|
.append(']');
|
|
return sb.toString();
|
|
}
|
|
}
|
|
}
|