You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Frank Villarreal <f_...@tetco.com> on 2005/02/01 15:05:13 UTC

Default Home Pages

There is probably a simple solution for this, buttttt .....

I've noticed that under "WEB-INF/pages" there is a "default-page.psml" file
that becomes the "home" page for anyone who navigates to "jetspeed/portal"
using the default configuration. I've also noticed that "default-page.psml"
is not the first page in the portal .... it appears that the portal builds
its page links alphabetically if no document order is specified in the
"folder.metadata" file in any given folder.   So my first question is this
... How/where does jetspeed know that the "default-page.psml" should be
rendered first? ... even though it is not the first page in the folder
order???

I've also noticed that there are subfolder for some security roles using the
convention "_role/manager, _role/user" etc.  I'm assuming these folders are
meant to contain default home pages for users who log in and belong to those
roles?  Is that correct?  If so, it doesn't seem to be working.  I put a
security constraint on the "default-page.psml" file in the root folder to
only allow "<roles>guest</roles>" and was hoping somehow jetspeed would
"redirect" a user who logs in to an alternate home page in the subfolder
with for the appropriate role/user ... no luck.  Is this how it's supposed
to work or am I dreaming???

Any ideas/hints/ridicules appreciated.  Thanks. :-)

- Frank


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


Re: users/roles/groups creation and saving

Posted by Marina <pp...@yahoo.com>.
David, thanks a lot for your help!

After looking more closely at the HSQL DB scripts and
the populate DB scripts I was able to create a bare
minimum custom script for my portal.

I thought I'd share this with the group on case it
might help somebody to do the same:

Here is a minimal script to create a new user, new
role and assign the role to the user:


