In the way i've thinked i can select much easier wich portlet to search or
not, just calling a function, and portlets are closed box like that (they
are extended from a base class with search methods).

it worked well with TurbineFactoryService, thanks.

----- Original Message -----
From: "Weaver, Scott" <[EMAIL PROTECTED]>
To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 5:17 PM
Subject: RE: the .xreg files by code


> > i'm doing a search engine for the database so i've thinked that if each
> > portlets searched on his own tables and the 'engine' just puts togheter
> > the
> > results its nice ^^
>
> Why don't you write a service that performs the database search and all
your portlets (and other classes) can interact with it?  That way you can
free your logic from being bound in individual portlets.
>
> scott
>
>
> > -----Original Message-----
> > From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 12, 2002 8:44 AM
> > To: Jetspeed Users List
> > Subject: Re: the .xreg files by code
> >
> > i'm doing a search engine for the database so i've thinked that if each
> > portlets searched on his own tables and the 'engine' just puts togheter
> > the
> > results its nice ^^
> >
> > ----- Original Message -----
> > From: "Weaver, Scott" <[EMAIL PROTECTED]>
> > To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
> > Sent: Friday, July 12, 2002 2:33 PM
> > Subject: RE: the .xreg files by code
> >
> >
> > > Then you may need to use the portlet factory service.
> > >
> > > org.apache.jetspeed.services.PortletFactory
> > >
> > > I'm curious, why do you need to invoke your portlet's method anywhere
> > but
> > within the portlet itself, it's template or within it's associated
action?
> > >
> > > If the logic inside your portlet needs to be used in other places than
> > the
> > ones I mentioned above, you may want to look into breaking that logic
out
> > into another class.  Your logic might be best served from a pull tool or
a
> > service.
> > >
> > > Pull tools:
> > > http://jakarta.apache.org/turbine/turbine-2/pullmodel.html
> > >
> > > Service Framework:
> > > http://jakarta.apache.org/turbine/turbine-2/services.html
> > >
> > >
> > >
> > > Scott
> > >
> > > > -----Original Message-----
> > > > From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, July 12, 2002 3:24 AM
> > > > To: Jetspeed Users List
> > > > Subject: Re: the .xreg files by code
> > > >
> > > > mmh, i've seen from the documentation that from BaseRegistryEntry i
> > can
> > > > modify some information, but can it be casted to my portlet type or
> > > > something like that? so i can call my portlet's method
> > > >
> > > > ----- Original Message -----
> > > > From: "Weaver, Scott" <[EMAIL PROTECTED]>
> > > > To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
> > > > Sent: Thursday, July 11, 2002 6:36 PM
> > > > Subject: RE: the .xreg files by code
> > > >
> > > >
> > > > > Registry.getEntry(Registry.PORTLET,"Portlet Name");
> > > > >
> > > > > This should return the BaseRegistryEntry of the named portlet.
> > > > >
> > > > > Scott
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Thursday, July 11, 2002 10:56 AM
> > > > > > To: Jetspeed Users List
> > > > > > Subject: Re: the .xreg files by code
> > > > > >
> > > > > > oh, can you explain what you have done better please? i am
trying
> > to
> > > > load
> > > > > > a
> > > > > > portlet, knowing the name only at runtime an to call a method
> > inside
> > > > it.
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Wimmer, Matthias" <[EMAIL PROTECTED]>
> > > > > > To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
> > > > > > Sent: Thursday, July 11, 2002 4:49 PM
> > > > > > Subject: RE: the .xreg files by code
> > > > > >
> > > > > >
> > > > > > > Ok, that sounds quite simple. I have a similar question:
> > > > > > >
> > > > > > > I succeeded in creating a portlet instance from of the
registry
> > > > > > information:
> > > > > > >
> > > > > > >    Entry   theEntry  = new Entry();
> > > > > > >    theEntry.setParent( "MyPortlet" );
> > > > > > >    Portlet thePortlet = PortletFactory.getPortlet( theEntry );
> > > > > > >
> > > > > > >
> > > > > > > But I would rather like to create a portlet instance with a
> > user's
> > > > PSML
> > > > > > > information. How can this be done?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I am obliged to any response.
> > > > > > >
> > > > > > > Matthias Wimmer
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Weaver, Scott [mailto:[EMAIL PROTECTED]]
> > > > > > > > Sent: Thursday, July 11, 2002 10:22 AM
> > > > > > > > To: 'Jetspeed Users List'
> > > > > > > > Subject: RE: the .xreg files by code
> > > > > > > >
> > > > > > > >
> > > > > > > > org.apache.jetspeed.services.Registry
> > > > > > > >
> > > > > > > > Registry.get(Registry.PORTLET)
> > > > > > > >
> > > > > > > > Scott
> > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
> > > > > > > > > Sent: Thursday, July 11, 2002 8:52 AM
> > > > > > > > > To: Jetspeed Users List
> > > > > > > > > Subject: the .xreg files by code
> > > > > > > > >
> > > > > > > > > Hi, i'm trying to get (by code, obviously) the list of the
> > > > > > > > portlets and
> > > > > > > > > their information (those ones in the .xreg files, included
> > > > portlet
> > > > > > > > > parameters) anyone can help?
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > To unsubscribe, e-mail:
> > > > > > <mailto:[EMAIL PROTECTED]>
> > > > > > > For additional commands, e-mail:
> > > > > > <mailto:[EMAIL PROTECTED]>
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > To unsubscribe, e-mail:   <mailto:jetspeed-user-
> > > > > > [EMAIL PROTECTED]>
> > > > > > For additional commands, e-mail: <mailto:jetspeed-user-
> > > > > > [EMAIL PROTECTED]>
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:   <mailto:jetspeed-user-
> > > > [EMAIL PROTECTED]>
> > > > For additional commands, e-mail: <mailto:jetspeed-user-
> > > > [EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:jetspeed-user-
> > [EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:jetspeed-user-
> > [EMAIL PROTECTED]>
>


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

Reply via email to