portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor" <da...@bluesunrise.com>
Subject RE: Question on Muliple portlet instance behavior
Date Fri, 28 Jun 2002 18:16:08 GMT


> -----Original Message-----
> From: Weaver, Scott [mailto:Sweaver@rippe.com] 
> Sent: Friday, June 28, 2002 7:16 AM
> To: 'Jetspeed Developers List'
> Subject: RE: Question on Muliple portlet instance behavior
> 
> 
> David,
> 
> Are portlet id's guaranteed unique across ALL PSMLDocuments 
> of all users (like a UUID) or is there a possibility that 
> ID's may be re-used from one user's PSMLDocument to another?
> 

Yes and no.
Portlet ids can be entered manually in the PSML file.
In this case, they are not guaranteed to be unique.

If you let Jetspeed assign the ids, then they are guaranteed to be
unique system wide.
See org.apache.jetspeed.services.idgenerator

> The reason I ask is that I was thinking of employing a 
> write-locking mechanism into the PortalPersistenceService.  
> We would still allow dirty reads, however multiple attempts 
> to write would throw an exception.  I would manage locks in a 
> HashMap keyed by portlet id's.
> 
> What so you think?
> 

That sounds fine.

> Scott
> 
> > -----Original Message-----
> > From: David Sean Taylor [mailto:david@bluesunrise.com]
> > Sent: Thursday, June 27, 2002 6:02 PM
> > To: 'Jetspeed Developers List'
> > Subject: RE: Question on Muliple portlet instance behavior
> > 
> > Scott,
> > 
> > Had a quick look.
> > Few comments:
> > 
> > jData.getProfile();                 -- this will always get you the
> > current profile, good!
> > doc.getEntryById(portlet.getID())   -- great, that will get 
> the correct
> > instance!
> > 
> > Looking good, I will review it in more detail tomorrow.
> > 
> > Thanks,
> > 
> > David
> > 
> > -----Original Message-----
> > From: Weaver, Scott [mailto:Sweaver@rippe.com]
> > Sent: Thursday, June 27, 2002 2:31 PM
> > To: 'Jetspeed Developers List'
> > Subject: RE: Question on Muliple portlet instance behavior
> > 
> > 
> > David,
> > Here is what I finished today.  There is a service interface, an 
> > implementation and a fa├žade class to access the service plus an 
> > exception. I have tested the get and set and they are 
> working and are 
> > aware of individual portlet instances.  I have yet change 
> > AbstractPortlet and test it there.  Hopefully, I will get to that 
> > tomorrow.  I also still need to add the Apache license to 
> the classes 
> > and better documentation. I will be adding more methods as I get to 
> > them/think of them: 
> > getPortletAttributeList(),getPortletAttributeNames(), etc. 
> Let me know 
> > of another other important functionality I may not have thought 
> > of/been aware of. Thanks,
> > Scott
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:jetspeed-dev-
> > unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:jetspeed-dev- 
> > help@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message