abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yogesh Mujumdar" <yogesh.mujum...@gmail.com>
Subject Re: get all extension elements
Date Sat, 06 Jan 2007 19:32:00 GMT
On 1/7/07, Garrett Rooney <rooneg@electricjellyfish.net> wrote:
>
> On 1/6/07, Yogesh Mujumdar <yogesh.mujumdar@gmail.com> wrote:
> > is there any way to get all the exension elements from an entry and
> handle
> > each one of them one by one. I read the extension factory way but i am
> > looking at something like :
> >
> > List allextns = getallextensions(entry);
> >
> > for(i = 0;i < list.size(); i++) {
> >  if list(i) is extension "foo" {
> >      dooFoo()
> >  }
> >  else if list(i) is extension "bar" {
> >     doBar();
> >  }
> >  else if .....
> > ......
> > .....
> > }
>
> How about List<Element> exts = entry.getExtensions(); ?


Oh! My mistake. Dint notice it. Thanks!

> Also, how do i retain all the extensions the client sends at the server
> > side?
>
> Can you elaborate on what you're talking about here?


Even this is solved now! Basically, a client may add any kind of extension
to the entry. The server needs to preserve it apart from the standard
elements.

-garrett
>



-- 
regards/Yogesh

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message