On Friday, August 22, 2003, at 08:03 AM, Wolgemuth, Gregory wrote:
Greetings and salutations to all
I'm a summer student working with a team that's doing evaluation of Jetspeed
for use as an information portal system for our company. One of our
requirements is to have strong binding between roles and users in the
portal. To be more specific, each role we create will have a very specific
set of portlets available to it, and only it. This means we'd like for a
user to have their initial set of portlets be set based on their roles.
We've got that functionality working by disabling the new-user template and
building default role PSML.
However, we need this functionality to extend further into the user's
lifespan. Basically, if a user receives a new role, we'd ideally like their
PSML to automatically pick up the PSML of the new role. The solution I tried
to implement was a 'merge' tool, which would at the least enable an admin to
place a reference to role PSML or the role PSML itself into the user PSML.
I've done this with portlet forwards in a menu-like portlet For each role, have a $jsforward to the PSML page Do you need a copy of the PSML page or a reference?
I'm e-mailing this list as my attempts to do that have been ... 'disastrous'
would seem to be a good way to put it!
What I've done to date is: Modify the appropriate velocity templates in the PSML browser to show a 'Merge' option for each PSML file, and also show an interface.
My first attempt to 'Merge' used this algorithim:Well that answers my question.
Open the XML file to be merged from, pull out all the relevant information
(basically, all that lives between the first <meta-info> tagset and the last
</portlets> tag)
Slap all that into the destination PSML file before the last </portlets>
Needless to say, the above simply caused the afflicted user to stop working
- conflict with ID numbers and formatting would be my best guess as to why.
My second attempt to do a merge was much like the first, only it used a
reference with a unique ID number - which almost worked.
Sounds like you want to merge the PSML into a new PSML file.
take a look at JetspeedProfilerService
It already has a mergeRoleProfiles method
It only kicks in when the profile is not found
Perhaps we can find another way to make mergeRoleProfiles run, let me give some thought....
-- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] +01 707 773-4646 +01 707 529 9194
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
