1 24 package javax.jcr; 25 26 import javax.jcr.access.AccessDeniedException; 27 import javax.jcr.access.AccessManager; 28 import javax.jcr.lock.LockCapabilities; 29 import javax.jcr.nodetype.ConstraintViolationException; 30 import javax.jcr.nodetype.NodeTypeManager; 31 import javax.jcr.observation.ObservationManager; 32 import javax.jcr.query.QueryManager; 33 34 import org.xml.sax.ContentHandler ; 35 import org.xml.sax.SAXException ; 36 37 import java.io.OutputStream ; 38 import java.io.IOException ; 39 40 48 public interface Workspace { 49 50 56 public Ticket getTicket(); 57 58 88 public void copy(String srcPath, String destPath, boolean shallow) 89 throws ConstraintViolationException, ItemExistsException, AccessDeniedException, RepositoryException; 90 91 114 public void clone(String srcAbsPath, String destAbsPath, String destWorkspace, boolean shallow) throws ConstraintViolationException, AccessDeniedException, PathNotFoundException, ItemExistsException, ActionVetoedException, RepositoryException; 115 116 117 118 119 145 public void move(String srcAbsPath, String destAbsPath) throws ConstraintViolationException, AccessDeniedException, PathNotFoundException, ItemExistsException, ActionVetoedException, RepositoryException; 146 147 153 public QueryManager getQueryManager(); 154 155 161 public NamespaceRegistry getNamespaceRegistry(); 162 163 170 public NodeTypeManager getNodeTypeManager(); 171 172 191 public AccessManager getAccessManager() throws UnsupportedRepositoryOperationException; 192 193 215 public LockCapabilities getLockCapabilities() throws UnsupportedRepositoryOperationException; 216 217 238 public ObservationManager getObservationManager() throws UnsupportedRepositoryOperationException; 239 240 280 public void exportSysView(String absPath, ContentHandler contentHandler, boolean binaryAsLink, boolean noRecurse) throws PathNotFoundException, SAXException , RepositoryException; 281 282 318 public void exportSysView(String absPath, OutputStream out, boolean binaryAsLink, boolean noRecurse) throws IOException , PathNotFoundException, RepositoryException; 319 320 338 public void exportDocView(String absPath, ContentHandler contentHandler, boolean binaryAsLink, boolean noRecurse) throws PathNotFoundException, SAXException , RepositoryException; 339 340 356 public void exportDocView(String absPath, OutputStream out, boolean binaryAsLink, boolean noRecurse) throws IOException , PathNotFoundException, RepositoryException; 357 } 358 | Popular Tags |