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 2009/04/08 03:25:29 UTC
svn commit: r763070 -
/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedOptionalPlutoServices.java
Author: taylor
Date: Wed Apr 8 01:25:29 2009
New Revision: 763070
URL: http://svn.apache.org/viewvc?rev=763070&view=rev
Log:
https://issues.apache.org/jira/browse/JS2-960
adding a dummy service for now to fix the broken build
Modified:
portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedOptionalPlutoServices.java
Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedOptionalPlutoServices.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedOptionalPlutoServices.java?rev=763070&r1=763069&r2=763070&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedOptionalPlutoServices.java (original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedOptionalPlutoServices.java Wed Apr 8 01:25:29 2009
@@ -16,6 +16,14 @@
*/
package org.apache.jetspeed.container.services;
+import java.util.Set;
+
+import javax.ccpp.Attribute;
+import javax.ccpp.Component;
+import javax.ccpp.Profile;
+import javax.ccpp.ProfileDescription;
+import javax.servlet.http.HttpServletRequest;
+
import org.apache.pluto.container.CCPPProfileService;
import org.apache.pluto.container.NamespaceMapper;
import org.apache.pluto.container.OptionalContainerServices;
@@ -23,7 +31,6 @@
import org.apache.pluto.container.PortletInvokerService;
import org.apache.pluto.container.PortletPreferencesService;
import org.apache.pluto.container.UserInfoService;
-import org.apache.pluto.container.driver.impl.DummyCCPPProfileServiceImpl;
/**
* Service accessor for all Pluto *optional* container services
@@ -81,4 +88,77 @@
{
return userInfoService;
}
+
+ class DummyCCPPProfileServiceImpl implements CCPPProfileService
+ {
+
+ /* (non-Javadoc)
+ * @see org.apache.pluto.spi.CCPPProfileService#getCCPPProfile()
+ */
+ public Profile getCCPPProfile(HttpServletRequest httpServletRequest)
+ {
+ return new DummyProfile();
+ // FIXME: Here we have to return a "real" javax.ccpp.Profile
+ }
+
+ }
+
+ // FIXME: Here we have to return a "real" javax.ccpp.Profile
+ class DummyProfile implements Profile
+ {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see javax.ccpp.Profile#getAttribute(java.lang.String)
+ */
+ public Attribute getAttribute(String arg0)
+ {
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see javax.ccpp.Profile#getAttributes()
+ */
+ @SuppressWarnings("unchecked")
+ public Set getAttributes()
+ {
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see javax.ccpp.Profile#getComponent(java.lang.String)
+ */
+ public Component getComponent(String arg0)
+ {
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see javax.ccpp.Profile#getComponents()
+ */
+ @SuppressWarnings("unchecked")
+ public Set getComponents()
+ {
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see javax.ccpp.Profile#getDescription()
+ */
+ public ProfileDescription getDescription()
+ {
+ return null;
+ }
+
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org