You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Guy Katz <gk...@allot.com> on 2007/08/20 16:00:52 UTC

integrating roller user management with a portal user management

Hi all;

I want to integrate roller inside a portal where user management is done
by the portal.

 

The user registration code resides in the portal such that when a user
decides to register for the portal, a new user is created for it both in
the user DB in the portal and then in roller as well.

 

Is there a nice way to integrate with roller to achieve this? I can
always just do SQL to the DB but I'd rather use some kind of a roller
mechanism or classes. I can probably have access to Roller's servlet
context from my portal application (deployed on the same tomcat) by
configuring roller 'crossContext=true' in tomcat.

 

Are there any objects (such as user manager) in the roller servlet
context that I can retrieve and use in order to trigger a 'new user'
command? 

What are the integration methods that are available as an option in such
a situation?

Thanks in advance.

 

 

 

 


RE: integrating roller user management with a portal user management

Posted by Guy Katz <gk...@allot.com>.
Hi;
Small note:
It would be great to add the ability to state the theme for the weblog
through the AAPP.
There is a hard coded default in the RollerWeblogHandler class(private
static final String DEFAULT_THEME = "basic";) but my roller installation
does not have the basic theme....
Also, this could be useful as a server wide configuration...
Thanks.

-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com] 
Sent: Thursday, August 23, 2007 4:10 PM
To: user@roller.apache.org
Subject: Re: integrating roller user management with a portal user
management

On 8/23/07, Guy Katz <gk...@allot.com> wrote:
> RAP was exactly what I needed.
> Took me a while to get the hang of dealing with it but once I got it,
it
> was easy (With the help of the self-marshaling objects in the SDK).
>
> The documentation states that it is not to be used in production. Is
> this only for security reasons?

Originally, we marked it as experimental because it was loosely based
on Atom protocol and Atom protocol was not final.

Personally, I would like to see RAP rewritten so that it conforms to
Atom protocol.

> I can add a filter to roller to allow only the local machine to send
the
> XML as my roller and my portal will reside on the same tomcat. Do you
> think its sufficient?

That sounds like a good idea. If you are going to run RAP on separate
machine, I'd recommend using HTTPS so that passwords are not sent in
the clear.

- Dave


> -----Original Message-----
> From: Dave [mailto:snoopdave@gmail.com]
> Sent: Monday, August 20, 2007 5:22 PM
> To: user@roller.apache.org
> Subject: Re: integrating roller user management with a portal user
> management
>
> On 8/20/07, Guy Katz <gk...@allot.com> wrote:
> > I want to integrate roller inside a portal where user management is
> done by the portal.
> >
> > The user registration code resides in the portal such that when a
user
> > decides to register for the portal, a new user is created for it
both
> in
> > the user DB in the portal and then in roller as well.
> >
> > Is there a nice way to integrate with roller to achieve this? I can
> > always just do SQL to the DB but I'd rather use some kind of a
roller
> > mechanism or classes. I can probably have access to Roller's servlet
> > context from my portal application (deployed on the same tomcat) by
> > configuring roller 'crossContext=true' in tomcat.
> >
> > Are there any objects (such as user manager) in the roller servlet
> > context that I can retrieve and use in order to trigger a 'new user'
> > command?
> >
> > What are the integration methods that are available as an option in
> such
> > a situation?
>
> Let's see. You could:
>
> - Use the Roller Admin Protocol (RAP) to provision a new Roller user
> everytime one is added to the Portal. http://tinyurl.com/3amanz
>
> - Write a new JSP page for Roller that will respond to (authenticated)
> requests to create new users in Roller. The JSP page would call the
> UserManager.addUser() method. Then call that page from your Portal
> server.
>
> - Wait for Roller 4.1's new extensible user management, then plugin
> your own user manager. http://tinyurl.com/28br55
>
> Hope that helps.
>
> - Dave
>

Re: integrating roller user management with a portal user management

Posted by Dave <sn...@gmail.com>.
On 8/23/07, Guy Katz <gk...@allot.com> wrote:
> RAP was exactly what I needed.
> Took me a while to get the hang of dealing with it but once I got it, it
> was easy (With the help of the self-marshaling objects in the SDK).
>
> The documentation states that it is not to be used in production. Is
> this only for security reasons?

Originally, we marked it as experimental because it was loosely based
on Atom protocol and Atom protocol was not final.

Personally, I would like to see RAP rewritten so that it conforms to
Atom protocol.

> I can add a filter to roller to allow only the local machine to send the
> XML as my roller and my portal will reside on the same tomcat. Do you
> think its sufficient?

That sounds like a good idea. If you are going to run RAP on separate
machine, I'd recommend using HTTPS so that passwords are not sent in
the clear.

- Dave