INSERT INTO SECURITY_PRINCIPAL
VALUES(54,'org.apache.jetspeed.security.InternalRolePrincipalImpl',false,true,'/role/dce-admin-role','2005-02-02
15:02:54.171','2005-02-02 15:02:54.171')

INSERT INTO SECURITY_PRINCIPAL
VALUES(56,'org.apache.jetspeed.security.InternalUserPrincipalImpl',false,true,'/user/dce-admin','2005-02-02
15:03:27.624','2005-02-02 15:03:27.64')

INSERT INTO SECURITY_CREDENTIAL
VALUES(53,56,'some_password',0,'org.apache.jetspeed.security.spi.impl.DefaultPasswordCredentialImpl',false,false,true,0,false,'2005-02-02
15:03:27.64','2005-02-02
15:03:27.64',NULL,NULL,'2005-04-03')

INSERT INTO SECURITY_USER_ROLE VALUES(56,54)

// not necessary if you are OK with a default
profiling rule
INSERT INTO PRINCIPAL_RULE_ASSOC
VALUES('dce-admin','page','role-fallback')
INSERT INTO PRINCIPAL_RULE_ASSOC
VALUES('dce-admin','docset','role-fallback')


One question:
Now that I have a basic SQL script to create a new
user, I thought I could use it in a "RegisterPortlet"
where a new user could register himself by typing in
his username/password, and , as a result, the portlet
would execute the SQL script on the backend.
However, after looking at the source code of J2's 
UserBrowserPortlet and UserDetailsPortlet portlets it
seems like this would not be enough - those portlets
are using J2's objects like
AuthenticationProviderProxy and others.

  Could somebody clarify if that's the correct way to
go to implement a RegisterPortlet? Or would execution
of the SQL script be enough?

Thank you!
Marina


--- David Sean Taylor <da...@bluesunrise.com> wrote:

> Marina wrote:
> > Hi!
> > 
> >  I'm trying to find an easy way to add new
> > users/roles/groups to J2 permanently (using HSQL
> DB
> > for now). By that I mean that I want to persist
> newly
> > created objects in the DB between upgrades of J2.
> > 
> > Currently, when you update and rebuild J2 from
> CVs,
> > for example, you have to run the 'maven
> quickStart'
> > goal, otherwise none of the web applications
> > (/jetspeed, etc.) get deployed into the Tomcat.
> > Unfortunately, this goal also wipes out your DB
> clean
> > and you have to re-create all your custom
> > users/groups/roles...
> > 
> > After going through this (painful, if you have
> many
> > users) exercise a few times, I decided to write my
> own
> > version of the populate-default-db.sql - kind of
> > script.
> 
> Ive been using the target maven nodbMinDeploy from
> /portal to deploy the 
> basic Jetspeed portal and security portlet app
> without demo apps. Note 
> that this goal does not populate the database.
> After running nodbMinDeploy, I run my own database
> scripts to populate 
> the database, run maven goals to customize J2 to my
> components, and then 
> deploy my portlet app(s).
> 
> I think I attached those scripts to another email on
> this list a few 
> days ago. Thus I have a complete custom script for
> DDL and default data.
> 
> 
> > 
> > The problem is that I'm not sure what are
> dependences
> > between all tables and it was not that easy to
> find
> > what tables changed after you add, say, a new user
> > since you don't really know which tables you
> should be
> > monitoring.
> > 
> > Because of that, I have a few questions:
> > 
> > 1. could somebody complete my list of tables that
> have
> > to be modified when use create custom users and
> roles
> > and want to tie them together?
> >   So far I have:
> > 
> >   to create a new role:
> >   PREFS_NODE 
> >   SECURITY_PRINCIPAL 
> > 
> >   to create a new user and assign the new role to
> it:
> >   SECURITY_PRINCIPAL 
> >   PRINCIPAL_ROLE_ASSOC
> >   SECURITY_USER_ROLE
> >   SECURITY_USER_GROUP
> > 
> >   This actually does not work - I guess I missed a
> few
> > tables...
> > 
> Yes its not enough, see the email or I can post them
> again.
> 
> > 
> > 2. Is there a way to save a 'snapshot' of a
> working DB
> > with all new objects and use that in a new J2
> > installation?
> > 
> Sure, thats dependent on your database.
> For HSQL, simply save the script
> 
> > 3. if all else fails, where is the actual data for
> the
> > HSQL DB stored? Maybe I could use some kind of
> 'diff'
> > on it after I add a new user ...
> > 
> :-)
> After seeing the file you will probably never use
> HSQL again.
> I never use HSQL, not even for development.
> Last time I checked it went here:
> 
> src/database/hsql/Test.script
> src/database/hsql/Production.script
> 
> 
> > Thank you!
> > Marina
> > 
> > 
> > 		
> > __________________________________ 
> > Do you Yahoo!? 
> > Yahoo! Mail - Find what you need with new enhanced
> search.
> > http://info.mail.yahoo.com/mail_250
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> > 
> > 
> > 
> 
> 
> -- 
> David Sean Taylor
> Bluesunrise Software
> david@bluesunrise.com
> [office] +01 707 773-4646
> [mobile] +01 707 529 9194
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 
> 

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


Re: users/roles/groups creation and saving

Posted by David Sean Taylor <da...@bluesunrise.com>.
Marina wrote:
> Hi!
> 
>  I'm trying to find an easy way to add new
> users/roles/groups to J2 permanently (using HSQL DB
> for now). By that I mean that I want to persist newly
> created objects in the DB between upgrades of J2.
> 
> Currently, when you update and rebuild J2 from CVs,
> for example, you have to run the 'maven quickStart'
> goal, otherwise none of the web applications
> (/jetspeed, etc.) get deployed into the Tomcat.
> Unfortunately, this goal also wipes out your DB clean
> and you have to re-create all your custom
> users/groups/roles...
> 
> After going through this (painful, if you have many
> users) exercise a few times, I decided to write my own
> version of the populate-default-db.sql - kind of
> script.

Ive been using the target maven nodbMinDeploy from /portal to deploy the 
basic Jetspeed portal and security portlet app without demo apps. Note 
that this goal does not populate the database.
After running nodbMinDeploy, I run my own database scripts to populate 
the database, run maven goals to customize J2 to my components, and then 
deploy my portlet app(s).

I think I attached those scripts to another email on this list a few 
days ago. Thus I have a complete custom script for DDL and default data.


> 
> The problem is that I'm not sure what are dependences
> between all tables and it was not that easy to find
> what tables changed after you add, say, a new user
> since you don't really know which tables you should be
> monitoring.
> 
> Because of that, I have a few questions:
> 
> 1. could somebody complete my list of tables that have
> to be modified when use create custom users and roles
> and want to tie them together?
>   So far I have:
> 
>   to create a new role:
>   PREFS_NODE 
>   SECURITY_PRINCIPAL 
> 
>   to create a new user and assign the new role to it:
>   SECURITY_PRINCIPAL 
>   PRINCIPAL_ROLE_ASSOC
>   SECURITY_USER_ROLE
>   SECURITY_USER_GROUP
> 
>   This actually does not work - I guess I missed a few
> tables...
> 
Yes its not enough, see the email or I can post them again.

> 
> 2. Is there a way to save a 'snapshot' of a working DB
> with all new objects and use that in a new J2
> installation?
> 
Sure, thats dependent on your database.
For HSQL, simply save the script

> 3. if all else fails, where is the actual data for the
> HSQL DB stored? Maybe I could use some kind of 'diff'
> on it after I add a new user ...
> 
:-)
After seeing the file you will probably never use HSQL again.
I never use HSQL, not even for development.
Last time I checked it went here:

src/database/hsql/Test.script
src/database/hsql/Production.script


> Thank you!
> Marina
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Find what you need with new enhanced search.
> http://info.mail.yahoo.com/mail_250
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 
> 


-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

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


users/roles/groups creation and saving

Posted by Marina <pp...@yahoo.com>.
Hi!

 I'm trying to find an easy way to add new
users/roles/groups to J2 permanently (using HSQL DB
for now). By that I mean that I want to persist newly
created objects in the DB between upgrades of J2.

Currently, when you update and rebuild J2 from CVs,
for example, you have to run the 'maven quickStart'
goal, otherwise none of the web applications
(/jetspeed, etc.) get deployed into the Tomcat.
Unfortunately, this goal also wipes out your DB clean
and you have to re-create all your custom
users/groups/roles...

After going through this (painful, if you have many
users) exercise a few times, I decided to write my own
version of the populate-default-db.sql - kind of
script.

The problem is that I'm not sure what are dependences
between all tables and it was not that easy to find
what tables changed after you add, say, a new user
since you don't really know which tables you should be
monitoring.

Because of that, I have a few questions:

1. could somebody complete my list of tables that have
to be modified when use create custom users and roles
and want to tie them together?
  So far I have:

  to create a new role:
  PREFS_NODE 
  SECURITY_PRINCIPAL 

  to create a new user and assign the new role to it:
  SECURITY_PRINCIPAL 
  PRINCIPAL_ROLE_ASSOC
  SECURITY_USER_ROLE
  SECURITY_USER_GROUP

  This actually does not work - I guess I missed a few
tables...


2. Is there a way to save a 'snapshot' of a working DB
with all new objects and use that in a new J2
installation?

3. if all else fails, where is the actual data for the
HSQL DB stored? Maybe I could use some kind of 'diff'
on it after I add a new user ...

Thank you!
Marina


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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


Re: Default Home Pages

Posted by Randy Watler <wa...@wispertel.net>.
Frank:

Your scenario is typical. Check out the subsite demo in the cvs HEAD: 
login as subsite/subsite and then as subsite2/subsite2. This is just to 
give you some food for thought... you will no doubt need some 
combination of different Profiler implementation approaches. There are 
recent descriptions of this subsite configuration in the dev mail list.

Archives for the user and dev lists can be located in a few different 
places... I use: http://marc.theaimsgroup.com/

HTH,

Randy

Frank Villarreal wrote:

>Thanks Randy.  Let's see ... I currently have a corporate web site that has
>general info on my company (about us, contact us, history, etc) ... I've
>made that my "public" psml page.  So as per your suggestion, I'll try and
>place the psml for this page under the "/pages/_user/guest/" folder.
>Somewhere in the layout of that page, I also have a login portlet.  Now when
>a "guest" user logs in (and the role changes), I need the user to be routed
>to a sub-site (with its own distinct decorators/layouts/portlets) custom
>tailored to that user's "role".  For example, I have several basic user
>classes ... customer, marketing, sales, csr, administrator, etc.  I'd like
>to have a distinct subsite for each of these roles.  Each subsite should
>have a distinct look 'n feel ... so implementing these subsites as
>"subfolder" links off some "root" portal is not an option ... the subsite
>should "be" the new "root" folder once a user logs in.  Of course its not
>that simple ... some users (owners), may have multiple "roles" (ie: sales &
>marketing).  In those cases, I'd like to map the user either to a subsite
>that provides a combo view of the role's portlets ... or provide some kind
>of "default" role based on the log in.  In other words have the user mapped
>to the role with the highest privileges.  Make sense ... or I am rambling?
>
>PS: Sorry about not reading through the email archive for J2, that usually
>the first thing I do before posting a question ... but I couldn't find a
>link to it off the portals web site.  Does an email archive even exist for
>jetspeed 2?
>
>- Frank
>
>-----Original Message-----
>From: Randy Watler [mailto:watler@wispertel.net]
>Sent: Tuesday, February 01, 2005 11:57 AM
>To: Jetspeed Users List
>Subject: Re: Default Home Pages
>
>
>Frank,
>
>There are many "nice" ways to accomplish this with J2 using the Profiler.
>
>Custom home pages per user, group, or role are easily supported. One can
>also select different home pages using different profiling rules. Once
>you get used to using the profiler, it is fairly powerful and flexible.
>
>In your scenario, I'd suggest placing the "public" home page in
>.../pages/_user/guest/default_page.psml. Depending on the profiling rule
>you wish to use, you can also place other home pages in
>.../pages/_role/*/default_page.psml and/or
>.../pages/_group/*/default_page.psml. There are plenty of examples of
>profiling in the J2 demo site... default page profiling is treated the
>same as any other page as far as the Profiler is concerned.
>
>There is a document in the profiler design-docs that discusses the J2
>Profiler and Page Manager functionality. There have also been plenty of
>emails on the topic to this list. In the spirit of expanding this email
>collection, I'd be happy to help you select a profiling strategy that
>will meet your needs. Please provide more detail on how you'd like to
>segregate pages on your site by user, roles, and groups and we'll see
>how far the Profiler can take you!
>
>Randy
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
>  
>


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


RE: Default Home Pages

Posted by Frank Villarreal <f_...@tetco.com>.
Thanks Randy.  Let's see ... I currently have a corporate web site that has
general info on my company (about us, contact us, history, etc) ... I've
made that my "public" psml page.  So as per your suggestion, I'll try and
place the psml for this page under the "/pages/_user/guest/" folder.
Somewhere in the layout of that page, I also have a login portlet.  Now when
a "guest" user logs in (and the role changes), I need the user to be routed
to a sub-site (with its own distinct decorators/layouts/portlets) custom
tailored to that user's "role".  For example, I have several basic user
classes ... customer, marketing, sales, csr, administrator, etc.  I'd like
to have a distinct subsite for each of these roles.  Each subsite should
have a distinct look 'n feel ... so implementing these subsites as
"subfolder" links off some "root" portal is not an option ... the subsite
should "be" the new "root" folder once a user logs in.  Of course its not
that simple ... some users (owners), may have multiple "roles" (ie: sales &
marketing).  In those cases, I'd like to map the user either to a subsite
that provides a combo view of the role's portlets ... or provide some kind
of "default" role based on the log in.  In other words have the user mapped
to the role with the highest privileges.  Make sense ... or I am rambling?

PS: Sorry about not reading through the email archive for J2, that usually
the first thing I do before posting a question ... but I couldn't find a
link to it off the portals web site.  Does an email archive even exist for
jetspeed 2?

- Frank

-----Original Message-----
From: Randy Watler [mailto:watler@wispertel.net]
Sent: Tuesday, February 01, 2005 11:57 AM
To: Jetspeed Users List
Subject: Re: Default Home Pages


Frank,

There are many "nice" ways to accomplish this with J2 using the Profiler.

Custom home pages per user, group, or role are easily supported. One can
also select different home pages using different profiling rules. Once
you get used to using the profiler, it is fairly powerful and flexible.

In your scenario, I'd suggest placing the "public" home page in
.../pages/_user/guest/default_page.psml. Depending on the profiling rule
you wish to use, you can also place other home pages in
.../pages/_role/*/default_page.psml and/or
.../pages/_group/*/default_page.psml. There are plenty of examples of
profiling in the J2 demo site... default page profiling is treated the
same as any other page as far as the Profiler is concerned.

There is a document in the profiler design-docs that discusses the J2
Profiler and Page Manager functionality. There have also been plenty of
emails on the topic to this list. In the spirit of expanding this email
collection, I'd be happy to help you select a profiling strategy that
will meet your needs. Please provide more detail on how you'd like to
segregate pages on your site by user, roles, and groups and we'll see
how far the Profiler can take you!

Randy



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


Re: Default Home Pages

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

There are many "nice" ways to accomplish this with J2 using the Profiler.

Custom home pages per user, group, or role are easily supported. One can 
also select different home pages using different profiling rules. Once 
you get used to using the profiler, it is fairly powerful and flexible.

In your scenario, I'd suggest placing the "public" home page in 
.../pages/_user/guest/default_page.psml. Depending on the profiling rule 
you wish to use, you can also place other home pages in 
.../pages/_role/*/default_page.psml and/or 
.../pages/_group/*/default_page.psml. There are plenty of examples of 
profiling in the J2 demo site... default page profiling is treated the 
same as any other page as far as the Profiler is concerned.

There is a document in the profiler design-docs that discusses the J2 
Profiler and Page Manager functionality. There have also been plenty of 
emails on the topic to this list. In the spirit of expanding this email 
collection, I'd be happy to help you select a profiling strategy that 
will meet your needs. Please provide more detail on how you'd like to 
segregate pages on your site by user, roles, and groups and we'll see 
how far the Profiler can take you!

Randy

Frank Villarreal wrote:

>Thanks for the response Scott.  Does anyone know if there is currently a way
>to configure jetspeed 2 to use a different subsite (subfolder) or a
>different <default-page> once a user logs in?  In other words, I'd like to
>have a "public" psml default page ... and then route the user to either a
>subsite or a different default-page based on their identity (aka: role,
>user, group, etc) once they've logged in.  So far, I haven't been able to
>figure out a "nice" way to make j2 do this .... it seems that once a user
>logs in, they are simply routed back to the "same" default-page specified in
>the "folder.metadata" file ... but with new authorized tabs ...
>
>- Frank
>
>-----Original Message-----
>From: Scott T. Weaver [mailto:scotts-jetspeed-list@binary-designs.net]
>Sent: Tuesday, February 01, 2005 08:57 AM
>To: Jetspeed Users List
>Subject: Re: Default Home Pages
>
>
>Hi Frank,
>
>Here is an example of both specifying document order and overriding the
>default page (this is defined the folder.metadata).
>
>
><?xml version="1.0" encoding="UTF-8"?>
><folder>
>  <default-page>home.psml</default-page>
>  <document-order>marketing.ds</document-order>
>  <document-order>news.ds</document-order>
>  <document-order>products.ds</document-order>
>  <document-order>tools.ds</document-order>
>  <document-order>training.ds</document-order>
>  <document-order>solidedge_main.psml</document-order>
>  <document-order>solid-edge.link</document-order>
>  <document-order>solid-edge-release-info.link</document-order>
></folder>
>
>
>
>
>
>Frank Villarreal wrote:
>
>  
>
>>Forgot to mention, I'm using Jetspeed 2 ...
>>
>>-----Original Message-----
>>From: Frank Villarreal [mailto:f_villarreal@tetco.com]
>>Sent: Tuesday, February 01, 2005 08:05 AM
>>To: Jetspeed Users List
>>Subject: Default Home Pages
>>
>>
>>There is probably a simple solution for this, buttttt .....
>>
>>I've noticed that under "WEB-INF/pages" there is a "default-page.psml" file
>>that becomes the "home" page for anyone who navigates to "jetspeed/portal"
>>using the default configuration. I've also noticed that "default-page.psml"
>>is not the first page in the portal .... it appears that the portal builds
>>its page links alphabetically if no document order is specified in the
>>"folder.metadata" file in any given folder.   So my first question is this
>>... How/where does jetspeed know that the "default-page.psml" should be
>>rendered first? ... even though it is not the first page in the folder
>>order???
>>
>>I've also noticed that there are subfolder for some security roles using
>>    
>>
>the
>  
>
>>convention "_role/manager, _role/user" etc.  I'm assuming these folders are
>>meant to contain default home pages for users who log in and belong to
>>    
>>
>those
>  
>
>>roles?  Is that correct?  If so, it doesn't seem to be working.  I put a
>>security constraint on the "default-page.psml" file in the root folder to
>>only allow "<roles>guest</roles>" and was hoping somehow jetspeed would
>>"redirect" a user who logs in to an alternate home page in the subfolder
>>with for the appropriate role/user ... no luck.  Is this how it's supposed
>>to work or am I dreaming???
>>
>>Any ideas/hints/ridicules appreciated.  Thanks. :-)
>>
>>- Frank
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>>
>>
>>
>>
>>
>>    
>>
>
>
>--
>"Great minds discuss ideas. Average minds discuss events. Small minds
>discuss people."  - Admiral Hyman Rickover
>
>*******************************************
>*           Scott T. Weaver               *
>*         <we...@apache.org>             *
>*     <http://www.einnovation.com>        *
>* --------------------------------------  *
>*   Apache Jetspeed Enterprise Portal     *
>*     Apache Pluto Portlet Container      *
>*                                         *
>* OpenEdit, Website Content Management    *
>*     <http://www.openedit.org>           *
>*******************************************
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
>  
>

