KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > wsrp > producer > impl > helpers > WSRPProducerRewriterPortletURLFactory


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  *
5  * Created on 12 janv. 2004
6  */

7 package org.exoplatform.services.wsrp.producer.impl.helpers;
8
9 import java.util.Enumeration JavaDoc;
10 import java.util.List JavaDoc;
11 import java.util.Map JavaDoc;
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 /**
19  * @author Mestrallet Benjamin
20  * benjmestrallet@users.sourceforge.net
21  */

22 public class WSRPProducerRewriterPortletURLFactory implements PortletURLFactory{
23
24   private String JavaDoc sessionID;
25   private List JavaDoc supports;
26   private String JavaDoc portletHandle;
27   private String JavaDoc template;
28   private Enumeration JavaDoc supportedWindowState;
29   private List JavaDoc customWindowStates;
30   private boolean isCurrentlySecured;
31   private String JavaDoc markup;
32   private PersistentStateManager stateManager;
33
34   public WSRPProducerRewriterPortletURLFactory(String JavaDoc markup,
35                                                List JavaDoc supports,
36                                                boolean isCurrentlySecured,
37                                                List JavaDoc customWindowStates,
38                                                Enumeration JavaDoc supportedWindowState,
39                                                String JavaDoc template, String JavaDoc portletHandle,
40                                                PersistentStateManager stateManager,
41                                                String JavaDoc 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 JavaDoc 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