1 5 6 package org.exoplatform.services.jcr.impl.storage.rdb.repository.data; 7 import java.util.Set ; 8 import java.util.Iterator ; 9 import java.util.HashSet ; 10 11 18 public class UUIDReference { 19 public UUIDReference() { 20 } 21 22 private Long id; 23 private ContainerRecord container; 24 private String uuid; 25 private String realPath; 26 private Set references; 27 28 29 public Long getId() { 30 return id; 31 } 32 33 public void setId(Long id) { 34 this.id = id; 35 } 36 37 41 public String getUuid() { 42 return uuid; 43 } 44 45 public void setUuid(String UUID) { 46 this.uuid = UUID; 47 } 48 49 53 public String getRealPath() { 54 return realPath; 55 } 56 57 public void setRealPath(String realPath) { 58 this.realPath = realPath; 59 } 60 61 64 public ContainerRecord getContainer() { 65 return container; 66 } 67 68 public void setContainer(ContainerRecord container) { 69 this.container = container; 70 } 71 72 78 public Set getReferences() { 79 return references; 80 } 81 82 public void setReferences(Set references) { 83 this.references = references; 84 } 85 86 public Set getRefPaths() { 87 Iterator refs = references.iterator(); 88 Set paths = new HashSet (); 89 while(refs.hasNext()) { 90 paths.add( ((PathReference) refs.next()).getPath()); 91 } 92 return paths; 93 } 94 } 95 | Popular Tags |