You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by SriniPitta <sr...@gmail.com> on 2010/11/17 23:46:48 UTC

Extending existing jetspeed login portlet functionality

Hi,

If the user is not registered in jetspeed database I want to perform an
additional functionality and create the user in jetspeed portal with the
provided username and password. 

for example, if 'user A' is registered in jetspeed, 'user A' should be
allowed to login into Portal. If 'user B' is not registered and if 'user B'
attempts to login into portal, i need to know that 'user B' does not exist
in portal and need to perform an additional functionality and finally should
create the 'user B' in portal database.

As i see that 'j2-admin::LoginPortlet' is handling the jetspeed default
login functionality how can i tailor this to suit my requirement. Can i have
a filter so that it invokes my filter and checks the user existence in
jetspeed database ? If yes, please do let me know how i could add this
filter before it invokes the default login portlet.

Thanks,
Srini.
-- 
View this message in context: http://old.nabble.com/Extending-existing-jetspeed-login-portlet-functionality-tp30239155p30239155.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Extending existing jetspeed login portlet functionality

Posted by SriniPitta <sr...@gmail.com>.
David,

Thanks for your reply. Can you please elaborate your answer. I could create
the user in jetspeed using my own portlet and invoking PortalAdministration.
However, I would like to check the validate the user existence by myself
before the portal validates the login. I think this could be done by
implement valves. In separate thread, i am working with Ron on valves but
still i have few questions around working with valves. Please kindly look
into this thread. 

http://old.nabble.com/session-listener-not-working-td30239157.html

====================
 PortalAdministration pam = (PortalAdministration)
portletContext.getAttribute(CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
			UserManager usermgr = (UserManager)
portletContext.getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
                                      usermgr.addUser(.....)
======================

Thanks for your time again.

Regards,
Srini.


David Taylor-23 wrote:
> 
> On Wed, Nov 17, 2010 at 2:46 PM, SriniPitta <sr...@gmail.com>
> wrote:
>>
>> Hi,
>>
>> If the user is not registered in jetspeed database I want to perform an
>> additional functionality and create the user in jetspeed portal with the
>> provided username and password.
>>
> Have you had a look at the User Registration portlet - it should do
> what you need
> 
> 
>> for example, if 'user A' is registered in jetspeed, 'user A' should be
>> allowed to login into Portal. If 'user B' is not registered and if 'user
>> B'
>> attempts to login into portal, i need to know that 'user B' does not
>> exist
>> in portal and need to perform an additional functionality and finally
>> should
>> create the 'user B' in portal database.
>>
>> As i see that 'j2-admin::LoginPortlet' is handling the jetspeed default
>> login functionality how can i tailor this to suit my requirement. Can i
>> have
>> a filter so that it invokes my filter and checks the user existence in
>> jetspeed database ? If yes, please do let me know how i could add this
>> filter before it invokes the default login portlet.
>>
>> Thanks,
>> Srini.
>> --
>> View this message in context:
>> http://old.nabble.com/Extending-existing-jetspeed-login-portlet-functionality-tp30239155p30239155.html
>> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
> 
> 
> 
> -- 
> David
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Extending-existing-jetspeed-login-portlet-functionality-tp30239155p30279802.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Extending existing jetspeed login portlet functionality

Posted by David Taylor <da...@gmail.com>.
On Wed, Nov 17, 2010 at 2:46 PM, SriniPitta <sr...@gmail.com> wrote:
>
> Hi,
>
> If the user is not registered in jetspeed database I want to perform an
> additional functionality and create the user in jetspeed portal with the
> provided username and password.
>
Have you had a look at the User Registration portlet - it should do
what you need


> for example, if 'user A' is registered in jetspeed, 'user A' should be
> allowed to login into Portal. If 'user B' is not registered and if 'user B'
> attempts to login into portal, i need to know that 'user B' does not exist
> in portal and need to perform an additional functionality and finally should
> create the 'user B' in portal database.
>
> As i see that 'j2-admin::LoginPortlet' is handling the jetspeed default
> login functionality how can i tailor this to suit my requirement. Can i have
> a filter so that it invokes my filter and checks the user existence in
> jetspeed database ? If yes, please do let me know how i could add this
> filter before it invokes the default login portlet.
>
> Thanks,
> Srini.
> --
> View this message in context: http://old.nabble.com/Extending-existing-jetspeed-login-portlet-functionality-tp30239155p30239155.html
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>



-- 
David

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org