KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > tools > helper > PortalObjects


1 /*
2  * Copyright 1999-2005 The Apache Software Foundation.
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.apache.cocoon.portal.tools.helper;
17
18 import org.apache.cocoon.portal.PortalComponentManager;
19 import org.apache.cocoon.portal.PortalService;
20 import org.apache.cocoon.portal.layout.Layout;
21 import org.apache.cocoon.portal.profile.ProfileManager;
22
23 /**
24  *
25  * @version CVS $Id: PortalObjects.java 151235 2005-02-03 21:38:49Z cziegeler $
26  */

27 public class PortalObjects {
28     
29     private PortalService portalService;
30     private PortalComponentManager componentManager;
31     private ProfileManager profileManager;
32     private Layout portalLayout;
33     
34     
35     public PortalObjects(PortalService portalService) {
36         this.portalService = portalService;
37         this.componentManager = portalService.getComponentManager();
38         this.profileManager = componentManager.getProfileManager();
39         this.portalLayout = profileManager.getPortalLayout(null, null);
40     }
41
42
43     public PortalComponentManager getComponentManager() {
44         return componentManager;
45     }
46     
47     public Layout getPortalLayout() {
48         return portalLayout;
49     }
50     
51     public PortalService getPortalService() {
52         return portalService;
53     }
54     
55     public ProfileManager getProfileManager() {
56         return profileManager;
57     }
58 }
59
Popular Tags