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.variant;
17:
18: import org.outerj.daisy.repository.variant.*;
19: import org.outerj.daisy.repository.commonimpl.AuthenticatedUser;
20: import org.outerj.daisy.repository.RepositoryException;
21:
22: public class VariantManagerImpl implements VariantManager {
23: private CommonVariantManager delegate;
24: private AuthenticatedUser user;
25:
26: public VariantManagerImpl(CommonVariantManager delegate,
27: AuthenticatedUser user) {
28: this .delegate = delegate;
29: this .user = user;
30: }
31:
32: public Branch createBranch(String name) {
33: return delegate.createBranch(name, user);
34: }
35:
36: public Branch getBranch(long id, boolean updateable)
37: throws RepositoryException {
38: return delegate.getBranch(id, updateable, user);
39: }
40:
41: public Branch getBranch(String branch, boolean updateable)
42: throws RepositoryException {
43: return delegate.getBranch(branch, updateable, user);
44: }
45:
46: public Branch getBranchByName(String name, boolean updateable)
47: throws RepositoryException {
48: return delegate.getBranchByName(name, updateable, user);
49: }
50:
51: public Branches getAllBranches(boolean updateable)
52: throws RepositoryException {
53: return delegate.getAllBranches(updateable, user);
54: }
55:
56: public void deleteBranch(long id) throws RepositoryException {
57: delegate.deleteBranch(id, user);
58: }
59:
60: public Language createLanguage(String name) {
61: return delegate.createLanguage(name, user);
62: }
63:
64: public Language getLanguage(long id, boolean updateable)
65: throws RepositoryException {
66: return delegate.getLanguage(id, updateable, user);
67: }
68:
69: public Language getLanguage(String language, boolean updateable)
70: throws RepositoryException {
71: return delegate.getLanguage(language, updateable, user);
72: }
73:
74: public Language getLanguageByName(String name, boolean updateable)
75: throws RepositoryException {
76: return delegate.getLanguageByName(name, updateable, user);
77: }
78:
79: public Languages getAllLanguages(boolean updateable)
80: throws RepositoryException {
81: return delegate.getAllLanguages(updateable, user);
82: }
83:
84: public void deleteLanguage(long id) throws RepositoryException {
85: delegate.deleteLanguage(id, user);
86: }
87: }
|