Class LoginCrowdinJIPTListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<org.exoplatform.services.security.ConversationRegistry,org.exoplatform.services.security.ConversationState>
org.exoplatform.addons.crowdin.LoginCrowdinJIPTListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<org.exoplatform.services.security.ConversationRegistry,org.exoplatform.services.security.ConversationState>

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).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.exoplatform.services.listener.Event<org.exoplatform.services.security.ConversationRegistry,org.exoplatform.services.security.ConversationState> event)
    Method executed when an user logs in

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.exoplatform.services.listener.ListenerBase

    getName
  • Field Details

  • Constructor Details

    • LoginCrowdinJIPTListener

      public LoginCrowdinJIPTListener()
  • Method Details

    • 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
      Throws:
      Exception