01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.jetspeed.aggregator;
18:
19: import org.apache.jetspeed.om.page.ContentPage;
20: import org.apache.jetspeed.request.RequestContext;
21:
22: /**
23: * <p>
24: * The Content Server Adapter encapsulates all aggregated related
25: * activities related to aggregation, lessening the coupling of the
26: * aggregator to the content server, which can be disabled.
27: * </p>
28: *
29: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
30: * @version $Id: $
31: */
32: public interface ContentServerAdapter {
33: /**
34: * Pre page aggregation event, prepares the content paths for the
35: * given decorators of the current page being aggregated. Preparing
36: * content paths is the process of putting in the correct decorator
37: * paths so that the content server can correctly find the decorator
38: * resources.
39: *
40: * @param context Jetspeed portal per request context.
41: * @param page The current page being aggregated.
42: */
43: void prepareContentPaths(RequestContext context, ContentPage page);
44:
45: /**
46: * Adds stylesheets into the response header for a decoration
47: * using the Header Resource component.
48: * Styles can be gathered from both page and portlet decorators.
49: *
50: * @param context Jetspeed portal per request context.
51: * @param decoratorName Name of the decorator holding the style.
52: * @param decoratorType Type of decorator, either portlet or page.
53: */
54: void addStyle(RequestContext context, String decoratorName,
55: String decoratorType);
56:
57: }
|