1 29 30 package com.caucho.jcr.base; 31 32 import org.xml.sax.ContentHandler ; 33 34 import javax.jcr.*; 35 import javax.jcr.lock.LockException; 36 import javax.jcr.nodetype.ConstraintViolationException; 37 import javax.jcr.nodetype.NodeTypeManager; 38 import javax.jcr.observation.ObservationManager; 39 import javax.jcr.query.QueryManager; 40 import javax.jcr.version.Version; 41 import javax.jcr.version.VersionException; 42 import java.io.IOException ; 43 import java.io.InputStream ; 44 45 48 public class BaseWorkspace implements Workspace { 49 private String _name; 50 private Session _session; 51 52 public BaseWorkspace(String name, Session session) 53 { 54 _name = name; 55 _session = session; 56 } 57 58 61 public Session getSession() 62 { 63 return _session; 64 } 65 66 69 public String getName() 70 { 71 return _name; 72 } 73 74 77 public void copy(String srcAbsPath, String destAbsPath) 78 throws ConstraintViolationException, 79 VersionException, 80 AccessDeniedException, 81 PathNotFoundException, 82 ItemExistsException, 83 LockException, 84 RepositoryException 85 { 86 throw new UnsupportedOperationException (getClass().getName()); 87 } 88 89 92 public void copy(String srcWorkspace, 93 String srcAbsPath, 94 String destAbsPath) 95 throws NoSuchWorkspaceException, 96 ConstraintViolationException, 97 VersionException, 98 AccessDeniedException, 99 PathNotFoundException, 100 ItemExistsException, 101 LockException, 102 RepositoryException 103 { 104 throw new UnsupportedOperationException (getClass().getName()); 105 } 106 107 110 public void clone(String srcWorkspace, 111 String srcAbsPath, 112 String destAbsPath, 113 boolean removeExisting) 114 throws NoSuchWorkspaceException, 115 ConstraintViolationException, 116 VersionException, 117 AccessDeniedException, 118 PathNotFoundException, 119 ItemExistsException, 120 LockException, 121 RepositoryException 122 { 123 throw new UnsupportedOperationException (getClass().getName()); 124 } 125 126 129 public void move(String srcAbsPath, String destAbsPath) 130 throws ConstraintViolationException, 131 VersionException, 132 AccessDeniedException, 133 PathNotFoundException, 134 ItemExistsException, 135 LockException, 136 RepositoryException 137 { 138 throw new UnsupportedOperationException (getClass().getName()); 139 } 140 141 144 public void restore(Version[] versions, boolean removeExisting) 145 throws ItemExistsException, 146 UnsupportedRepositoryOperationException, 147 VersionException, 148 LockException, 149 InvalidItemStateException, 150 RepositoryException 151 { 152 throw new UnsupportedOperationException (getClass().getName()); 153 } 154 155 158 public QueryManager getQueryManager() 159 throws RepositoryException 160 { 161 throw new UnsupportedOperationException (getClass().getName()); 162 } 163 164 167 public NamespaceRegistry getNamespaceRegistry() 168 throws RepositoryException 169 { 170 throw new UnsupportedOperationException (getClass().getName()); 171 } 172 173 176 public NodeTypeManager getNodeTypeManager() 177 throws RepositoryException 178 { 179 throw new UnsupportedOperationException (getClass().getName()); 180 } 181 182 185 public ObservationManager getObservationManager() 186 throws UnsupportedRepositoryOperationException, 187 RepositoryException 188 { 189 throw new UnsupportedOperationException (getClass().getName()); 190 } 191 192 195 public String [] getAccessibleWorkspaceNames() 196 throws RepositoryException 197 { 198 throw new UnsupportedOperationException (getClass().getName()); 199 } 200 201 204 public ContentHandler getImportContentHandler(String parentAbsPath, 205 int uuidBehavior) 206 throws PathNotFoundException, 207 ConstraintViolationException, 208 VersionException, 209 LockException, 210 AccessDeniedException, 211 RepositoryException 212 { 213 throw new UnsupportedOperationException (getClass().getName()); 214 } 215 216 219 public void importXML(String parentAbsPath, 220 InputStream in, 221 int uuidBehavior) 222 throws IOException , 223 PathNotFoundException, 224 ItemExistsException, 225 ConstraintViolationException, 226 InvalidSerializedDataException, 227 LockException, 228 AccessDeniedException, 229 RepositoryException 230 { 231 throw new UnsupportedOperationException (getClass().getName()); 232 } 233 } 234 | Popular Tags |