incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwald...@apache.org
Subject svn commit: r489187 [3/3] - in /incubator/adffaces/branches/jwaldman-portal/trinidad: trinidad-api/src/main/java/org/apache/myfaces/trinidad/config/ trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/ trinidad-api/src/main/java/org/apache/m...
Date Wed, 20 Dec 2006 20:12:37 GMT
Added: incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/PortletRequestWrapper.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/PortletRequestWrapper.java?view=auto&rev=489187
==============================================================================
--- incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/PortletRequestWrapper.java
(added)
+++ incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/PortletRequestWrapper.java
Wed Dec 20 12:12:35 2006
@@ -0,0 +1,366 @@
+/*
+ * Copyright  2004-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.myfaces.trinidadinternal.webapp.wrappers;
+
+import java.security.Principal;
+import java.util.Enumeration;
+import java.util.Locale;
+import java.util.Map;
+
+import javax.portlet.PortalContext;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequest;
+import javax.portlet.PortletSession;
+import javax.portlet.WindowState;
+
+/**
+ * TODO: Document this 
+ *
+ * @author Scott O'Bryan (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+
+public class PortletRequestWrapper implements PortletRequest
+{
+  public PortletRequestWrapper(PortletRequest request)
+  {
+    _req = request;
+  }
+  
+  private PortletRequest _req;
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#getAttribute(java.lang.String)
+   */
+  public Object getAttribute(String arg0)
+  {
+    return _req.getAttribute(arg0);
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getAttributeNames()
+   */
+  public Enumeration getAttributeNames()
+  {
+    return _req.getAttributeNames();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getAuthType()
+   */
+  public String getAuthType()
+  {
+    return _req.getAuthType();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getContextPath()
+   */
+  public String getContextPath()
+  {
+    return _req.getContextPath();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getLocale()
+   */
+  public Locale getLocale()
+  {
+    return _req.getLocale();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getLocales()
+   */
+  public Enumeration getLocales()
+  {
+    return _req.getLocales();
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#getParameter(java.lang.String)
+   */
+  public String getParameter(String arg0)
+  {
+    return _req.getParameter(arg0);
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getParameterMap()
+   */
+  public Map getParameterMap()
+  {
+    return _req.getParameterMap();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getParameterNames()
+   */
+  public Enumeration getParameterNames()
+  {
+    return _req.getParameterNames();
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#getParameterValues(java.lang.String)
+   */
+  public String[] getParameterValues(String arg0)
+  {
+    return _req.getParameterValues(arg0);
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getPortalContext()
+   */
+  public PortalContext getPortalContext()
+  {
+    return _req.getPortalContext();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getPortletMode()
+   */
+  public PortletMode getPortletMode()
+  {
+    return _req.getPortletMode();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getPortletSession()
+   */
+  public PortletSession getPortletSession()
+  {
+    return _req.getPortletSession();
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#getPortletSession(boolean)
+   */
+  public PortletSession getPortletSession(boolean arg0)
+  {
+    return _req.getPortletSession(arg0);
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getPreferences()
+   */
+  public PortletPreferences getPreferences()
+  {
+    return _req.getPreferences();
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#getProperties(java.lang.String)
+   */
+  public Enumeration getProperties(String arg0)
+  {
+    return _req.getProperties(arg0);
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#getProperty(java.lang.String)
+   */
+  public String getProperty(String arg0)
+  {
+    return _req.getProperty(arg0);
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getPropertyNames()
+   */
+  public Enumeration getPropertyNames()
+  {
+    return _req.getPropertyNames();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getRemoteUser()
+   */
+  public String getRemoteUser()
+  {
+    return _req.getRemoteUser();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getRequestedSessionId()
+   */
+  public String getRequestedSessionId()
+  {
+    return _req.getRequestedSessionId();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getResponseContentType()
+   */
+  public String getResponseContentType()
+  {
+    return _req.getResponseContentType();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getResponseContentTypes()
+   */
+  public Enumeration getResponseContentTypes()
+  {
+    return _req.getResponseContentTypes();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getScheme()
+   */
+  public String getScheme()
+  {
+    return _req.getScheme();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getServerName()
+   */
+  public String getServerName()
+  {
+    return _req.getServerName();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getServerPort()
+   */
+  public int getServerPort()
+  {
+    return _req.getServerPort();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getUserPrincipal()
+   */
+  public Principal getUserPrincipal()
+  {
+    return _req.getUserPrincipal();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#getWindowState()
+   */
+  public WindowState getWindowState()
+  {
+    return _req.getWindowState();
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#isPortletModeAllowed(javax.portlet.PortletMode)
+   */
+  public boolean isPortletModeAllowed(PortletMode arg0)
+  {
+    return _req.isPortletModeAllowed(arg0);
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#isRequestedSessionIdValid()
+   */
+  public boolean isRequestedSessionIdValid()
+  {
+    return _req.isRequestedSessionIdValid();
+  }
+
+  /**
+   * @return
+   * @see javax.portlet.PortletRequest#isSecure()
+   */
+  public boolean isSecure()
+  {
+    return _req.isSecure();
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#isUserInRole(java.lang.String)
+   */
+  public boolean isUserInRole(String arg0)
+  {
+    return _req.isUserInRole(arg0);
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletRequest#isWindowStateAllowed(javax.portlet.WindowState)
+   */
+  public boolean isWindowStateAllowed(WindowState arg0)
+  {
+    return _req.isWindowStateAllowed(arg0);
+  }
+
+  /**
+   * @param arg0
+   * @see javax.portlet.PortletRequest#removeAttribute(java.lang.String)
+   */
+  public void removeAttribute(String arg0)
+  {
+    _req.removeAttribute(arg0);
+  }
+
+  /**
+   * @param arg0
+   * @param arg1
+   * @see javax.portlet.PortletRequest#setAttribute(java.lang.String, java.lang.Object)
+   */
+  public void setAttribute(String arg0, Object arg1)
+  {
+    _req.setAttribute(arg0, arg1);
+  }
+  
+  public PortletRequest getRequest()
+  {
+    return _req;
+  }
+}

Added: incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/PortletResponseWrapper.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/PortletResponseWrapper.java?view=auto&rev=489187
==============================================================================
--- incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/PortletResponseWrapper.java
(added)
+++ incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/PortletResponseWrapper.java
Wed Dec 20 12:12:35 2006
@@ -0,0 +1,70 @@
+/*
+ * Copyright  2004-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.myfaces.trinidadinternal.webapp.wrappers;
+
+import javax.portlet.PortletResponse;
+
+/**
+ * TODO: Document this 
+ *
+ * @author Scott O'Bryan (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+
+public class PortletResponseWrapper implements PortletResponse
+{
+  public PortletResponseWrapper(PortletResponse response)
+  {
+   _resp = response; 
+  }
+  
+  private PortletResponse _resp;
+  
+  public PortletResponse getResponse()
+  {
+    return _resp;
+  }
+
+  /**
+   * @param arg0
+   * @param arg1
+   * @see javax.portlet.PortletResponse#addProperty(java.lang.String, java.lang.String)
+   */
+  public void addProperty(String arg0, String arg1)
+  {
+    _resp.addProperty(arg0, arg1);
+  }
+
+  /**
+   * @param arg0
+   * @return
+   * @see javax.portlet.PortletResponse#encodeURL(java.lang.String)
+   */
+  public String encodeURL(String arg0)
+  {
+    return _resp.encodeURL(arg0);
+  }
+
+  /**
+   * @param arg0
+   * @param arg1
+   * @see javax.portlet.PortletResponse#setProperty(java.lang.String, java.lang.String)
+   */
+  public void setProperty(String arg0, String arg1)
+  {
+    _resp.setProperty(arg0, arg1);
+  }
+}

Added: incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/RenderRequestWrapper.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/RenderRequestWrapper.java?view=auto&rev=489187
==============================================================================
--- incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/RenderRequestWrapper.java
(added)
+++ incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/RenderRequestWrapper.java
Wed Dec 20 12:12:35 2006
@@ -0,0 +1,45 @@
+/*
+ * Copyright  2004-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.myfaces.trinidadinternal.webapp.wrappers;
+
+import javax.portlet.RenderRequest;
+
+/**
+ * TODO: Document this 
+ *
+ * @author Scott O'Bryan (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+
+public class RenderRequestWrapper extends PortletRequestWrapper implements RenderRequest
+{
+  public RenderRequestWrapper(RenderRequest request)
+  {
+    super(request);
+    _req = request;
+  }
+  
+  private RenderRequest _req;
+
+  /* (non-Javadoc)
+   * @see org.apache.myfaces.trinidadinternal.webapp.wrappers.PortletRequestWrapper#getRequest()
+   */
+  @Override
+  public RenderRequest getRequest()
+  {
+    return _req;
+  }
+}

Added: incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/RenderResponseWrapper.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/RenderResponseWrapper.java?view=auto&rev=489187
==============================================================================
--- incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/RenderResponseWrapper.java
(added)
+++ incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/webapp/wrappers/RenderResponseWrapper.java
Wed Dec 20 12:12:35 2006
@@ -0,0 +1,179 @@
+/*
+ * Copyright  2004-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.myfaces.trinidadinternal.webapp.wrappers;
+
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.PrintWriter;
+import java.util.Locale;
+
+import javax.portlet.PortletURL;
+import javax.portlet.RenderResponse;
+
+/**
+ * TODO: Document this 
+ *
+ * @author Scott O'Bryan (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+
+public class RenderResponseWrapper extends PortletResponseWrapper implements RenderResponse
+{
+  public RenderResponseWrapper(RenderResponse response)
+  {
+    super(response);
+    _resp = response;
+  }
+  
+  private RenderResponse _resp;
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#createActionURL()
+   */
+  public PortletURL createActionURL()
+  {
+    return _resp.createActionURL();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#createRenderURL()
+   */
+  public PortletURL createRenderURL()
+  {
+    return _resp.createRenderURL();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#flushBuffer()
+   */
+  public void flushBuffer() throws IOException
+  {
+    _resp.flushBuffer();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#getBufferSize()
+   */
+  public int getBufferSize()
+  {
+    return _resp.getBufferSize();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#getCharacterEncoding()
+   */
+  public String getCharacterEncoding()
+  {
+    return _resp.getCharacterEncoding();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#getContentType()
+   */
+  public String getContentType()
+  {
+    return _resp.getContentType();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#getLocale()
+   */
+  public Locale getLocale()
+  {
+    return _resp.getLocale();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#getNamespace()
+   */
+  public String getNamespace()
+  {
+    return _resp.getNamespace();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#getPortletOutputStream()
+   */
+  public OutputStream getPortletOutputStream() throws IOException
+  {
+    return _resp.getPortletOutputStream();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#getWriter()
+   */
+  public PrintWriter getWriter() throws IOException
+  {
+    return _resp.getWriter();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#isCommitted()
+   */
+  public boolean isCommitted()
+  {
+    return _resp.isCommitted();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#reset()
+   */
+  public void reset()
+  {
+    _resp.reset();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#resetBuffer()
+   */
+  public void resetBuffer()
+  {
+    _resp.resetBuffer();
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#setBufferSize(int)
+   */
+  public void setBufferSize(int arg0)
+  {
+    _resp.setBufferSize(arg0);
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#setContentType(java.lang.String)
+   */
+  public void setContentType(String arg0)
+  {
+    _resp.setContentType(arg0);
+  }
+
+  /* (non-Javadoc)
+   * @see javax.portlet.RenderResponse#setTitle(java.lang.String)
+   */
+  public void setTitle(String arg0)
+  {
+    _resp.setTitle(arg0);
+  }
+
+  /* (non-Javadoc)
+   * @see org.apache.myfaces.trinidadinternal.webapp.wrappers.PortletResponseWrapper#getResponse()
+   */
+  @Override
+  public RenderResponse getResponse()
+  {
+    return _resp;
+  }
+}

Added: incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/resources/META-INF/services/org.apache.myfaces.trinidad.config.Configurator
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/resources/META-INF/services/org.apache.myfaces.trinidad.config.Configurator?view=auto&rev=489187
==============================================================================
--- incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/resources/META-INF/services/org.apache.myfaces.trinidad.config.Configurator
(added)
+++ incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/resources/META-INF/services/org.apache.myfaces.trinidad.config.Configurator
Wed Dec 20 12:12:35 2006
@@ -0,0 +1,2 @@
+org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl
+org.apache.myfaces.trinidadinternal.config.dispatch.DispatchResponseConfiguratorImpl

Modified: incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/resources/META-INF/services/org.apache.myfaces.trinidad.config.GlobalConfigurator
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/resources/META-INF/services/org.apache.myfaces.trinidad.config.GlobalConfigurator?view=diff&rev=489187&r1=489186&r2=489187
==============================================================================
--- incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/resources/META-INF/services/org.apache.myfaces.trinidad.config.GlobalConfigurator
(original)
+++ incubator/adffaces/branches/jwaldman-portal/trinidad/trinidad-impl/src/main/resources/META-INF/services/org.apache.myfaces.trinidad.config.GlobalConfigurator
Wed Dec 20 12:12:35 2006
@@ -1,2 +0,0 @@
-org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl
-org.apache.myfaces.trinidadinternal.config.dispatch.DispatchResponseConfiguratorImpl



Mime
View raw message