Package org.exoplatform.addons.crowdin
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
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 StringCROWDIN_JIPT_SYSTEM_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description LoginCrowdinJIPTListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonEvent(org.exoplatform.services.listener.Event<org.exoplatform.services.security.ConversationRegistry,org.exoplatform.services.security.ConversationState> event)Method executed when an user logs in
-
-
-
Field Detail
-
CROWDIN_JIPT_SYSTEM_PROPERTY_NAME
public static final String CROWDIN_JIPT_SYSTEM_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
onEvent
public void onEvent(org.exoplatform.services.listener.Event<org.exoplatform.services.security.ConversationRegistry,org.exoplatform.services.security.ConversationState> event) throws ExceptionMethod executed when an user logs in- Specified by:
onEventin classorg.exoplatform.services.listener.Listener<org.exoplatform.services.security.ConversationRegistry,org.exoplatform.services.security.ConversationState>- Throws:
Exception
-
-