Return-Path: Delivered-To: apmail-portals-jetspeed-user-archive@www.apache.org Received: (qmail 74050 invoked from network); 16 Nov 2007 16:03:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2007 16:03:40 -0000 Received: (qmail 4728 invoked by uid 500); 16 Nov 2007 16:02:44 -0000 Delivered-To: apmail-portals-jetspeed-user-archive@portals.apache.org Received: (qmail 4654 invoked by uid 500); 16 Nov 2007 16:02:43 -0000 Mailing-List: contact jetspeed-user-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Users List" Delivered-To: mailing list jetspeed-user@portals.apache.org Received: (qmail 4604 invoked by uid 99); 16 Nov 2007 16:02:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2007 08:02:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jennford@southernco.com designates 146.126.51.99 as permitted sender) Received: from [146.126.51.99] (HELO southernco.com) (146.126.51.99) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2007 16:02:30 +0000 Received: from ([148.115.12.61]) by alxapmx13.southernco.com with SMTP id KP-BRBVR.32269796; Fri, 16 Nov 2007 10:01:51 -0600 Received: from ([148.115.222.61]) by alxapmx13.southernco.com with ESMTP id KP-BRBVR.32269468; Fri, 16 Nov 2007 10:00:14 -0600 Received: from ALXAPEX46.southernco.com ([148.115.222.59]) by ALXAPEX01.southernco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 16 Nov 2007 10:01:16 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Custom pages for users Date: Fri, 16 Nov 2007 10:01:16 -0600 Message-ID: <5B9FB9EE480EC34F80679BAD14344EAC012CE297@ALXAPEX46.southernco.com> In-Reply-To: <176d9f690711151713h6d69f63fi657d9b7e9dbe6501@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Custom pages for users thread-index: Acgn7f+t2IAp+qKRTLaNTLqnBe3rUAAe2S6Q References: <176d9f690711141944l66e3b3cbq72cbb14811efd722@mail.gmail.com> <5B9FB9EE480EC34F80679BAD14344EAC012CE292@ALXAPEX46.southernco.com> <176d9f690711151713h6d69f63fi657d9b7e9dbe6501@mail.gmail.com> From: "Ford, Jennifer M." To: "Jetspeed Users List" X-OriginalArrivalTime: 16 Nov 2007 16:01:16.0906 (UTC) FILETIME=[EB93ACA0:01C82869] X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org If you make some templates for each role type and place them under _role, you can set up the user to get a copy of those pages with just a small amount of work. Here's some code from the processAction of my custom user creation portlet: logger.info("Adding user: " + userID); =09 //Set up new user =09 user.setUserName(StringEscapeUtils.escapeSql(actionRequest.getParameter( "user_name"))); =09 user.setEmail(StringEscapeUtils.escapeSql(actionRequest.getParameter("em ail"))); String active =3D (actionRequest.getParameter("active").equals("false")) ? "0" : "1"; user.setIsActive(active); =09 user.setPassword("P0rt@l"); =09 try { if (userManager.userExists(user.getUserID())) { appendStartErrorText("User already exists in portal. See User Administration Portlet for information"); =09 } else { logger.info("Inserting user"); =09 //Add the user to the portal =09 userManager.addUser(user.getUserID(), user.getPassword()); =09 userManager.setPasswordUpdateRequired(user.getUserID(), true); =09 //Add the roles to the portal user for (Iterator i =3D user.getRoles().iterator(); i.hasNext();) { PortalRole role =3D (PortalRole) i.next(); =09 roleManager.addRoleToUser(user.getUserID(), role.getRoleCode()); }=09 =09 //Give everyone their own copy of pages logger.info("Adding pages for user"); PageManager pageManager =3D (PageManager) getPortletContext().getAttribute( =09 CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT); =09 pageManager.createUserHomePagesFromRoles(userManager.getUser(user.getUse rID()).getSubject()); =09 logger.info("Setting user profile to point to user/role pages"); PrincipalRule rule =3D profiler.createPrincipalRule(); =09 rule.setPrincipalName(user.getUserID()); rule.setLocatorName("page"); =09 rule.setProfilingRule(profiler.getRule("user-rolecombo-fallback")); =09 profiler.storePrincipalRule(rule); } } catch (Exception e) { System.out.println("Error: " + e.getLocalizedMessage()); } =20 -----Original Message----- From: $aurabh Vig [mailto:saurabhvig@gmail.com]=20 Sent: Thursday, November 15, 2007 7:13 PM To: Jetspeed Users List Subject: Re: Custom pages for users Thanks Jennifer, Could just figure that out yesterday with some hit and trials, and was trying to see if there was some way with the admin portals to do that automatically when a new user is created. I guess writing a new user creation portlet is a way. anything better than that?? Regards, Saurabh On Nov 15, 2007 9:38 PM, Ford, Jennifer M. wrote: > Yes, if you make a directory for the user under pages/_user and add a=20 > copy of the page to that, they can modify the page as much as they=20 > want and it won't affect any other users of your portal. > > -----Original Message----- > From: $aurabh Vig [mailto:saurabhvig@gmail.com] > Sent: Wednesday, November 14, 2007 9:45 PM > To: Jetspeed Users List > Subject: Custom pages for users > > Hi, > > Is it possible to have the same page on any site/subsite customized=20 > diffrerently for different users? > I mean each user gets a different view on the same page by editing the > page himself, something like igoogle. > > > Regards, > Saurabh > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org > For additional commands, e-mail: jetspeed-user-help@portals.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org > For additional commands, e-mail: jetspeed-user-help@portals.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-user-help@portals.apache.org