1 17 package org.alfresco.service.cmr.view; 18 19 import org.alfresco.service.cmr.repository.NodeRef; 20 import org.alfresco.service.cmr.repository.StoreRef; 21 import org.alfresco.service.namespace.QName; 22 import org.alfresco.util.ParameterCheck; 23 24 29 public class Location 30 { 31 private StoreRef storeRef = null; 32 private NodeRef nodeRef = null; 33 private String path = null; 34 private QName childAssocType = null; 35 36 37 42 public Location(NodeRef nodeRef) 43 { 44 ParameterCheck.mandatory("Node Ref", nodeRef); 45 this.storeRef = nodeRef.getStoreRef(); 46 this.nodeRef = nodeRef; 47 } 48 49 54 public Location(StoreRef storeRef) 55 { 56 ParameterCheck.mandatory("Store Ref", storeRef); 57 this.storeRef = storeRef; 58 } 59 60 63 public StoreRef getStoreRef() 64 { 65 return storeRef; 66 } 67 68 71 public NodeRef getNodeRef() 72 { 73 return nodeRef; 74 } 75 76 81 public void setPath(String path) 82 { 83 this.path = path; 84 } 85 86 89 public String getPath() 90 { 91 return path; 92 } 93 94 99 public void setChildAssocType(QName childAssocType) 100 { 101 this.childAssocType = childAssocType; 102 } 103 104 107 public QName getChildAssocType() 108 { 109 return childAssocType; 110 } 111 } 112 | Popular Tags |