> -----Original Message-----
> From: Dave [mailto:snoopdave@gmail.com]
> Sent: Monday, August 20, 2007 5:22 PM
> To: user@roller.apache.org
> Subject: Re: integrating roller user management with a portal user
> management
>
> On 8/20/07, Guy Katz <gk...@allot.com> wrote:
> > I want to integrate roller inside a portal where user management is
> done by the portal.
> >
> > The user registration code resides in the portal such that when a user
> > decides to register for the portal, a new user is created for it both
> in
> > the user DB in the portal and then in roller as well.
> >
> > Is there a nice way to integrate with roller to achieve this? I can
> > always just do SQL to the DB but I'd rather use some kind of a roller
> > mechanism or classes. I can probably have access to Roller's servlet
> > context from my portal application (deployed on the same tomcat) by
> > configuring roller 'crossContext=true' in tomcat.
> >
> > Are there any objects (such as user manager) in the roller servlet
> > context that I can retrieve and use in order to trigger a 'new user'
> > command?
> >
> > What are the integration methods that are available as an option in
> such
> > a situation?
>
> Let's see. You could:
>
> - Use the Roller Admin Protocol (RAP) to provision a new Roller user
> everytime one is added to the Portal. http://tinyurl.com/3amanz
>
> - Write a new JSP page for Roller that will respond to (authenticated)
> requests to create new users in Roller. The JSP page would call the
> UserManager.addUser() method. Then call that page from your Portal
> server.
>
> - Wait for Roller 4.1's new extensible user management, then plugin
> your own user manager. http://tinyurl.com/28br55
>
> Hope that helps.
>
> - Dave
>

RE: integrating roller user management with a portal user management

Posted by Guy Katz <gk...@allot.com>.
Thanks;
RAP was exactly what I needed.
Took me a while to get the hang of dealing with it but once I got it, it
was easy (With the help of the self-marshaling objects in the SDK).

The documentation states that it is not to be used in production. Is
this only for security reasons?
I can add a filter to roller to allow only the local machine to send the
XML as my roller and my portal will reside on the same tomcat. Do you
think its sufficient?

Thanks.


-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com] 
Sent: Monday, August 20, 2007 5:22 PM
To: user@roller.apache.org
Subject: Re: integrating roller user management with a portal user
management

On 8/20/07, Guy Katz <gk...@allot.com> wrote:
> I want to integrate roller inside a portal where user management is
done
> by the portal.
>
> The user registration code resides in the portal such that when a user
> decides to register for the portal, a new user is created for it both
in
> the user DB in the portal and then in roller as well.
>
> Is there a nice way to integrate with roller to achieve this? I can
> always just do SQL to the DB but I'd rather use some kind of a roller
> mechanism or classes. I can probably have access to Roller's servlet
> context from my portal application (deployed on the same tomcat) by
> configuring roller 'crossContext=true' in tomcat.
>
> Are there any objects (such as user manager) in the roller servlet
> context that I can retrieve and use in order to trigger a 'new user'
> command?
>
> What are the integration methods that are available as an option in
such
> a situation?

Let's see. You could:

- Use the Roller Admin Protocol (RAP) to provision a new Roller user
everytime one is added to the Portal. http://tinyurl.com/3amanz

- Write a new JSP page for Roller that will respond to (authenticated)
requests to create new users in Roller. The JSP page would call the
UserManager.addUser() method. Then call that page from your Portal
server.

- Wait for Roller 4.1's new extensible user management, then plugin
your own user manager. http://tinyurl.com/28br55

Hope that helps.

- Dave

Re: integrating roller user management with a portal user management

Posted by Dave <sn...@gmail.com>.
On 8/20/07, Guy Katz <gk...@allot.com> wrote:
> I want to integrate roller inside a portal where user management is done
> by the portal.
>
> The user registration code resides in the portal such that when a user
> decides to register for the portal, a new user is created for it both in
> the user DB in the portal and then in roller as well.
>
> Is there a nice way to integrate with roller to achieve this? I can
> always just do SQL to the DB but I'd rather use some kind of a roller
> mechanism or classes. I can probably have access to Roller's servlet
> context from my portal application (deployed on the same tomcat) by
> configuring roller 'crossContext=true' in tomcat.
>
> Are there any objects (such as user manager) in the roller servlet
> context that I can retrieve and use in order to trigger a 'new user'
> command?
>
> What are the integration methods that are available as an option in such
> a situation?

Let's see. You could:

- Use the Roller Admin Protocol (RAP) to provision a new Roller user
everytime one is added to the Portal. http://tinyurl.com/3amanz

- Write a new JSP page for Roller that will respond to (authenticated)
requests to create new users in Roller. The JSP page would call the
UserManager.addUser() method. Then call that page from your Portal
server.

- Wait for Roller 4.1's new extensible user management, then plugin
your own user manager. http://tinyurl.com/28br55

Hope that helps.

- Dave