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.clientimpl;
17:
18: import org.outerj.daisy.repository.commonimpl.*;
19: import org.outerj.daisy.repository.commonimpl.comment.CommentStrategy;
20: import org.outerj.daisy.repository.commonimpl.variant.VariantStrategy;
21: import org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy;
22: import org.outerj.daisy.repository.commonimpl.acl.AclStrategy;
23: import org.outerj.daisy.repository.commonimpl.schema.SchemaStrategy;
24: import org.outerj.daisy.repository.query.QueryManager;
25: import org.outerj.daisy.repository.clientimpl.query.RemoteQueryManager;
26: import org.outerj.daisy.repository.spi.ExtensionProvider;
27:
28: import java.util.Map;
29:
30: public class RemoteCommonRepository extends CommonRepository {
31: private RemoteRepositoryManager.Context context;
32:
33: public RemoteCommonRepository(
34: RepositoryStrategy repositoryStrategy,
35: DocumentStrategy documentStrategy,
36: SchemaStrategy schemaStrategy, AclStrategy aclStrategy,
37: UserManagementStrategy userManagementStrategy,
38: VariantStrategy variantStrategy,
39: CollectionStrategy collectionStrategy,
40: CommentStrategy commentStrategy,
41: RemoteRepositoryManager.Context context,
42: Map<String, ExtensionProvider> extensions,
43: AuthenticatedUser cacheUser) {
44: super (repositoryStrategy, documentStrategy, schemaStrategy,
45: aclStrategy, userManagementStrategy, variantStrategy,
46: collectionStrategy, commentStrategy, extensions,
47: cacheUser);
48: this .context = context;
49: }
50:
51: public QueryManager getQueryManager(AuthenticatedUser user) {
52: return new RemoteQueryManager(context, user);
53: }
54: }
|