Class LoginCrowdinJIPTListener

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin

    public class LoginCrowdinJIPTListener
    extends org.exoplatform.services.listener.Listener<org.exoplatform.services.security.ConversationRegistry,​org.exoplatform.services.security.ConversationState>
    This listener is executed each time an user logs in. It reset the user language to the pseudo-language defined in Crowdin settings for live translation. This language is passed as a system property (crowdin.jipt).
    • Constructor Detail

      • LoginCrowdinJIPTListener

        public LoginCrowdinJIPTListener()
    • Method Detail

      • onEvent

        public void onEvent​(org.exoplatform.services.listener.Event<org.exoplatform.services.security.ConversationRegistry,​org.exoplatform.services.security.ConversationState> event)
                     throws Exception
        Method executed when an user logs in
        Specified by:
        onEvent in class org.exoplatform.services.listener.Listener<org.exoplatform.services.security.ConversationRegistry,​org.exoplatform.services.security.ConversationState>
        Throws:
        Exception