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 José Antônio Rosa dos Santos Jr <jo...@gmail.com> on 2005/10/03 17:10:16 UTC

Dynamic PSML

Hi

I need a more flexible definition of the portlets a certain user can
view on a page managed by Jetspeed 2. This definition should be a
dynamic PSML based on the user roles ( a constraint per fragment and
not per PSML definition ). I also need to put these definitions in a
database.

After looking at the Spring beans configured in Jetspeed, I realized
the solution was to create my own beans and configure Spring to use
them. The files I looked at are:

org.apache.jetspeed.page.impl.CastorXmlPageManager and
org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler

which implements

org.apache.jetspeed.page.PageManager and
org.apache.jetspeed.page.document.DocumentHandler

Am I on the right direction? Do I need to implement any other
interface? Is that any other way to accomplish that?

Thanks in advance

Jose Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Re: Dynamic PSML

Posted by Randy Watler <wa...@wispertel.net>.
Jose,

One needs to implement a PageManager that returns Folder, Page, and Link 
instances. The DocumentHandler class is specific to the Castor XML 
implementation.

FYI, there is significant work underway in this area and the PageManager 
API may change to some degree.

HTH,

Randy


José Antônio Rosa dos Santos Jr wrote:

>Hi
>
>I need a more flexible definition of the portlets a certain user can
>view on a page managed by Jetspeed 2. This definition should be a
>dynamic PSML based on the user roles ( a constraint per fragment and
>not per PSML definition ). I also need to put these definitions in a
>database.
>
>After looking at the Spring beans configured in Jetspeed, I realized
>the solution was to create my own beans and configure Spring to use
>them. The files I looked at are:
>
>org.apache.jetspeed.page.impl.CastorXmlPageManager and
>org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler
>
>which implements
>
>org.apache.jetspeed.page.PageManager and
>org.apache.jetspeed.page.document.DocumentHandler
>
>Am I on the right direction? Do I need to implement any other
>interface? Is that any other way to accomplish that?
>
>Thanks in advance
>
>Jose Antonio
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org