liferay event listener

i have some hard task, i need to change some part of my project using jboss portal 2.7.2 into liferay. Ofc less change better but all jboss portal must disappear. I need 2 replace classes below. So my question is how using liferay portal implements(or not(if already exist)) listener which will know when someone is trying 2 log in. Make login possible without reloading etc. Ofc it was nice if there was some pro eventlistener in liferay which can recognise other events not only logging but i will be glad for all help. 4 the rest of this class will be nice if someone know replacment 4 them in liferay.

import org.jboss.portal.api.event.PortalEvent;
import org.jboss.portal.api.event.PortalEventContext;
import org.jboss.portal.api.event.PortalEventListener;
import org.jboss.portal.api.session.PortalSession;
import org.jboss.portal.api.user.event.UserAuthenticationEvent;
import org.jboss.portal.identity.IdentityException;
import org.jboss.portal.identity.NoSuchUserException;
import org.jboss.portal.identity.User;
import org.jboss.portal.identity.UserModule;
import org.jboss.portal.identity.UserProfileModule; 


Liferay has similar approache. Create a Hook and add properties like

With the properties you can specificy wich class schould be call by the portal events:

with the same approche you can listen to creating/changes/removes of entities:

Liferay does allow adding handlers to login events. More information can be found @

Need Your Help

Angular 2 routing with ASP .Net Core (non-mvc) angular

I'm trying to set up routing with .net core and Angular 2 but the routes do not resolve because they are resolved by the server.

XSLT: define node id

xml xslt

I want to output some nodes. And some of them are defined as target nodes. Some are source nodes.