01: /*
02: * Copyright 2004 Outerthought bvba and Schaubroeck nv
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.outerj.daisy.repository.commonimpl;
17:
18: import org.outerj.daisy.repository.RepositoryException;
19: import org.outerj.daisy.repository.commonimpl.namespace.NamespaceImpl;
20: import org.outerj.daisy.repository.namespace.Namespace;
21:
22: public interface RepositoryStrategy {
23: String getClientVersion(AuthenticatedUser user);
24:
25: String getServerVersion(AuthenticatedUser user);
26:
27: NamespaceImpl registerNamespace(String namespaceName,
28: String fingerprint, AuthenticatedUser user)
29: throws RepositoryException;
30:
31: NamespaceImpl registerNamespace(String namespaceName,
32: AuthenticatedUser user) throws RepositoryException;
33:
34: NamespaceImpl unregisterNamespace(String namespaceName,
35: AuthenticatedUser user) throws RepositoryException;
36:
37: NamespaceImpl unregisterNamespace(long id, AuthenticatedUser user)
38: throws RepositoryException;
39:
40: Namespace[] getAllNamespaces(AuthenticatedUser user)
41: throws RepositoryException;
42:
43: Namespace getNamespaceByName(String namespaceName,
44: AuthenticatedUser user) throws RepositoryException;
45:
46: String getRepositoryNamespace(AuthenticatedUser user)
47: throws RepositoryException;
48: }
|