de.uplanet.lucy.server.util
Class LanguagesChangedEvent

java.lang.Object
  extended by de.uplanet.lucy.server.util.LanguagesChangedEvent
All Implemented Interfaces:
IConfigurationEvent, IServerEvent

@Scriptable
public final class LanguagesChangedEvent
extends java.lang.Object
implements IConfigurationEvent

This event occurs if the supported languages have changed.

Version:
$Revision: 70685 $

Constructor Summary
LanguagesChangedEvent(java.lang.String p_strOldDefaultLanguage, java.lang.String[] p_oldLanguages, java.lang.String p_strNewDefaultLanguage, java.lang.String[] p_newLanguages)
           
 
Method Summary
static LanguagesChangedEvent create(java.lang.String p_strOldDefaultLanguage, java.lang.String[] p_oldLanguages, java.lang.String p_strNewDefaultLanguage, java.lang.String[] p_newLanguages)
          A convenience method to create an event if and only if the languages have really changed.
 java.lang.String getNewDefaultLanguage()
           
 java.lang.String[] getNewLanguages()
           
 java.lang.String getOldDefaultLanguage()
           
 java.lang.String[] getOldLanguages()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguagesChangedEvent

@ConstructorProperties(value={"oldDefaultLanguage","oldLanguages","newDefaultLanguage","newLanguages"})
public LanguagesChangedEvent(java.lang.String p_strOldDefaultLanguage,
                                                   java.lang.String[] p_oldLanguages,
                                                   java.lang.String p_strNewDefaultLanguage,
                                                   java.lang.String[] p_newLanguages)
Method Detail

create

public static final LanguagesChangedEvent create(java.lang.String p_strOldDefaultLanguage,
                                                 java.lang.String[] p_oldLanguages,
                                                 java.lang.String p_strNewDefaultLanguage,
                                                 java.lang.String[] p_newLanguages)
A convenience method to create an event if and only if the languages have really changed.

Parameters:
p_strOldDefaultLanguage - The old default language.
p_oldLanguages - The old languages.
p_strNewDefaultLanguage - The new default language.
p_newLanguages - The new languages.
Returns:
An event if the languages have changed, or null otherwise.

getOldDefaultLanguage

public java.lang.String getOldDefaultLanguage()
Returns:
The old default language.

getNewDefaultLanguage

public java.lang.String getNewDefaultLanguage()
Returns:
The new default language.

getOldLanguages

public java.lang.String[] getOldLanguages()
Returns:
A lexicographically sorted array of the old languages.

getNewLanguages

public java.lang.String[] getNewLanguages()
Returns:
A lexicographically sorted array of the new languages.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.