RE: Default Home Pages

Posted by Frank Villarreal <f_...@tetco.com>.
Thanks for the response Scott.  Does anyone know if there is currently a way
to configure jetspeed 2 to use a different subsite (subfolder) or a
different <default-page> once a user logs in?  In other words, I'd like to
have a "public" psml default page ... and then route the user to either a
subsite or a different default-page based on their identity (aka: role,
user, group, etc) once they've logged in.  So far, I haven't been able to
figure out a "nice" way to make j2 do this .... it seems that once a user
logs in, they are simply routed back to the "same" default-page specified in
the "folder.metadata" file ... but with new authorized tabs ...

- Frank

-----Original Message-----
From: Scott T. Weaver [mailto:scotts-jetspeed-list@binary-designs.net]
Sent: Tuesday, February 01, 2005 08:57 AM
To: Jetspeed Users List
Subject: Re: Default Home Pages


Hi Frank,

Here is an example of both specifying document order and overriding the
default page (this is defined the folder.metadata).


<?xml version="1.0" encoding="UTF-8"?>
<folder>
  <default-page>home.psml</default-page>
  <document-order>marketing.ds</document-order>
  <document-order>news.ds</document-order>
  <document-order>products.ds</document-order>
  <document-order>tools.ds</document-order>
  <document-order>training.ds</document-order>
  <document-order>solidedge_main.psml</document-order>
  <document-order>solid-edge.link</document-order>
  <document-order>solid-edge-release-info.link</document-order>
