1 24 package javax.jcr; 25 26 import org.xml.sax.*; 27 28 import javax.jcr.nodetype.*; 29 import javax.jcr.access.*; 30 import java.io.*; 31 32 44 public interface Ticket { 45 46 52 public Repository getRepository(); 53 54 60 public Credentials getCredentials(); 61 62 67 public Workspace getWorkspace(); 68 69 82 public Ticket impersonate(Credentials credentials) throws LoginException; 83 84 92 public Node getRootNode() throws RepositoryException; 93 94 104 public Node getNodeByUUID(String uuid) throws ItemNotFoundException, RepositoryException; 105 106 114 public Node getNodeByAbsPath(String absPath) throws PathNotFoundException, RepositoryException; 115 116 148 public void save() throws AccessDeniedException, ConstraintViolationException, ActionVetoedException, RepositoryException; 149 150 156 public void revert() throws RepositoryException; 157 158 194 public void importXML(String parentAbsPath, InputStream in) throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, InvalidSerializedDataException, RepositoryException; 195 196 215 public ContentHandler importXML(String parentAbsPath) throws PathNotFoundException, ItemExistsException, RepositoryException; 216 217 231 public void setPrefix(String prefix, String uri) throws NamespaceException; 232 233 241 public String [] getPrefixes(); 242 243 251 public String getURI(String prefix) throws NamespaceException; 252 253 259 public void logout(); 260 } | Popular Tags |