Exemple #1
0
 public void setParent(Feed parent) {
   this.parent = parent;
   setParentId(parent == null ? null : parent.getId());
 }
Exemple #2
0
 public String getPath() {
   return parent == null ? name : parent.getPath() + "/" + name;
 }
Exemple #3
0
 public void addChild(Feed feed) {
   if (children == null) children = new ArrayList();
   feed.setParent(this);
   children.add(feed);
 }