</folder>





Frank Villarreal wrote:

>Forgot to mention, I'm using Jetspeed 2 ...
>
>-----Original Message-----
>From: Frank Villarreal [mailto:f_villarreal@tetco.com]
>Sent: Tuesday, February 01, 2005 08:05 AM
>To: Jetspeed Users List
>Subject: Default Home Pages
>
>
>There is probably a simple solution for this, buttttt .....
>
>I've noticed that under "WEB-INF/pages" there is a "default-page.psml" file
>that becomes the "home" page for anyone who navigates to "jetspeed/portal"
>using the default configuration. I've also noticed that "default-page.psml"
>is not the first page in the portal .... it appears that the portal builds
>its page links alphabetically if no document order is specified in the
>"folder.metadata" file in any given folder.   So my first question is this
>... How/where does jetspeed know that the "default-page.psml" should be
>rendered first? ... even though it is not the first page in the folder
>order???
>
>I've also noticed that there are subfolder for some security roles using
the
>convention "_role/manager, _role/user" etc.  I'm assuming these folders are
>meant to contain default home pages for users who log in and belong to
those
>roles?  Is that correct?  If so, it doesn't seem to be working.  I put a
>security constraint on the "default-page.psml" file in the root folder to
>only allow "<roles>guest</roles>" and was hoping somehow jetspeed would
>"redirect" a user who logs in to an alternate home page in the subfolder
>with for the appropriate role/user ... no luck.  Is this how it's supposed
>to work or am I dreaming???
>
>Any ideas/hints/ridicules appreciated.  Thanks. :-)
>
>- Frank
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
>
>


