1 16 package org.apache.cocoon.portal.acting.helpers; 17 18 import org.apache.cocoon.portal.PortalService; 19 import org.apache.cocoon.portal.coplet.CopletInstanceData; 20 import org.apache.cocoon.portal.event.Event; 21 import org.apache.cocoon.portal.event.impl.FullScreenCopletEvent; 22 import org.apache.cocoon.portal.layout.Layout; 23 import org.apache.cocoon.portal.profile.ProfileManager; 24 25 31 public class FullScreenMapping extends Mapping { 32 public String copletId; 33 public String layoutId; 34 35 public Event getEvent(PortalService service, Object data) { 36 final ProfileManager manager = service.getComponentManager().getProfileManager(); 37 final CopletInstanceData cid = manager.getCopletInstanceData(this.copletId); 38 final Layout layout = manager.getPortalLayout(null, layoutId) ; 39 40 Event e = new FullScreenCopletEvent(cid, layout); 41 return e; 42 } 43 44 } 45 | Popular Tags |