1 17 package org.alfresco.repo.node.db; 18 19 import java.util.Collection ; 20 import java.util.List ; 21 22 import org.alfresco.repo.domain.ChildAssoc; 23 import org.alfresco.repo.domain.Node; 24 import org.alfresco.repo.domain.NodeAssoc; 25 import org.alfresco.repo.domain.NodeStatus; 26 import org.alfresco.repo.domain.Store; 27 import org.alfresco.service.cmr.dictionary.InvalidTypeException; 28 import org.alfresco.service.namespace.QName; 29 30 35 public interface NodeDaoService 36 { 37 42 public boolean isDirty(); 43 44 49 public List <Store> getStores(); 50 51 58 public Store createStore(String protocol, String identifier); 59 60 65 public Store getStore(String protocol, String identifier); 66 67 75 public Node newNode(Store store, String id, QName nodeTypeQName) throws InvalidTypeException; 76 77 83 public Node getNode(String protocol, String identifier, String id); 84 85 95 public void deleteNode(Node node, boolean cascade); 96 97 102 public ChildAssoc newChildAssoc( 103 Node parentNode, 104 Node childNode, 105 boolean isPrimary, 106 QName assocTypeQName, 107 QName qname); 108 109 114 public ChildAssoc getChildAssoc( 115 Node parentNode, 116 Node childNode, 117 QName assocTypeQName, 118 QName qname); 119 120 121 125 public void deleteChildAssoc(ChildAssoc assoc, boolean cascade); 126 127 134 public ChildAssoc getPrimaryParentAssoc(Node node); 135 136 140 public NodeAssoc newNodeAssoc( 141 Node sourceNode, 142 Node targetNode, 143 QName assocTypeQName); 144 145 148 public NodeAssoc getNodeAssoc( 149 Node sourceNode, 150 Node targetNode, 151 QName assocTypeQName); 152 153 156 public Collection <Node> getNodeAssocTargets(Node sourceNode, QName assocTypeQName); 157 158 161 public Collection <Node> getNodeAssocSources(Node targetNode, QName assocTypeQName); 162 163 166 public void deleteNodeAssoc(NodeAssoc assoc); 167 168 178 public NodeStatus getNodeStatus(String protocol, String identifier, String id); 179 180 186 public List <String > getContentDataStrings(); 187 } 188 | Popular Tags |