]> git.argeo.org Git - lgpl/argeo-commons.git/blob - CmsWorkspace.java
2033241f76932d1752dad283c0d295499ccfd764
[lgpl/argeo-commons.git] / CmsWorkspace.java
1 package org.argeo.cms.internal.kernel;
2
3 import java.io.IOException;
4 import java.io.InputStream;
5
6 import javax.jcr.AccessDeniedException;
7 import javax.jcr.InvalidItemStateException;
8 import javax.jcr.InvalidSerializedDataException;
9 import javax.jcr.ItemExistsException;
10 import javax.jcr.NamespaceRegistry;
11 import javax.jcr.NoSuchWorkspaceException;
12 import javax.jcr.PathNotFoundException;
13 import javax.jcr.RepositoryException;
14 import javax.jcr.Session;
15 import javax.jcr.UnsupportedRepositoryOperationException;
16 import javax.jcr.Workspace;
17 import javax.jcr.lock.LockException;
18 import javax.jcr.lock.LockManager;
19 import javax.jcr.nodetype.ConstraintViolationException;
20 import javax.jcr.nodetype.NodeTypeManager;
21 import javax.jcr.observation.ObservationManager;
22 import javax.jcr.query.QueryManager;
23 import javax.jcr.version.Version;
24 import javax.jcr.version.VersionException;
25 import javax.jcr.version.VersionManager;
26
27 import org.xml.sax.ContentHandler;
28
29 public class CmsWorkspace implements Workspace {
30 private String name;
31 private Session session;
32
33 @Override
34 public Session getSession() {
35 return session;
36 }
37
38 @Override
39 public String getName() {
40 return name;
41 }
42
43 @Override
44 public void copy(String srcAbsPath, String destAbsPath) throws ConstraintViolationException, VersionException,
45 AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException {
46 throw new UnsupportedOperationException();
47 }
48
49 @Override
50 public void copy(String srcWorkspace, String srcAbsPath, String destAbsPath)
51 throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException,
52 PathNotFoundException, ItemExistsException, LockException, RepositoryException {
53 throw new UnsupportedOperationException();
54 }
55
56 @Override
57 public void clone(String srcWorkspace, String srcAbsPath, String destAbsPath, boolean removeExisting)
58 throws NoSuchWorkspaceException, ConstraintViolationException, VersionException, AccessDeniedException,
59 PathNotFoundException, ItemExistsException, LockException, RepositoryException {
60 throw new UnsupportedOperationException();
61 }
62
63 @Override
64 public void move(String srcAbsPath, String destAbsPath) throws ConstraintViolationException, VersionException,
65 AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException {
66 throw new UnsupportedOperationException();
67 }
68
69 @Override
70 public void restore(Version[] versions, boolean removeExisting)
71 throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException,
72 InvalidItemStateException, RepositoryException {
73 throw new UnsupportedOperationException();
74 }
75
76 @Override
77 public LockManager getLockManager() throws UnsupportedRepositoryOperationException, RepositoryException {
78 throw new UnsupportedOperationException();
79 }
80
81 @Override
82 public QueryManager getQueryManager() throws RepositoryException {
83 throw new UnsupportedOperationException();
84 }
85
86 @Override
87 public NamespaceRegistry getNamespaceRegistry() throws RepositoryException {
88 throw new UnsupportedOperationException();
89 }
90
91 @Override
92 public NodeTypeManager getNodeTypeManager() throws RepositoryException {
93 throw new UnsupportedOperationException();
94 }
95
96 @Override
97 public ObservationManager getObservationManager()
98 throws UnsupportedRepositoryOperationException, RepositoryException {
99 throw new UnsupportedOperationException();
100 }
101
102 @Override
103 public VersionManager getVersionManager() throws UnsupportedRepositoryOperationException, RepositoryException {
104 // TODO Auto-generated method stub
105 return null;
106 }
107
108 @Override
109 public String[] getAccessibleWorkspaceNames() throws RepositoryException {
110 throw new UnsupportedOperationException();
111 }
112
113 @Override
114 public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException,
115 ConstraintViolationException, VersionException, LockException, AccessDeniedException, RepositoryException {
116 throw new UnsupportedOperationException();
117 }
118
119 @Override
120 public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, VersionException,
121 PathNotFoundException, ItemExistsException, ConstraintViolationException, InvalidSerializedDataException,
122 LockException, AccessDeniedException, RepositoryException {
123 throw new UnsupportedOperationException();
124 }
125
126 @Override
127 public void createWorkspace(String name)
128 throws AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryException {
129 throw new UnsupportedOperationException();
130 }
131
132 @Override
133 public void createWorkspace(String name, String srcWorkspace) throws AccessDeniedException,
134 UnsupportedRepositoryOperationException, NoSuchWorkspaceException, RepositoryException {
135 throw new UnsupportedOperationException();
136 }
137
138 @Override
139 public void deleteWorkspace(String name) throws AccessDeniedException, UnsupportedRepositoryOperationException,
140 NoSuchWorkspaceException, RepositoryException {
141 throw new UnsupportedOperationException();
142 }
143
144 }