Package jmri.server.web.app
Class WebAppManager
- java.lang.Object
-
- jmri.beans.UnboundBean
-
- jmri.beans.Bean
-
- jmri.util.prefs.AbstractPreferencesManager
-
- jmri.server.web.app.WebAppManager
-
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
,JmriServiceProviderInterface
,PreferencesManager
public class WebAppManager extends AbstractPreferencesManager
Manager for the Angular JMRI Web Application.
-
-
Field Summary
-
Fields inherited from class jmri.beans.Bean
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description WebAppManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAngularDependencies(Profile profile, java.util.Locale locale)
java.lang.String
getAngularRoutes(Profile profile, java.util.Locale locale)
java.lang.String
getAngularSources(Profile profile, java.util.Locale locale)
java.lang.String
getHelpMenuItems(Profile profile, java.util.Locale locale)
java.lang.String
getNavigation(Profile profile, java.util.Locale locale)
java.util.Set<java.net.URI>
getPreloadedTranslations(Profile profile, java.util.Locale locale)
java.lang.String
getScriptTags(Profile profile)
java.lang.String
getStyleTags(Profile profile)
java.lang.String
getUserMenuItems(Profile profile, java.util.Locale locale)
void
initialize(Profile profile)
Initialize the PreferencesManager with preferences associated with the provided Profile.void
savePreferences(Profile profile)
Save the preferences that this provider manages for the provided Profile.-
Methods inherited from class jmri.util.prefs.AbstractPreferencesManager
addInitializationException, getInitializationExceptions, getProvides, getRequires, isInitialized, isInitializedWithExceptions, isInitializing, requireAllOther, requiresNoInitializedWithExceptions, requiresNoInitializedWithExceptions, setInitialized, setInitializing
-
Methods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
-
-
-
Constructor Detail
-
WebAppManager
public WebAppManager()
-
-
Method Detail
-
initialize
public void initialize(Profile profile) throws InitializationException
Description copied from interface:PreferencesManager
Initialize the PreferencesManager with preferences associated with the provided Profile.Implementing classes should throw an InitializationException with a user readable localized message, since it most likely be displayed to the user. Implementing classes will still want to ensure that
PreferencesManager.isInitialized(jmri.profile.Profile)
orPreferencesManager.isInitializedWithExceptions(jmri.profile.Profile)
return true if throwing an InitializationException to ensure that the provider is not repeatedly initialized.- Parameters:
profile
- the configuration profile used for this initialization; may be null to initialize for this user regardless of profile- Throws:
InitializationException
- if the user needs to be notified of an issue that prevents regular use of the application
-
savePreferences
public void savePreferences(Profile profile)
Description copied from interface:PreferencesManager
Save the preferences that this provider manages for the provided Profile.- Parameters:
profile
- the profile associated with the preferences to save; may be null to save preferences that apply to the current user regardless of profile
-
getScriptTags
public java.lang.String getScriptTags(Profile profile)
-
getStyleTags
public java.lang.String getStyleTags(Profile profile)
-
getNavigation
public java.lang.String getNavigation(Profile profile, java.util.Locale locale) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getHelpMenuItems
public java.lang.String getHelpMenuItems(Profile profile, java.util.Locale locale)
-
getUserMenuItems
public java.lang.String getUserMenuItems(Profile profile, java.util.Locale locale)
-
getAngularDependencies
public java.lang.String getAngularDependencies(Profile profile, java.util.Locale locale)
-
getAngularRoutes
public java.lang.String getAngularRoutes(Profile profile, java.util.Locale locale)
-
getAngularSources
public java.lang.String getAngularSources(Profile profile, java.util.Locale locale)
-
getPreloadedTranslations
public java.util.Set<java.net.URI> getPreloadedTranslations(Profile profile, java.util.Locale locale)
-
-