You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2006/03/21 05:34:00 UTC
svn commit: r387404 - in
/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed:
container/state/NavigationalStateComponent.java desktop/
desktop/JetspeedDesktop.java desktop/JetspeedDesktopContext.java
Author: taylor
Date: Mon Mar 20 20:33:59 2006
New Revision: 387404
URL: http://svn.apache.org/viewcvs?rev=387404&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-514
Added:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktop.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktopContext.java
Modified:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/NavigationalStateComponent.java
Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/NavigationalStateComponent.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/NavigationalStateComponent.java?rev=387404&r1=387403&r2=387404&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/NavigationalStateComponent.java (original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/NavigationalStateComponent.java Mon Mar 20 20:33:59 2006
@@ -70,5 +70,16 @@
* @param name The string representation of the portlet mode.
* @return The corresponding PortletMode object
*/
- PortletMode lookupPortletMode(String name);
+ PortletMode lookupPortletMode(String name);
+
+ /**
+ * Creates a Desktop Portal URL representing the URL of the request.
+ *
+ * @param request The ubiqitious request.
+ * @param characterEncoding String containing the name of the chararacter encoding
+ * @return A new Portal URL. This method will never return <code>null</code>;
+ * @throws FailedToCreatePortalUrlException if the portelt url could not be created. Under normal
+ * circumstances, this should not happen.
+ */
+ PortalURL createDesktopURL(HttpServletRequest request, String characterEncoding);
}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktop.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktop.java?rev=387404&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktop.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktop.java Mon Mar 20 20:33:59 2006
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2000-2004 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.jetspeed.desktop;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.jetspeed.request.RequestContext;
+
+/**
+ * Jetspeed Desktop
+ *
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+ * @version $Id: $
+ */
+public interface JetspeedDesktop
+{
+ String CONFIG_FILE_NAME = "theme.properties";
+
+ /**
+ * Render a desktop theme.
+ *
+ * @param request
+ */
+ void render(RequestContext request);
+
+ /**
+ * Retrieve the default theme for this portal
+ *
+ * @return default theme for portal
+ */
+ String getDefaultTheme();
+
+}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktopContext.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktopContext.java?rev=387404&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktopContext.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/desktop/JetspeedDesktopContext.java Mon Mar 20 20:33:59 2006
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2000-2004 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.jetspeed.desktop;
+
+/**
+ * Jetspeed Desktop
+ *
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+ * @version $Id: $
+ */
+public interface JetspeedDesktopContext
+{
+ String DESKTOP_ATTRIBUTE = "jetspeedDesktop";
+
+ /**
+ * Get an absolute portal from a relative URL.
+ * This request adds in the servlet path such as "/desktop"
+ *
+ * @param relativePath
+ * @return The full portal URL from a relative path
+ */
+ String getPortalUrl(String relativePath);
+
+ /**
+ * Gets an absolute resource URL to a portal resource, minus the servlet path
+ *
+ * @param relativePath
+ * @return
+ */
+ String getPortalResourceUrl(String relativePath);
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org