guest login user principal: anon -> guest?
Ate/David, Am I seeing things right? It appears that the guest login user principal is now "guest" instead of "anon", no? Just checking before I move around my page manager profiler psml login page layouts, (obviously I am updating my portal implementation after it fell behind for 2-3 weeks). Randy
cvs commit: jakarta-jetspeed-2/portals-bridges/velocity/src/java/org/apache/portals/bridges/velocity GenericVelocityPortlet.java BridgesVelocityViewServlet.java
taylor 2004/10/28 18:29:50 Modified:portals-bridges/velocity/src/java/org/apache/portals/bridges/velocity BridgesVelocityViewServlet.java Added: portals-bridges/velocity/src/java/org/apache/portals/bridges/velocity GenericVelocityPortlet.java Log: Phase I of Generic Velocity Portlet emulating basic functionality provided in the Portlet API (for JSPs) to Velocity portlets and templates. Provides the following Velocity context variables emulating PLT.22 JSP request variables: $renderRequest $renderResponse $portletConfig Constants: $MODE_EDIT, $MODE_HELP, $MODE_VIEW, $STATE_NORMAL, $STATE_MIN, $STATE_MAX Phase II will implement velocity action handling, form to bean conversion and validation, navigations (forwards) Revision ChangesPath 1.2 +16 -3 jakarta-jetspeed-2/portals-bridges/velocity/src/java/org/apache/portals/bridges/velocity/BridgesVelocityViewServlet.java Index: BridgesVelocityViewServlet.java === RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/velocity/src/java/org/apache/portals/bridges/velocity/BridgesVelocityViewServlet.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- BridgesVelocityViewServlet.java 24 Oct 2004 19:32:46 - 1.1 +++ BridgesVelocityViewServlet.java 29 Oct 2004 01:29:50 - 1.2 @@ -43,7 +43,7 @@ public final static String PORTLET_REQUEST = "javax.portlet.request"; public final static String PORTLET_RESPONSE = "javax.portlet.response"; public final static String PORTLET_CONFIG = "javax.portlet.config"; - + public static final String VELOCITY_WRITER_ATTR = "org.apache.velocity.io.VelocityWriter"; /** Cache of writers */ private static SimplePool writerPool = new SimplePool(40); @@ -63,12 +63,25 @@ if (renderRequest != null) { renderRequest.setAttribute(VELOCITY_CONTEXT_ATTR, ctx); +Context portletContext = (Context)renderRequest.getAttribute(GenericVelocityPortlet.PORTLET_BRIDGE_CONTEXT); +if (portletContext != null) +{ +// merge in portletContext +Object[] keys = portletContext.getKeys(); +for (int ix = 0; ix < keys.length; ix++) +{ +// is this api f'd in the head or what +ctx.put((String)keys[ix], portletContext.get((String)keys[ix])); +} +} + } + // standard render request and response also available in context ctx.put(PORTLET_REQUEST, renderRequest); ctx.put(PORTLET_RESPONSE, renderResponse); - + return super.handleRequest(request, response, ctx); } 1.1 jakarta-jetspeed-2/portals-bridges/velocity/src/java/org/apache/portals/bridges/velocity/GenericVelocityPortlet.java Index: GenericVelocityPortlet.java === /* * 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.portals.bridges.velocity; import java.io.IOException; import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.PortletConfig; import javax.portlet.PortletException; import javax.portlet.PortletMode; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import javax.portlet.WindowState; import org.apache.portals.bridges.common.GenericServletPortlet; import org.apache.velocity.VelocityContext; import org.apache.velocity.context.Context; /** * * Generic Velocity Portlet emulating basic functionality provided in the Portlet API (for JSPs) * to Velocity portlets and templates. Provides the following Velocity context variables emulating * PLT.22 JSP request variables: * * * $renderRequest * $renderResponse * $portletConfig * * * * PLT.22 Tags: * * $actionURL -- use renderResponse.createActionURL() * $renderURL -- use renderResponse.createRenderURL() * $namespace -- use rennderResponse.getNamespace(
cvs commit: jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/portlet/html/minty-blue decorator.vm
taylor 2004/10/28 18:19:09 Modified:portal/src/webapp/WEB-INF/decorations/portlet/html/jetspeed decorator.vm portal/src/webapp/WEB-INF/decorations/portlet/html/metal decorator.vm portal/src/webapp/WEB-INF/decorations/portlet/html/minty-blue decorator.vm Log: suppress debug if title doesn't exist (Null) Revision ChangesPath 1.13 +1 -1 jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/portlet/html/jetspeed/decorator.vm Index: decorator.vm === RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/portlet/html/jetspeed/decorator.vm,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- decorator.vm 18 Aug 2004 14:01:03 - 1.12 +++ decorator.vm 29 Oct 2004 01:19:09 - 1.13 @@ -35,7 +35,7 @@ - $jetspeed.getTitle($myPE, $myF) + $!jetspeed.getTitle($myPE, $myF) 1.11 +1 -1 jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/portlet/html/metal/decorator.vm Index: decorator.vm === RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/portlet/html/metal/decorator.vm,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- decorator.vm 18 Aug 2004 14:01:25 - 1.10 +++ decorator.vm 29 Oct 2004 01:19:09 - 1.11 @@ -35,7 +35,7 @@ - $jetspeed.getTitle($myPE, $myF) + $!jetspeed.getTitle($myPE, $myF) 1.12 +1 -1 jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/portlet/html/minty-blue/decorator.vm Index: decorator.vm === RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/portlet/html/minty-blue/decorator.vm,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- decorator.vm 18 Aug 2004 14:01:56 - 1.11 +++ decorator.vm 29 Oct 2004 01:19:09 - 1.12 @@ -35,7 +35,7 @@ - $jetspeed.getTitle($myPE, $myF) + $!jetspeed.getTitle($myPE, $myF) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity JetspeedPowerTool.java
taylor 2004/10/28 18:17:36 Modified:portal/src/java/org/apache/jetspeed/velocity JetspeedPowerTool.java Log: title was coming as an ugly velocity string when i chose a language with my client device that wasn't supported defaulted to the portlet name in this case, since it must always be defined Revision ChangesPath 1.34 +12 -10 jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerTool.java Index: JetspeedPowerTool.java === RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerTool.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- JetspeedPowerTool.java26 Oct 2004 22:22:00 - 1.33 +++ JetspeedPowerTool.java29 Oct 2004 01:17:36 - 1.34 @@ -1156,20 +1156,20 @@ */ public String getTitle(PortletEntity entity, Fragment f) { -String title=null; +String title = null; -if(f != null) +if (f != null) { title = f.getTitle(); } -if(entity != null && title == null) +if (entity != null && title == null) { title = Jetspeed.getCurrentRequestContext().getPreferedLanguage(entity.getPortletDefinition()).getTitle(); } -else if(title == null) +if (title == null) { -title = "Portlet Unavailable"; +title = entity.getPortletDefinition().getName(); } return title; @@ -1187,14 +1187,16 @@ */ public String getTitle(PortletEntity entity) { -if(entity != null) +String title = null; +if (entity != null) { -return Jetspeed.getCurrentRequestContext().getPreferedLanguage(entity.getPortletDefinition()).getTitle(); +title = Jetspeed.getCurrentRequestContext().getPreferedLanguage(entity.getPortletDefinition()).getTitle(); } -else +if (title == null) { -return "Portlet Unavailable"; +title = entity.getPortletDefinition().getName(); } +return title; } public Object getComponent(String name) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-jetspeed-2/portals-bridges/common/src/java/org/apache/portals/bridges/common GenericServletPortlet.java
taylor 2004/10/28 18:25:14 Modified:portals-bridges/common/src/java/org/apache/portals/bridges/common GenericServletPortlet.java Log: found a few old signatures on the processAction Revision ChangesPath 1.3 +4 -2 jakarta-jetspeed-2/portals-bridges/common/src/java/org/apache/portals/bridges/common/GenericServletPortlet.java Index: GenericServletPortlet.java === RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/common/src/java/org/apache/portals/bridges/common/GenericServletPortlet.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- GenericServletPortlet.java28 Oct 2004 05:58:13 - 1.2 +++ GenericServletPortlet.java29 Oct 2004 01:25:14 - 1.3 @@ -16,6 +16,8 @@ package org.apache.portals.bridges.common; import java.io.IOException; + +import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.GenericPortlet; import javax.portlet.PortletConfig; @@ -187,7 +189,7 @@ * * @task Need to be able to execute a servlet for the action */ -public void processAction(RenderRequest request, ActionResponse actionResponse) +public void processAction(ActionRequest request, ActionResponse actionResponse) throws PortletException, IOException { String actionPage = this.defaultActionPage; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/customerInfo CustomerPortlet.java
taylor 2004/10/28 18:24:53 Modified:applications/demo/src/java/org/apache/jetspeed/demo/simple AttributeScopeServlet.java applications/pam/src/java/org/apache/jetspeed/portlets/security UserDetailsPortlet.java applications/demo/src/java/org/apache/jetspeed/demo/customerInfo CustomerPortlet.java Log: found a few old signatures on the processAction Revision ChangesPath 1.4 +4 -3 jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/simple/AttributeScopeServlet.java Index: AttributeScopeServlet.java === RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/simple/AttributeScopeServlet.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- AttributeScopeServlet.java6 Oct 2004 23:45:05 - 1.3 +++ AttributeScopeServlet.java29 Oct 2004 01:24:53 - 1.4 @@ -16,9 +16,10 @@ package org.apache.jetspeed.demo.simple; import java.io.IOException; + +import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.PortletException; -import javax.portlet.PortletRequest; import javax.portlet.PortletSession; import org.apache.portals.bridges.common.GenericServletPortlet; @@ -92,7 +93,7 @@ * @see javax.portlet.GenericPortlet#processAction * */ -public void processAction(PortletRequest request, ActionResponse actionResponse) +public void processAction(ActionRequest request, ActionResponse actionResponse) throws PortletException, IOException { PortletSession session = request.getPortletSession(); 1.11 +1 -4 jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/security/UserDetailsPortlet.java Index: UserDetailsPortlet.java === RCS file: /home/cvs/jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/security/UserDetailsPortlet.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- UserDetailsPortlet.java 21 Oct 2004 18:43:07 - 1.10 +++ UserDetailsPortlet.java 29 Oct 2004 01:24:53 - 1.11 @@ -37,11 +37,8 @@ import org.apache.jetspeed.portlets.pam.beans.TabBean; import org.apache.jetspeed.portlets.security.users.JetspeedUserBean; import org.apache.jetspeed.portlets.security.users.JetspeedUserBean.StringAttribute; -import org.apache.jetspeed.profiler.ProfileLocator; import org.apache.jetspeed.profiler.Profiler; -import org.apache.jetspeed.profiler.ProfilerException; import org.apache.jetspeed.profiler.rules.PrincipalRule; -import org.apache.jetspeed.profiler.rules.ProfilingRule; import org.apache.jetspeed.security.GroupManager; import org.apache.jetspeed.security.RoleManager; import org.apache.jetspeed.security.User; 1.5 +4 -2 jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/customerInfo/CustomerPortlet.java Index: CustomerPortlet.java === RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/java/org/apache/jetspeed/demo/customerInfo/CustomerPortlet.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- CustomerPortlet.java 6 Oct 2004 23:45:05 - 1.4 +++ CustomerPortlet.java 29 Oct 2004 01:24:53 - 1.5 @@ -19,6 +19,8 @@ import java.util.ArrayList; import java.util.GregorianCalendar; import java.util.List; + +import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.PortletException; import javax.portlet.PortletSession; @@ -119,7 +121,7 @@ * in the session. * */ -public void processAction(RenderRequest request, ActionResponse actionResponse) throws PortletException, IOException +public void processAction(ActionRequest request, ActionResponse actionResponse) throws PortletException, IOException { } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DatabaseRegistryService / CastorRegistryService
thanks for your response. Jetspeed 1.6 is a stable version to download ? and if i integrate my jetspeed 1.5 only with that code (HybridRegistryService) ? Is it possible to do that ? and if so how many classes i must to integrate ?? thanks - Original Message - From: Jeremy Ford To: 'Jetspeed Developers List' Sent: Thursday, October 28, 2004 4:59 AM Subject: RE: DatabaseRegistryService / CastorRegistryService The Database registry does not work in 1.5 (as fas as I know). However, in 1.6, there is a new implementation that works. It's called the HybridRegistryService. Jeremy Ford [EMAIL PROTECTED] -Original Message- From: giluka [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 3:57 AM To: [EMAIL PROTECTED] Subject: DatabaseRegistryService / CastorRegistryService I'm using jetspeed1.5: i do not want to use .xreg fils to store portlet configuration... How to use org.apache.jetspeed.services.registry.DatabaseRegistryService ? in JetspeedResouces.properties i've inserted following lines: services.DatabaseRegistry.classname=org.apache.jetspeed.services.registry.Da tabaseRegistryService services.DatabaseRegistry.default.Portlet=true services.DatabaseRegistry.default.Skin=true alternatively to CastorRegistryService Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]