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 "Suchisubhra Sinha (susinha)" <su...@cisco.com> on 2003/11/20 05:32:48 UTC
RE: Database Driven Portlet/Skin/Media
Hi David,
I have written one service (DatabaseRegistryService )which will load
portlets from
Database (portlet, portlet_parameter, portlet_medaitype) and put into
cache(where
Registry service is putting).It is using the same cache what
RegistryService is using.
So user can store portlets both in file (.xreg. Which will be loaded
into cache by RegistryService) and in database (which will be loaded
into cache by DatabaseRegistryService). Also this service can be used to
store skin, PortletControl,
PortletController, MediaType, Security from database.
But I got two issues while implementing DatabaseRegistryService. I need
help for that.
1. why parent field in PORTLET table is number? As I see all the
portlets in
current demo-portlets.xreg, in portlet-entry tag parent=RSS or
parent="CustomizerVelocity" etc. So not able to figure out why parent
field
in PORTLET table is numeric.
2.There is no scope in PORTLET table to store 'security-ref' tag value
of a portlet. Then where should keep this value.
I will appreciate any pointers.
Thanx.
~suchi
-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.com]
Sent: Monday, November 17, 2003 6:08 AM
To: susinha@cisco.com
Subject: Re: Database Driven Portlet/Skin/Media
On Friday, November 14, 2003, at 07:38 AM, Suchisubhra Sinha (susinha)
wrote:
> Hi david,
> Two more questions regarding this.
>
> 1. You don't think we should put one more column called
> 'security-ref' in PORTLET table to Store Security reference for
> portlet if any. I am now storing this value
> in PORTLET_PARAMETER table
> As type='security-ref' where VALUE filed contains the original
> security reference value.
> But not able to convince myself with this approach. As if I want
to
> store multilingual
> Values in database, comparison type= 'security-ref' in my java
code
> is going failed.
> Even comparison of 'VALUE' field in jave Code is going to failed
> for this case.
> It will be good if we can store integer value instead of
> 'admin-only', 'user-only'
> Values. Let me know about your thoughts.
>
Please refresh my memory on what you are working on.
Is it J1 or J2?
--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
+01 707 773-4646
+01 707 529 9194
+44 (0)79 8538 6471
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org