--
"Great minds discuss ideas. Average minds discuss events. Small minds
discuss people."  - Admiral Hyman Rickover

*******************************************
*           Scott T. Weaver               *
*         <we...@apache.org>             *
*     <http://www.einnovation.com>        *
* --------------------------------------  *
*   Apache Jetspeed Enterprise Portal     *
*     Apache Pluto Portlet Container      *
*                                         *
* OpenEdit, Website Content Management    *
*     <http://www.openedit.org>           *
*******************************************


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



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


Re: Default Home Pages

Posted by "Scott T. Weaver" <sc...@binary-designs.net>.
Hi Frank,

Here is an example of both specifying document order and overriding the 
default page (this is defined the folder.metadata).


<?xml version="1.0" encoding="UTF-8"?>
<folder>
  <default-page>home.psml</default-page>
  <document-order>marketing.ds</document-order>
  <document-order>news.ds</document-order>
  <document-order>products.ds</document-order>
  <document-order>tools.ds</document-order>
  <document-order>training.ds</document-order>
  <document-order>solidedge_main.psml</document-order>
  <document-order>solid-edge.link</document-order> 
  <document-order>solid-edge-release-info.link</document-order> 
</folder>





Frank Villarreal wrote:

>Forgot to mention, I'm using Jetspeed 2 ...
>
>-----Original Message-----
>From: Frank Villarreal [mailto:f_villarreal@tetco.com]
>Sent: Tuesday, February 01, 2005 08:05 AM
>To: Jetspeed Users List
>Subject: Default Home Pages
>
>
>There is probably a simple solution for this, buttttt .....
>
>I've noticed that under "WEB-INF/pages" there is a "default-page.psml" file
>that becomes the "home" page for anyone who navigates to "jetspeed/portal"
>using the default configuration. I've also noticed that "default-page.psml"
>is not the first page in the portal .... it appears that the portal builds
>its page links alphabetically if no document order is specified in the
>"folder.metadata" file in any given folder.   So my first question is this
>... How/where does jetspeed know that the "default-page.psml" should be
>rendered first? ... even though it is not the first page in the folder
>order???
>
>I've also noticed that there are subfolder for some security roles using the
>convention "_role/manager, _role/user" etc.  I'm assuming these folders are
>meant to contain default home pages for users who log in and belong to those
>roles?  Is that correct?  If so, it doesn't seem to be working.  I put a
>security constraint on the "default-page.psml" file in the root folder to
>only allow "<roles>guest</roles>" and was hoping somehow jetspeed would
>"redirect" a user who logs in to an alternate home page in the subfolder
>with for the appropriate role/user ... no luck.  Is this how it's supposed
>to work or am I dreaming???
>
>Any ideas/hints/ridicules appreciated.  Thanks. :-)
>
>- Frank
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
>  
>


