KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > outerj > daisy > repository > commonimpl > variant > VariantManagerImpl


1 /*
2  * Copyright 2004 Outerthought bvba and Schaubroeck nv
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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, AuthenticatedUser user) {
27         this.delegate = delegate;
28         this.user = user;
29     }
30
31     public Branch createBranch(String JavaDoc name) {
32         return delegate.createBranch(name, user);
33     }
34
35     public Branch getBranch(long id, boolean updateable) throws RepositoryException {
36         return delegate.getBranch(id, updateable, user);
37     }
38
39     public Branch getBranch(String JavaDoc branch, boolean updateable) throws RepositoryException {
40         return delegate.getBranch(branch, updateable, user);
41     }
42
43     public Branch getBranchByName(String JavaDoc name, boolean updateable) throws RepositoryException {
44         return delegate.getBranchByName(name, updateable, user);
45     }
46
47     public Branches getAllBranches(boolean updateable) throws RepositoryException {
48         return delegate.getAllBranches(updateable, user);
49     }
50
51     public void deleteBranch(long id) throws RepositoryException {
52         delegate.deleteBranch(id, user);
53     }
54
55     public Language createLanguage(String JavaDoc name) {
56         return delegate.createLanguage(name, user);
57     }
58
59     public Language getLanguage(long id, boolean updateable) throws RepositoryException {
60         return delegate.getLanguage(id, updateable, user);
61     }
62
63     public Language getLanguage(String JavaDoc language, boolean updateable) throws RepositoryException {
64         return delegate.getLanguage(language, updateable, user);
65     }
66
67     public Language getLanguageByName(String JavaDoc name, boolean updateable) throws RepositoryException {
68         return delegate.getLanguageByName(name, updateable, user);
69     }
70
71     public Languages getAllLanguages(boolean updateable) throws RepositoryException {
72         return delegate.getAllLanguages(updateable, user);
73     }
74
75     public void deleteLanguage(long id) throws RepositoryException {
76         delegate.deleteLanguage(id, user);
77     }
78 }
79
Popular Tags