By the way, if you want to enable the config portlet mode for your portlet 
application, you need to add the following declaration in portlet.xml of you PA.

  <custom-portlet-mode>
    <description>a Custom Config Mode</description>
    <portlet-mode>config</portlet-mode>
  </custom-portlet-mode>

If you set `supported.portletmode.autoswitch.config=true' only, portlets of 
`demo' PA only will show the config custom mode button because the `demo' PA is 
the only one having the above declaration in portlet.xml by default.

Regards,

Woonsan


--- On Mon, 6/23/08, Woonsan Ko <[EMAIL PROTECTED]> wrote:

> From: Woonsan Ko <[EMAIL PROTECTED]>
> Subject: Re: Displaying additional portlets to logged in users
> To: "Jetspeed Users List" <jetspeed-user@portals.apache.org>
> Date: Monday, June 23, 2008, 9:31 AM
> Hi Serkan,
> 
> You can turn on `config' custom mode for administrators
> by setting
> `supported.portletmode.autoswitch.config=true' in the
> `WEB-INF/conf/jetspeed.properties' file. If you turn on
> this option and log on by admin, then you can see a config
> button for each portlet window.
> The `config' mode enables admins to edit constraints on
> a fragment of a page.
> 
> Regards,
> 
> Woonsan
> 
> 
> --- On Sat, 6/21/08, Serkan Camurcuoglu
> <[EMAIL PROTECTED]> wrote:
> 
> > From: Serkan Camurcuoglu <[EMAIL PROTECTED]>
> > Subject: Re: Displaying additional portlets to logged
> in users
> > To: "Jetspeed Users List"
> <jetspeed-user@portals.apache.org>
> > Date: Saturday, June 21, 2008, 5:12 AM
> > Thanks Vivek, this document was the definitive guide
> :)
> > 
> > I've solved the issue by inserting two rows into
> the
> > FRAGMENT_CONSTRAINT 
> > table:
> > 
> > insert into FRAGMENT_CONSTRAINT values (1, 721, 0,
> NULL,
> > 'guest', NULL, 
> > NULL);
> > insert into FRAGMENT_CONSTRAINT values (2, 721, 1,
> NULL,
> > 'user', NULL, 
> > 'view');
> > 
> > the first row denies the guests while the second
> allows the
> > user role 
> > for the fragment with id 721. However, I couldn't
> find
> > any other way of 
> > doing this other than manually inserting into the
> database,
> > maybe 
> > there's a way of doing it using the administrative
> > portlets but I 
> > couldn't find..
> > 
> > 
> > 
> > Vivek Kumar wrote:
> > > Have you tried using Jetspeed security
> constraints?.
> > >
> > > I think constraints will help. Learn more about
> > constraints here
> > >
> > >
> >
> http://portals.apache.org/jetspeed-2/guides/guide-security-declarative-psml.html
> > >
> > > On Fri, Jun 20, 2008 at 6:14 PM, Serkan
> Camurcuoglu
> > <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > >   
> > >> Hi all,
> > >> I want to have some portlets on my page such
> that
> > they are only seen by
> > >> users but not guests. For example, when a
> guest is
> > browsing a page, he sees
> > >> 4 portlets, but after he logs in, he now sees
> 6
> > portlets on the same page
> > >> (I'm not using user-specific pages).
> I've
> > tried using
> > >> security-constraint-ref in my
> jetspeed-portlet.xml
> > but it doesn't seem to
> > >> work. Also I don't understand how the
> > permissions administrative portlet
> > >> works, because there's no permission
> defined
> > for guests to view any portlet,
> > >> but they can already see most portlets.
> I'm a
> > little bit confused about
> > >> permissions, can anybody clarify these?
> > >>
> > >> Regards,
> > >>
> > >> SerkanC
> > >>
> > >>
> > >>
> >
> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >> For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >>
> > >>
> > >>     
> > >
> > >
> > >   
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to