1 5 6 package org.exoplatform.services.jcr.core; 7 8 import javax.jcr.PathNotFoundException; 9 import java.util.Set ; 10 import java.util.HashSet ; 11 12 18 19 public class ReferenceableNodeLocation extends ItemLocation { 20 21 private String UUID; 22 private String realPath; 23 private Set referencedPaths = new HashSet (); 24 25 public ReferenceableNodeLocation(String absPath, String UUID, String realPath) throws PathNotFoundException { 26 super(absPath); 28 this.UUID = UUID; 29 this.realPath = realPath; 30 31 } 32 33 public ReferenceableNodeLocation(String absPath, String UUID, String realPath, Set referencedPaths) throws PathNotFoundException { 34 super(absPath); 35 this.UUID = UUID; 36 this.realPath = realPath; 37 this.referencedPaths = referencedPaths; 38 } 39 40 public String getUUID() { 41 return UUID; 42 } 43 44 public String getRealPath() { 45 return realPath; 46 } 47 48 public void addReferencedPath(String path) { 49 referencedPaths.add(path); 50 } 51 52 public Set getReferencedPaths() { 53 return referencedPaths; 54 } 55 56 public String toString() { 57 58 return "RefereanceableNodeLocation "+UUID+" path:"+getPath()+" real path:"+realPath+" references:"+referencedPaths; 59 } 60 61 } 62 | Popular Tags |