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
FieldsFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(org.exoplatform.services.listener.Event<org.exoplatform.services.security.ConversationRegistry, org.exoplatform.services.security.ConversationState> event) Method executed when an user logs inMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
CROWDIN_JIPT_SYSTEM_PROPERTY_NAME
- See Also:
-
-
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 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
-