Return-Path: Delivered-To: apmail-jakarta-jetspeed-dev-archive@apache.org Received: (qmail 56937 invoked from network); 18 Oct 2002 15:10:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Oct 2002 15:10:10 -0000 Received: (qmail 6202 invoked by uid 97); 18 Oct 2002 15:10:57 -0000 Delivered-To: qmlist-jakarta-archive-jetspeed-dev@jakarta.apache.org Received: (qmail 6166 invoked by uid 97); 18 Oct 2002 15:10:55 -0000 Mailing-List: contact jetspeed-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Developers List" Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@jakarta.apache.org Received: (qmail 6154 invoked by uid 98); 18 Oct 2002 15:10:55 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Subject: RE: ADD/REMOVE tab/entry TO ALL users PSML at once Date: Fri, 18 Oct 2002 11:10:03 -0400 Message-ID: <278BF63D80925A418390CEC1F2BAD5F32A5CF5@kournikova.novuscg.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ADD/REMOVE tab/entry TO ALL users PSML at once Thread-Index: AcJ2g+rI/oJyJ6r1Q9y5kh8yijhz9QANDKdw From: "Hugh Brien" To: "Jetspeed Developers List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks for the info, just one thing, when you say to context I assume = you are talking about the Velocity context. r, Hugh -----Original Message----- From: Luta, Raphael (VUN) [mailto:Raphael.Luta@groupvu.Com] Sent: Friday, October 18, 2002 4:51 AM To: 'Jetspeed Developers List' Subject: RE: ADD/REMOVE tab/entry TO ALL users PSML at once I personnally would implement it by using a Customized controller that = gets the group to add from its registry entry. You just need to subclass org.apache.jetspeed.modules.actions.controllers.PanedControllerAction = and overload the buildNormal() method to get the group name from the Controller registry = (or session or parameter or whatever), load the corresponding PortletSet and set it in the context. - write a modified mytabcontroller template to use this additionnal = context variable appropriately. - change the defintion of TabController in the Registry to use your = custom template and action. Et voila :) > -----Message d'origine----- > De : Hugh Brien [mailto:hugh.brien@novuscg.com] > Envoy=E9 : vendredi 18 octobre 2002 02:53 > A : Jetspeed Developers List > Objet : RE: ADD/REMOVE tab/entry TO ALL users PSML at once >=20 >=20 > How about something like this in the JetspeedTool code for=20 > getPane(String name). This adds > the Group VMI88 as a new Menu Item or tab. It does not=20 > appear user customizes. >=20 > Need to specify a DEFAULT_GROUP and store it in the=20 > User/Session. One could also grab a couple of other > references to other Portlets using the PortletToolkit and add=20 > them also. If I am way here could someone point it out.=20 >=20 > public ConcreteElement getPane(String name) > { > ConcreteElement result =3D null; > String msg =3D ""; > if (null !=3D rundata) > { > Profile profile =3D rundata.getProfile(); > if (null =3D=3D profile) > { > profile =3D Profiler.getProfile(rundata); > if (profile =3D=3D null) > { > throw new ProfileException("Profile=20 > not found."); > } > rundata.setProfile(profile); > } > =20 > if ((name =3D=3D null) || =20 > Profiler.DEFAULT_PROFILE.equals(name) || "".equals(name)) > ; > else > profile.setName(name); > =20 > >> PSMLDocument doc =3D profile.getDocument(); > >> Portlets docPortlets =3D doc.getPortlets(); > >> if(rundata.getUser().hasLoggedIn()) > >> { =20 > >> // Need to get a DEFAULT_GROUP from the=20 > Session instead of this hard code.=20 > >> Portlets groupPortlets =3D=20 > PortalToolkit.getReference("/group/VMI88/page/default.psml/med > ia-type/html"); =20 > >> groupPortlets.setTitle("GroupPortlets"); > >> docPortlets.addPortlets(groupPortlets); > } >=20 > if (null !=3D doc) > { > >> result =3D=20 > PortalToolkit.getSet(docPortlets).getContent(rundata); > } > =20 >=20 > r, > Hugh >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > =20 >=20 >=20 >=20 > -----Original Message----- > From: David Sean Taylor [mailto:david@bluesunrise.com] > Sent: Thursday, October 17, 2002 12:15 PM > To: Jetspeed Developers List > Subject: RE: ADD/REMOVE tab/entry TO ALL users PSML at once >=20 >=20 >=20 >=20 > > -----Original Message----- > > From: Luta, Raphael (VUN) [mailto:Raphael.Luta@groupvu.Com] > > Sent: Thursday, October 17, 2002 9:00 AM > > To: 'Jetspeed Developers List' > > Subject: RE: ADD/REMOVE tab/entry TO ALL users PSML at once > > > > > > How about this: > > > > If you have this type of requirements, you probably don't want > > your user to > > have full control over his portal space. > > > > If this is true, then you should be able security restrictions to > > allow the > > user to customize only *some* > > elemnts of his portal page: > > > > - Set the top level PSML element with a security level of > > "admin". This should ensure that no user can > > edit their top level panes in the page root. > > > > - Define your tabs in your root page by using refs to other > > "template" pages > > for which the user has no customization rights > > (ex: a "company" pane, then a "department" pane, then a "My > > Boss" pane and > > finally a "My Pane" one) >=20 > docs on psml refs: >=20 > http://jakarta.apache.org/jetspeed/site/psml.html >=20 > Recommend using the RegistryAccessController service, where=20 > you can define > your security constraints >=20 > http://jakarta.apache.org/jetspeed/site/security.html#Registry > %20Access%20Co > ntrol >=20 > > Only the "My Pane" pane defintion would be actually=20 > physically defined > > within the user PSML with a security setting allowing > > the user to manipulate and customize his own pane. > > > > I've not actually tested it out and I can't right now but I=20 > don't see any > > reason why it should not work (except bugs, of course :) > > > > Would that fit your need ? > > > > > > > > > -----Message d'origine----- > > > De : mmosttler@yci.com [mailto:mmosttler@yci.com] > > > Envoy=E9 : jeudi 17 octobre 2002 17:24 > > > A : jetspeed-dev@jakarta.apache.org > > > Objet : RE: ADD/REMOVE tab/entry TO ALL users PSML at once > > > > > > > > > It sounds easy, but how are you going to add the Group PSML > > > to the User > > > PSML? How do you know where in the PSML to do the add? Are > > > you enforcing a > > > standard that would allow you to merge the 2? > > > > > > -----Original Message----- > > > From: Hugh Brien [mailto:hugh.brien@novuscg.com] > > > Sent: Thursday, October 17, 2002 7:49 AM > > > To: Jetspeed Users List > > > Cc: jetspeed-dev@jakarta.apache.org > > > Subject: RE: ADD/REMOVE tab/entry TO ALL users PSML at once > > > > > > > > > We are working on this right now. We are going to try=20 > the following: > > > > > > 1. We have defined a default Group for each user and save > > > that value in the > > > session. We have an business rule that determines default group. > > > 2. We plan on adding functionality that will append the > > > Group's portlets the > > > PortletSet for the user. > > > 3. It's a simple thing to do it's just finding the right > > > place to put the > > > code. I think it's actually at the Profile level. Where the > > > Portlets class > > > is passed to the PortletFactory to return a PortletSet > > > > > > r, > > > Hugh > > > > > > > > > > > > -----Original Message----- > > > From: Marian Skalsky [mailto:ms@euromove.sk] > > > Sent: Thursday, October 17, 2002 3:56 AM > > > To: jetspeed-user@jakarta.apache.org > > > Subject: ADD/REMOVE tab/entry TO ALL users PSML at once > > > > > > > > > Hi there! > > > > > > We have JetSpeed used in our company intranet and I have made > > > a default user > > > XXX and all new users when created get his psml. > > > This is fine. But my boss wants to be able to add a TAB in > > > the menu to all > > > users when he decides. Other way said, he wants to login to > > > his account and > > > then add something.. and this should appear in every users > > > home (PSML). > > > Is there a some way how to add something (e.g. TAB item in > > > the menu) to all > > > users PSMLs or how to share a part of PSML by all users, that > > > may be then > > > changed anytime? > > > Or how would you solve this? > > > > > > Any suggestion will be very appreciated. > > > Thank you. > > > $kala. > > > > > > > > > --- > > > Odch=E1dzaj=FAca spr=E1va neobsahuje v=EDrusy. > > > Skontrolovan=E9 antiv=EDrusov=FDm syst=E9mom AVG = (http://www.grisoft.cz). > > > Verzia: 6.0.401 / V=EDrusov=E1 datab=E1za: 226 - d=E1tum vydania:=20 > 11. 10. 2002 > > > > > > -- > > > To unsubscribe, e-mail: > > > > > > For additional commands, e-mail: > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > > For additional commands, e-mail: > > > > > > > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > >=20 >=20 >=20 > -- > To unsubscribe, e-mail: =20 For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: For additional commands, e-mail: