1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 /***
35 * Pre page aggregation event, prepares the content paths for the
36 * given decorators of the current page being aggregated. Preparing
37 * content paths is the process of putting in the correct decorator
38 * paths so that the content server can correctly find the decorator
39 * resources.
40 *
41 * @param context Jetspeed portal per request context.
42 * @param page The current page being aggregated.
43 */
44 void prepareContentPaths(RequestContext context, ContentPage page);
45
46 /***
47 * Adds stylesheets into the response header for a decoration
48 * using the Header Resource component.
49 * Styles can be gathered from both page and portlet decorators.
50 *
51 * @param context Jetspeed portal per request context.
52 * @param decoratorName Name of the decorator holding the style.
53 * @param decoratorType Type of decorator, either portlet or page.
54 */
55 void addStyle(RequestContext context, String decoratorName, String decoratorType);
56
57 }