-- 
"Great minds discuss ideas. Average minds discuss events. Small minds discuss people."  - Admiral Hyman Rickover

*******************************************
*           Scott T. Weaver               *
*         <we...@apache.org>             *
*     <http://www.einnovation.com>        *
* --------------------------------------  *
*   Apache Jetspeed Enterprise Portal     *
*     Apache Pluto Portlet Container      *
*                                         *
* OpenEdit, Website Content Management    *
*     <http://www.openedit.org>           *
*******************************************


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


RE: Default Home Pages

Posted by Frank Villarreal <f_...@tetco.com>.
Forgot to mention, I'm using Jetspeed 2 ...

-----Original Message-----
From: Frank Villarreal [mailto:f_villarreal@tetco.com]
Sent: Tuesday, February 01, 2005 08:05 AM
To: Jetspeed Users List
Subject: Default Home Pages


There is probably a simple solution for this, buttttt .....

I've noticed that under "WEB-INF/pages" there is a "default-page.psml" file
that becomes the "home" page for anyone who navigates to "jetspeed/portal"
using the default configuration. I've also noticed that "default-page.psml"
is not the first page in the portal .... it appears that the portal builds
its page links alphabetically if no document order is specified in the
"folder.metadata" file in any given folder.   So my first question is this
... How/where does jetspeed know that the "default-page.psml" should be
rendered first? ... even though it is not the first page in the folder
order???

I've also noticed that there are subfolder for some security roles using the
convention "_role/manager, _role/user" etc.  I'm assuming these folders are
meant to contain default home pages for users who log in and belong to those
roles?  Is that correct?  If so, it doesn't seem to be working.  I put a
security constraint on the "default-page.psml" file in the root folder to
only allow "<roles>guest</roles>" and was hoping somehow jetspeed would
"redirect" a user who logs in to an alternate home page in the subfolder
with for the appropriate role/user ... no luck.  Is this how it's supposed
to work or am I dreaming???

Any ideas/hints/ridicules appreciated.  Thanks. :-)

- Frank


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