1 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 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 |