|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkieker.webgui.web.beans.application.GlobalPropertiesBean
@Component @Scope(value="singleton") public final class GlobalPropertiesBean
This class is a singleton scoped Spring
bean containing properties, constants, methods and even some localized texts which are used at various parts in
the application. While some of the properties are loaded directly from the resource bundles, some other are injected via Spring
. This makes sure that most
of the constants could be modified without recompiling the whole application.
If you want to change the values, take a look either at the files in the resources
directory or at the Spring
configuration files.
The class implements the Serializable
interface to make sure that some session scoped beans can use this class. It is furthermore singleton scoped as the
properties are the same for every user. Therefore only one instance of this class is necessary.
As this bean is Spring
managed, it is not recommended to use the constructor or the setter methods.
Constructor Summary | |
---|---|
GlobalPropertiesBean()
Default constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalPropertiesBean()
Method Detail |
---|
public String getMsgAddUser()
public String getMsgModifiedUser()
public String getMsgDeletedUser()
public String getMsgAddUserException()
public String getMsgDeleteUserException()
public String getMsgAccessDatabaseException()
public String getMsgModifyUserException()
public String getLogMsgAnalysisAlreadyStarted()
public String getLogMsgErrorOccured()
public String getLogMsgAnalysisNotStarted()
public String getLogMsgAnalysisAlreadyInstantiated()
public String getLogMsgErrorDuringInitialization()
public String getLogMsgNotInstantiated()
public String getLogMsgStartingAnalysis()
public String getLogMsgStoppingAnalysis()
public String getLogMsgEmergencyShutdown()
public String getLogMsgInstantiatingAnalysis()
public String getLogMsgCleaning()
public void setFacesContextThemeKey(String facesContextThemeKey)
public String getFacesContextThemeKey()
public void setDefaultTheme(String defaultTheme)
public String getDefaultTheme()
public void setAnalysisEditorGridSizeCookieName(String analysisEditorGridSizeCookieName)
public String getAnalysisEditorGridSizeCookieName()
public void setAnalysisEditorGridColorCookieName(String analysisEditorGridColorCookieName)
public String getAnalysisEditorGridColorCookieName()
public void setAnalysisEditorDefaultGridSize(String analysisEditorDefaultGridSize)
public String getAnalysisEditorDefaultGridSize()
public void setAnalysisEditorDefaultGridColor(String analysisEditorDefaultGridColor)
public String getAnalysisEditorDefaultGridColor()
public void setThemeCookieName(String themeCookieName)
public String getThemeCookieName()
public void setAnalysisEditorShowUnitializedComponentsCookieName(String unitializedComponentsCookieName)
public String getAnalysisEditorShowUnitializedComponentsCookieName()
public String getMsgProjectRenamed()
public String getMsgProjectLoadingException()
public String getMsgProjectSaved()
public String getMsgPluginCreationException()
public String getMsgRepositoryCreationException()
public String getMsgLibraryUploaded()
public String getMsgProjectCreated()
public String getMsgProjectSavingException()
public String getMsgProjectNotExistingException()
public String getDefaultViewName()
public String getDefaultViewDescription()
public String getDefaultProjectName()
public String getDefaultUserName()
public String getMsgProjectModified()
public String getMsgLibraryExistingException()
public String getMsgLibraryUploadingException()
public String getMsgProjectDeleted()
public String getMsgProjectUploaded()
public String getMsgProjectCreationException()
public String getMsgProjectAlreadyExistingException()
public String getMsgEnterValidName()
public String getMsgProjectDeleteException()
public String getMsgProjectStillRunningException()
public String getMsgProjectUploadException()
public String getGlobalConfigurationComponentName()
public String getMsgUserAlreadyExisting()
public static void showMessage(javax.faces.application.FacesMessage.Severity severity, String msg)
severity
- The severity of the message.msg
- The message to show.public static void showMessage(javax.faces.application.FacesMessage.Severity severity, String msg, String clientID)
severity
- The severity of the message.msg
- The message to show.clientID
- The client ID. This value can be used to show a message for a specific component.public boolean checkString(Object object)
String
or not. This is necessary due to the fact that the
instanceof-command has not yet been implemented in JSF.
object
- The object to be verified.
public String shortenLongName(String name, int maxChar)
name
- The name to be shortened.maxChar
- The maximal number of characters.
public static Object[] convertObjectsFromParameterMap(String[] parameterNames, Class<?>[] types)
parameterNames
- The name of the parameters within the request parameter map.types
- The actual types of the parameters. The method will try to convert the strings to those types.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |