1 7 package org.exoplatform.services.wsrp.producer.impl.helpers; 8 9 import java.util.Enumeration ; 10 import java.util.List ; 11 import java.util.Map ; 12 13 import javax.portlet.PortletURL; 14 import org.exoplatform.services.portletcontainer.pci.PortletURLFactory; 15 import org.exoplatform.services.wsrp.producer.PersistentStateManager; 16 17 18 22 public class WSRPProducerRewriterPortletURLFactory implements PortletURLFactory{ 23 24 private String sessionID; 25 private List supports; 26 private String portletHandle; 27 private String template; 28 private Enumeration supportedWindowState; 29 private List customWindowStates; 30 private boolean isCurrentlySecured; 31 private String markup; 32 private PersistentStateManager stateManager; 33 34 public WSRPProducerRewriterPortletURLFactory(String markup, 35 List supports, 36 boolean isCurrentlySecured, 37 List customWindowStates, 38 Enumeration supportedWindowState, 39 String template, String portletHandle, 40 PersistentStateManager stateManager, 41 String sessionID) { 42 this.markup = markup; 43 this.supports = supports; 44 this.isCurrentlySecured = isCurrentlySecured; 45 this.customWindowStates = customWindowStates; 46 this.supportedWindowState = supportedWindowState; 47 this.template = template; 48 this.portletHandle = portletHandle; 49 this.stateManager = stateManager; 50 this.sessionID = sessionID; 51 } 52 53 public PortletURL createPortletURL(String type){ 54 return new ProducerRewriterPortletURLImp(type, 55 markup, 56 supports, 57 isCurrentlySecured, 58 customWindowStates, 59 supportedWindowState, 60 template, 61 portletHandle, 62 stateManager, 63 sessionID ); 64 } 65 66 } 67 | Popular Tags |