public class GlobalInfo extends java.lang.Object implements LastSelectedFolderReminder
Application.getGlobalInfo()
.Application.getGlobalInfo()
Modifier and Type | Class and Description |
---|---|
static class |
GlobalInfo.DeviceSystemExecutionMode
The Enumeration of possible ExecutionModes.
|
static class |
GlobalInfo.EmbeddedSystemAgentVisualisation
The Enumeration EmbeddedSystemAgentVisualisation indicates
if and how visualisations are to be displayed in case that
the
GlobalInfo.ExecutionMode is set to GlobalInfo.ExecutionMode.DEVICE_SYSTEM
or embedded system agent respectively. |
static class |
GlobalInfo.ExecutionEnvironment
The Enumeration that contains the descriptors of the ExecutionEnvironment.
|
static class |
GlobalInfo.ExecutionMode
The Enumeration of possible ExecutionModes.
|
static class |
GlobalInfo.MtpProtocol
The Enumeration MtpProtocol describes the usable protocols
for the message exchange between agent platforms/container
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAUL_LOOK_AND_FEEL_CLASS |
static java.lang.String |
DEFAULT_AWB_PROJECT_REPOSITORY |
static java.lang.String |
DEFAULT_OIDC_ISSUER_URI |
Constructor and Description |
---|
GlobalInfo()
Constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addEnvironmentType(EnvironmentType envType)
This method can be used in order to add a tailored environment type
(assume for example a 3D-environment model)
|
java.awt.Color |
ColorMenuHighLight()
Due this method the color for menu highlighting an be get
|
void |
doSaveConfiguration()
Persist (saves) the current configuration by saving the preferences.
|
java.lang.String |
getApplicationTitle()
Returns the title/name of the application
|
java.lang.String |
getAppLookAndFeelClassName()
This method will return the current Look and Feel (LnF) for Java Swing.
|
java.lang.String |
getBenchExecOn()
Here the reminder value can be get, which stores the computer/host name on which Agent.GUI
was executed the last time (evaluated due:
InetAddress.getLocalHost().getCanonicalHostName()) . |
java.lang.Float |
getBenchValue()
Returns the benchmark value of the current execution of Agent.GUI that
will be measured at the initial program execution (if required)
|
boolean |
getBooleanFromConfiguration(java.lang.String key,
boolean defaultValue) |
BundleProperties |
getBundleProperties()
Returns the bundle properties that are in fact eclipse preferences.
|
BundleProperties |
getBundleProperties(boolean isSetPreferencesToGlobal)
Returns the bundle properties that are in fact eclipse preferences.
|
byte[] |
getByteArryFromConfiguration(java.lang.String key,
byte[] defaultValue) |
java.lang.String |
getDefaultProjectsDirectory()
Returns the default projects directory.
|
java.util.Vector<DeviceAgentDescription> |
getDeviceServiceAgents()
Returns the device service agents as Vector.
|
GlobalInfo.EmbeddedSystemAgentVisualisation |
getDeviceServiceAgentVisualisation()
Gets the device service agent visualisation.
|
GlobalInfo.DeviceSystemExecutionMode |
getDeviceServiceExecutionMode()
Gets the device service execution mode.
|
java.lang.String |
getDeviceServiceProjectFolder()
Gets the device service project folder.
|
java.lang.String |
getDeviceServiceSetupSelected()
Gets the device service setup selected.
|
double |
getDoubleFromConfiguration(java.lang.String key,
double defaultValue) |
java.io.File |
getEclipseLauncher()
Returns the eclipse launcher file.
|
GlobalInfo.ExecutionEnvironment |
getExecutionEnvironment()
This method can be used in order to evaluate how Agent.GUI is currently executed
|
GlobalInfo.ExecutionMode |
getExecutionMode()
Returns the execution mode from configuration (e.g.
|
java.lang.String |
getExecutionModeDescription()
Gets the execution mode description of the current
GlobalInfo.ExecutionMode . |
java.lang.String |
getExecutionModeDescription(GlobalInfo.ExecutionMode executionMode)
Returns the execution mode description.
|
java.lang.String |
getFileDictionary(boolean base64,
boolean absolute)
This method can be use in order to get the path to one of the dictionary files (Base64: '*.bin' | CSV-version: '*.csv').
|
java.lang.String |
getFileEndProjectZip()
This method returns the file suffix for Agent.GUI project files
('agui'), which are used for the project exchange within the application
|
java.lang.String |
getFileManagerDownloadPath(boolean forceDirectoryCreation)
This method returns the folder, where download files, coming from an applications (server.client)
can be stored locally.
|
java.lang.String |
getFileManagerServerPath(boolean forceDirectoryCreation)
Defines the local root directory that is used by the file.manager to provide file content.
|
java.lang.String |
getFileNameProject()
Returns the file name of the xml-file, which contains the project configuration (file: 'agentgui.xml')
|
java.lang.String |
getFilenameProjectUserObjectBinFile()
Returns the file name of the binary file, which contains the serializable user object of the Project(file: 'agentgui.bin')
|
java.lang.String |
getFileNameProjectUserObjectXmlFile()
Returns the file name of the XML file that contains the user object of a Project(file: 'agentguiUserObject.xml')
|
java.lang.String |
getFileRunnableJar()
This method can be used in order to get the applications executable
jar-file that is in fact the equinox launcher.
|
java.lang.String |
getFileRunnableJar(java.lang.String installationPath,
java.util.ArrayList<java.lang.String> statusMessageList)
This method can be used in order to get the applications executable jar-file that is in fact the equinox launcher.
|
float |
getFloatFromConfiguration(java.lang.String key,
float defaultValue) |
java.lang.String |
getGoogleHttpRef()
Returns the HTTP-Reference for Google translate.
|
java.lang.String |
getGoogleKey4API()
Returns the API key for Google.
|
static java.lang.String |
getHumanReadableByteCount(long bytes,
boolean si)
Returns the specified bytes in a human readable byte count.
|
static java.awt.Image |
getInternalImage(java.lang.String imageFileName)
Returns one of the internal images specified by its file name.
|
static java.awt.Image |
getInternalImageAwbIcon16()
Returns the internal image icon of Agent.Workbench sized 16x16.
|
static java.awt.Image |
getInternalImageAwbIcon48()
Returns the internal image icon of Agent.Workbench sized 48x48.
|
static javax.swing.ImageIcon |
getInternalImageIcon(java.lang.String imageFileName)
Returns one of the internal images as ImageIcon, specified by its file name.
|
static javax.swing.ImageIcon |
getInternalImageIcon(java.lang.String internalImagePath,
java.lang.String imageFileName)
Returns one of the internal images as ImageIcon, specified by its file name.
|
static javax.swing.ImageIcon |
getInternalImageIconAwbIcon16()
Returns the internal image icon of Agent.Workbench sized 16x16.
|
static javax.swing.ImageIcon |
getInternalImageIconAwbIcon48()
Returns the internal image icon of Agent.Workbench sized 48x48.
|
static Image |
getInternalSWTImage(java.lang.String imageFileName)
Returns one of the internal images as an´SWT image instance.
|
int |
getIntFromConfiguration(java.lang.String key,
int defaultValue) |
PlatformJadeConfig |
getJadeDefaultPlatformConfig()
This method return the default platform configuration for JADE
|
jade.core.ProfileImpl |
getJadeDefaultProfile()
This Method returns the default JADE container-profile
of the AgentGUI-Application
|
java.lang.Integer |
getJadeLocalPort()
Returns the port on which JADE will run.
|
java.lang.Integer |
getJadeLocalPortMTP()
Returns the MTP port on which JADE will run.
|
JadeUrlConfiguration |
getJadeUrlConfigurationForMaster()
Returns the
JadeUrlConfiguration for the server.master. |
java.lang.String |
getKeyStoreFile()
Gets the KeyStoreFile.
|
java.lang.String |
getKeyStorePassword()
Gets the KeyStorePassword
|
java.lang.String |
getKeyStorePasswordEncrypted()
Gets the KeyStorePasswordEncrypted.
|
EnvironmentTypes |
getKnownEnvironmentTypes()
This method returns all EnvironmentTypes known by Agent.GUI
|
java.lang.String |
getLanguage()
Returns the currently configured language of the file properties
|
java.io.File |
getLastSelectedFolder()
Returns the reminder value of the last selected folder as File object
|
java.lang.String |
getLastSelectedFolderAsString()
Returns the reminder value of the last selected folder as String
|
java.lang.String |
getLoggingBasePath()
Returns the relative logging base path.
|
java.lang.String |
getLoggingBasePath(boolean forcePathCreation)
Returns the relative logging base path.
|
static java.lang.String |
getLoggingBasePathDefault()
Returns the default logging base path.
|
java.lang.String |
getLoggingDayPrefix(long timeStamp)
Returns the day prefix for log files using the specified timestamp (e.g.
|
java.lang.String |
getLoggingPathByMonth(long timeStamp,
boolean forcePathCreation)
Returns the logging directory by month.
|
long |
getLongFromConfiguration(java.lang.String key,
long defaultValue) |
GlobalInfo.MtpProtocol |
getMtpProtocol()
Gets the MTP protocol.
|
java.lang.String |
getNewLineSeparator()
This method returns the actual String for a new line string
|
java.lang.String |
getNewLineSeparatorReplacer()
This method will return a substitute String for the new line String.
|
static long |
getNextMidnightFromTimeStamp(long timeStamp)
Returns the next midnight time stamp for the specified time.
|
java.lang.String |
getOIDCIssuerURI()
Returns the OIDC issuer URI.
|
java.lang.String |
getOIDCUsername()
Gets the OpenID Connect user name
|
java.awt.Dialog |
getOwnerDialogForComponent(javax.swing.JComponent component)
Returns the owner dialog for a JComponent.
|
java.awt.Frame |
getOwnerFrameForComponent(javax.swing.JComponent component)
Returns the owner frame for the specified JComponent.
|
java.awt.Frame |
getOwnerFrameForContainer(java.awt.Container container)
Returns the owner frame for the specified Container.
|
PlatformJadeConfig.MTP_Creation |
getOwnMtpCreation()
Returns the setting for the own MTP creation.
|
java.lang.String |
getOwnMtpIP()
Returns the own MTP IP-address.
|
java.lang.Integer |
getOwnMtpPort()
Returns the own MTP port.
|
java.lang.String |
getPathBaseDir()
This method returns the base path of the application (e. g.
|
java.lang.String |
getPathBaseDirIDE_BIN()
This method returns the base path of the application, when Agent.GUI is running
in its development environment / IDE (e. g.
|
java.lang.String |
getPathConfigFile(boolean absolute)
This method will return the concrete path to the property file 'agentgui.ini' relatively or absolute
|
static java.lang.String |
getPathImageAWB()
Returns the path to the base image directory of Agent.Workbench.
|
static java.lang.String |
getPathImageIntern()
Returns the path to the internal image directory of Agent.Workbench.
|
java.lang.String |
getPathProjects()
This method will return the absolute path to the projects directory ('projects\').
|
java.lang.String |
getPathProjects(boolean forcePathCreation)
This method will return the path to the project folder ('.
|
static java.lang.String |
getPathProperty()
Returns the relative path to the properties.
|
java.lang.String |
getPathProperty(boolean absolute)
This method can be invoked in order to get the path to the property folder 'properties\'.
|
java.lang.String |
getProcessID()
Returns the systems process ID of the JVM.
|
java.lang.String[] |
getProjectSubDirectories()
Returns the list of project folders, which are located in the root project folder
|
PropertyContentProvider |
getPropertyContentProvider()
Returns the property content provider.
|
java.lang.String |
getServerMasterDBHost()
Database property for the server.nmaster
|
java.lang.String |
getServerMasterDBName()
Database property for the server.nmaster
|
java.lang.String |
getServerMasterDBPswd()
Database property for the server.nmaster
|
java.lang.String |
getServerMasterDBUser()
Database property for the server.nmaster
|
java.lang.Integer |
getServerMasterPort()
This method returns the port on which the server.master can be reached
|
java.lang.Integer |
getServerMasterPort4MTP()
Returns the MTP port of the server.master
|
GlobalInfo.MtpProtocol |
getServerMasterProtocol()
Gets the filePropServerMasterProtocol.
|
java.lang.String |
getServerMasterURL()
Here the URL or IP of the server.master can be get
|
java.lang.String |
getStringFromConfiguration(java.lang.String key,
java.lang.String defaultValue) |
TimeSeriesLengthRestriction |
getTimeSeriesLengthRestriction()
Gets the time series length restriction.
|
java.awt.Component |
getTopParentComponent(java.awt.Component component)
Returns the top parent component of the specified component.
|
java.lang.String |
getTrustStoreFile()
Gets the TrustStore file.
|
java.lang.String |
getTrustStorePassword()
Gets the TrustStore password.
|
java.lang.String |
getTrustStorePasswordEncrypted()
Gets the TrustStorePasswordEncrypted.
|
java.lang.Integer |
getUpdateAutoConfiguration()
Returns the update auto configuration.
|
java.lang.Long |
getUpdateDateLastChecked()
Gets the update date last checked.
|
java.lang.Integer |
getUpdateKeepDictionary()
Gets the update keep dictionary.
|
VersionInfo |
getVersionInfo()
Gets the version info.
|
void |
initialize()
Initializes this class by reading the file properties and the current version information.
|
boolean |
isBenchAlwaysSkip()
Returns if the file properties are configured to always skip the benchmark
|
boolean |
isLoggingEnabled()
Checks if the file logging is enabled.
|
boolean |
isMaximzeMainWindow()
Returns if the
MainWindow has to be maximized at start up. |
boolean |
isServerAutoRun()
This method returns the current setting for the file property '10_AUTOSTART', which is
used for whether or not to start the server execution mode immediately after the program
execution.
|
static void |
println4EnvProps()
This method prints out every available value of the system environment
|
static void |
println4SysProps()
This method prints out every available value of the system properties
|
void |
putBooleanToConfiguration(java.lang.String key,
boolean value) |
void |
putByteArryToConfiguration(java.lang.String key,
byte[] value) |
void |
putDoubleToConfiguration(java.lang.String key,
double value) |
void |
putFloatToConfiguration(java.lang.String key,
float value) |
void |
putIntToConfiguration(java.lang.String key,
int value) |
void |
putLongToConfiguration(java.lang.String key,
long value) |
void |
putStringToConfiguration(java.lang.String key,
java.lang.String value) |
java.lang.String |
pwDecrypt(java.lang.String encryptedPSWD)
This method is used to decrypt password.
|
java.lang.String |
pwEncrypt(java.lang.String pswd)
This method is used to encrypt password.
|
void |
removeEnvironmentType(EnvironmentType envType)
This method can be used in order to remove a tailored environment type
|
void |
removeEnvironmentType(java.lang.String envTypeKey)
This method can be used in order to remove a tailored environment type
|
void |
setApplicationTitle(java.lang.String newApplicationTitle)
This method can be used in order to set a new application title.
|
void |
setAppLookAndFeelClassName(java.lang.String newLnF)
Set the current Look and Feel (LnF) for Java Swing by using its class reference.
|
void |
setBenchAlwaysSkip(boolean benchAlwaysSkip)
Can be used in order to set the file properties to always skip the benchmark
|
void |
setBenchExecOn(java.lang.String benchExecOn)
This method can be used in order to set the reminder value for the computer/host name on which
the benchmark test was executed the last time (With Agent.GUI evaluated due:
InetAddress.getLocalHost().getCanonicalHostName() ) |
void |
setBenchValue(float benchValue)
Can be used in order to set the benchmark value in the file properties
|
void |
setDeviceServiceAgents(java.util.Vector<DeviceAgentDescription> deviceServiceAgents)
Sets the device service agents.
|
void |
setDeviceServiceAgentVisualisation(GlobalInfo.EmbeddedSystemAgentVisualisation deviceServiceAgentVisualisation)
Sets the device service agent visualisation.
|
void |
setDeviceServiceExecutionMode(GlobalInfo.DeviceSystemExecutionMode deviceServiceExecutionMode)
Sets the device service execution mode.
|
void |
setDeviceServiceProjectFolder(java.lang.String deviceServiceProjectFolder)
Sets the device service project folder.
|
void |
setDeviceServiceSetupSelected(java.lang.String deviceServiceSetupSelected)
Sets the device service setup selected.
|
void |
setExecutionMode(GlobalInfo.ExecutionMode executionMode)
Sets the execution mode.
|
void |
setGoogleHttpRef(java.lang.String httpRef)
Sets the HTTP-Reference for Google translate.
|
void |
setGoogleKey4API(java.lang.String key4API)
Sets the API key for Google.
|
void |
setJadeLocalPort(int localeJadeDefaultPort)
This method can be used in order to set the port on which JADE is running (by default: 1099)
|
void |
setJadeLocalPortMTP(int newMtpPort)
This method can be used in order to set the MTP port on which JADE is running (by default: 1099).
|
void |
setJadeUrlConfigurationForMaster(JadeUrlConfiguration newJadeUrlConfiguration)
Sets the
JadeUrlConfiguration for the server.master. |
void |
setKeyStoreFile(java.lang.String filePropKeyStoreFile)
Sets the KeyStoreFile.
|
void |
setKeyStorePassword(java.lang.String newPassword)
Sets the KeyStore password.
|
void |
setKeyStorePasswordEncrypted(java.lang.String filePropKeyStorePasswordEncrypted)
Sets the KeyStorePasswordEncrypted.
|
void |
setLanguage(java.lang.String currentLanguage)
This method can be used in order to set the current application language
to the property file.
|
void |
setLastSelectedFolder(java.io.File lastSelectedFolder)
This method can be used in order to remind the last folder
in which a file was selected (e. g. while using a JFileChooser)
|
void |
setLastSelectedFolder(java.lang.String lastSelectedFolderPath)
This method can be used in order to remind the last folder
in which a file was selected (e. g. while using a JFileChooser)
|
void |
setLoggingBasePath(java.lang.String newLoggingbasePath)
Sets the logging base path.
|
void |
setLoggingEnabled(boolean enableLogging)
Sets the logging enabled (or not).
|
void |
setMaximzeMainWindow(boolean isMaximzeMainWindow)
Sets to initially maximize the
MainWindow . |
void |
setMtpProtocol(GlobalInfo.MtpProtocol newMtpProtocol)
Sets the MTP protocol.
|
void |
setOIDCIssuerURI(java.lang.String OIDCIssuerURI)
Sets the OIDC issuer URI.
|
void |
setOIDCUsername(java.lang.String oidcUsername)
Sets the OpenID Connect user name
|
void |
setOwnMtpCreation(PlatformJadeConfig.MTP_Creation ownMtpCreation)
Sets the own MTP creation settings.
|
void |
setOwnMtpIP(java.lang.String filePropOwnMtpIP)
Sets the own IP-address that should be used with the MTP.
|
void |
setOwnMtpPort(java.lang.Integer newOwnMtpPort)
Sets the own MTP port.
|
void |
setPathProjects(java.lang.String newProjectsDirectory)
Sets the 'projects' directory.
|
void |
setServerAutoRun(boolean serverAutoRun)
Can be used in order to start the active server mode immediately after the program execution.
|
void |
setServerMasterDBHost(java.lang.String newDBHost)
Database property for the server.nmaster
|
void |
setServerMasterDBName(java.lang.String newDBName)
Database property for the server.nmaster
|
void |
setServerMasterDBPswd(java.lang.String newDBPswd)
Database property for the server.nmaster
|
void |
setServerMasterDBUser(java.lang.String newDBUser)
Database property for the server.nmaster
|
void |
setServerMasterPort(java.lang.Integer serverMasterPort)
Here the port for the server.master can be set
|
void |
setServerMasterPort4MTP(java.lang.Integer serverMasterPort4MTP)
This method can be used in order to set the MTP port of the server.master
|
void |
setServerMasterProtocol(GlobalInfo.MtpProtocol filePropServerMasterProtocol)
Sets the filePropServerMasterProtocol.
|
void |
setServerMasterURL(java.lang.String serverMasterURL)
Here the URLS or IP of the server.master can be set
|
void |
setTimeSeriesLengthRestriction(TimeSeriesLengthRestriction timeSeriesLengthRestriction)
Sets the time series length restriction.
|
void |
setTrustStoreFile(java.lang.String filePropTrustStoreFile)
Sets the TrustStore file.
|
void |
setTrustStorePassword(java.lang.String newPassword)
Sets the TrustStore password.
|
void |
setTrustStorePasswordEncrypted(java.lang.String filePropTrustStorePasswordEncrypted)
Sets the trust store password encrypted.
|
void |
setUpdateAutoConfiguration(java.lang.Integer updateAutoConfiguration)
Sets the update auto configuration.
|
void |
setUpdateDateLastChecked(long updateDateLastChecked)
Sets the update date last checked.
|
void |
setUpdateKeepDictionary(java.lang.Integer updateKeepDictionary)
Sets the update keep dictionary.
|
public static final java.lang.String DEFAULT_AWB_PROJECT_REPOSITORY
public static final java.lang.String DEFAULT_OIDC_ISSUER_URI
public static final java.lang.String DEFAUL_LOOK_AND_FEEL_CLASS
public void initialize()
public static void println4SysProps()
public static void println4EnvProps()
public void setExecutionMode(GlobalInfo.ExecutionMode executionMode)
executionMode
- the new execution modepublic GlobalInfo.ExecutionMode getExecutionMode()
GlobalInfo.ExecutionMode.APPLICATION
).GlobalInfo.ExecutionMode
public java.lang.String getProcessID()
public java.lang.String getExecutionModeDescription()
GlobalInfo.ExecutionMode
.public java.lang.String getExecutionModeDescription(GlobalInfo.ExecutionMode executionMode)
public java.lang.String getApplicationTitle()
public void setApplicationTitle(java.lang.String newApplicationTitle)
newApplicationTitle
- the Application Title to setApplication.setApplicationTitle(String)
public java.lang.String getAppLookAndFeelClassName()
public void setAppLookAndFeelClassName(java.lang.String newLnF)
newLnF
- the new Swing - Look and Feelpublic GlobalInfo.ExecutionEnvironment getExecutionEnvironment()
public java.lang.String getNewLineSeparator()
public java.lang.String getNewLineSeparatorReplacer()
public java.lang.String getPathBaseDir()
public java.lang.String getPathBaseDirIDE_BIN()
public static java.lang.String getPathProperty()
getPathProperty(boolean)
!public java.lang.String getPathProperty(boolean absolute)
absolute
- set true if you want to get the full path to thispublic PropertyContentProvider getPropertyContentProvider()
public java.lang.String getPathConfigFile(boolean absolute)
absolute
- set true if you want to get the full path to thispublic void setPathProjects(java.lang.String newProjectsDirectory)
newProectsDirectory
- the new path projectspublic java.lang.String getPathProjects()
public java.lang.String getPathProjects(boolean forcePathCreation)
absolute
- set true if you want to get the full path to thisforcePathCreation
- if true, the path will be created if it not already existspublic java.lang.String getDefaultProjectsDirectory()
public java.lang.String[] getProjectSubDirectories()
public java.lang.String getFileManagerServerPath(boolean forceDirectoryCreation)
forceDirectoryCreation
- set true, if the directory should be createdpublic java.lang.String getFileManagerDownloadPath(boolean forceDirectoryCreation)
forceDirectoryCreation
- set true, if the directory should be createdpublic java.io.File getEclipseLauncher()
public java.lang.String getFileRunnableJar()
public java.lang.String getFileRunnableJar(java.lang.String installationPath, java.util.ArrayList<java.lang.String> statusMessageList)
null
to receive the executable for this application. Set this
parameter to a specific one, in order to check any directory for an installation.installationPath
- an initial installation path that allows to check any directorystatusMessageList
- define an ArrayList here to receive the errors found by the methodpublic java.lang.String getFileDictionary(boolean base64, boolean absolute)
base64
- if set true, the method will return the path to the
Base64-encoded dictionary file, otherwise the path to the csv-version of the dictionaryabsolute
- set true if you want to get the full path to thispublic java.lang.String getFileNameProject()
public java.lang.String getFileNameProjectUserObjectXmlFile()
public java.lang.String getFilenameProjectUserObjectBinFile()
public java.lang.String getFileEndProjectZip()
public void setJadeLocalPort(int localeJadeDefaultPort)
localeJadeDefaultPort
- the localeJadeDefaultPort to setpublic java.lang.Integer getJadeLocalPort()
public void setJadeLocalPortMTP(int newMtpPort)
newMtpPort
- the new local jade MTP portpublic java.lang.Integer getJadeLocalPortMTP()
public void setJadeUrlConfigurationForMaster(JadeUrlConfiguration newJadeUrlConfiguration)
JadeUrlConfiguration
for the server.master.newJadeUrlConfiguration
- the new JadeUrlConfiguration
for masterpublic JadeUrlConfiguration getJadeUrlConfigurationForMaster()
JadeUrlConfiguration
for the server.master.public PlatformJadeConfig getJadeDefaultPlatformConfig()
PlatformJadeConfig
public jade.core.ProfileImpl getJadeDefaultProfile()
ProfileImpl
public java.awt.Color ColorMenuHighLight()
public VersionInfo getVersionInfo()
public BundleProperties getBundleProperties()
public BundleProperties getBundleProperties(boolean isSetPreferencesToGlobal)
isSetPreferencesToGlobal
- set true
in order to directly set the preferences to the GlobalInfo
public void doSaveConfiguration()
public void putStringToConfiguration(java.lang.String key, java.lang.String value)
public void putBooleanToConfiguration(java.lang.String key, boolean value)
public void putIntToConfiguration(java.lang.String key, int value)
public void putLongToConfiguration(java.lang.String key, long value)
public void putFloatToConfiguration(java.lang.String key, float value)
public void putDoubleToConfiguration(java.lang.String key, double value)
public void putByteArryToConfiguration(java.lang.String key, byte[] value)
public java.lang.String getStringFromConfiguration(java.lang.String key, java.lang.String defaultValue)
public boolean getBooleanFromConfiguration(java.lang.String key, boolean defaultValue)
public int getIntFromConfiguration(java.lang.String key, int defaultValue)
public long getLongFromConfiguration(java.lang.String key, long defaultValue)
public float getFloatFromConfiguration(java.lang.String key, float defaultValue)
public double getDoubleFromConfiguration(java.lang.String key, double defaultValue)
public byte[] getByteArryFromConfiguration(java.lang.String key, byte[] defaultValue)
public java.lang.Float getBenchValue()
BenchmarkMeasurement
,
BundleProperties
public void setBenchValue(float benchValue)
benchValue
- The result of the initial benchmarkBenchmarkMeasurement
,
BundleProperties
public java.lang.String getBenchExecOn()
InetAddress.getLocalHost().getCanonicalHostName())
.BenchmarkMeasurement
,
BundleProperties
public void setBenchExecOn(java.lang.String benchExecOn)
InetAddress.getLocalHost().getCanonicalHostName()
)benchExecOn
- the filePropBenchExecOn to setBenchmarkMeasurement
,
BundleProperties
public boolean isBenchAlwaysSkip()
BenchmarkMeasurement
public void setBenchAlwaysSkip(boolean benchAlwaysSkip)
benchAlwaysSkip
- the filePropBenchAlwaySkip to setBenchmarkMeasurement
public void setLanguage(java.lang.String currentLanguage)
currentLanguage
- the filePropLanguage to setBenchmarkMeasurement
,
BundleProperties
public java.lang.String getLanguage()
BenchmarkMeasurement
,
BundleProperties
public void setMaximzeMainWindow(boolean isMaximzeMainWindow)
MainWindow
.isMaximzeMainWindow
- the new maximze indicatorpublic boolean isMaximzeMainWindow()
MainWindow
has to be maximized at start up.public void setLoggingEnabled(boolean enableLogging)
enableLogging
- the new logging enabledpublic boolean isLoggingEnabled()
public void setLoggingBasePath(java.lang.String newLoggingbasePath)
newLoggingbasePath
- the new logging base pathpublic java.lang.String getLoggingBasePath()
public java.lang.String getLoggingBasePath(boolean forcePathCreation)
forcePathCreation
- set true, if the directory should be createdpublic static java.lang.String getLoggingBasePathDefault()
public java.lang.String getLoggingPathByMonth(long timeStamp, boolean forcePathCreation)
timeStamp
- the timestampforcePathCreation
- set true, if the directory should be createdpublic java.lang.String getLoggingDayPrefix(long timeStamp)
timeStamp
- the time stamppublic TimeSeriesLengthRestriction getTimeSeriesLengthRestriction()
public void setTimeSeriesLengthRestriction(TimeSeriesLengthRestriction timeSeriesLengthRestriction)
timeSeriesLengthRestriction
- the new time series length restrictionpublic void setServerAutoRun(boolean serverAutoRun)
serverAutoRun
- the filePropAutoRun to setBundleProperties
public boolean isServerAutoRun()
BundleProperties
,
setServerAutoRun(boolean)
public void setServerMasterURL(java.lang.String serverMasterURL)
serverMasterURL
- the filePropMasterURL to setBundleProperties
public java.lang.String getServerMasterURL()
BundleProperties
public void setServerMasterPort(java.lang.Integer serverMasterPort)
serverMasterPort
- the filePropMasterPort to setBundleProperties
public java.lang.Integer getServerMasterPort()
BundleProperties
public void setServerMasterPort4MTP(java.lang.Integer serverMasterPort4MTP)
serverMasterPort4MTP
- the filePropMasterPort to setBundleProperties
public java.lang.Integer getServerMasterPort4MTP()
BundleProperties
public GlobalInfo.MtpProtocol getServerMasterProtocol()
BundleProperties
public void setServerMasterProtocol(GlobalInfo.MtpProtocol filePropServerMasterProtocol)
filePropServerMasterProtocol
- the new filePropServerMasterProtocolBundleProperties
public void setOwnMtpCreation(PlatformJadeConfig.MTP_Creation ownMtpCreation)
ownMtpCreation
- the new own MTP creationpublic PlatformJadeConfig.MTP_Creation getOwnMtpCreation()
public void setOwnMtpIP(java.lang.String filePropOwnMtpIP)
filePropOwnMtpIP
- the new own MTP IP-Addresspublic java.lang.String getOwnMtpIP()
public void setOwnMtpPort(java.lang.Integer newOwnMtpPort)
newOwnMtpPort
- the new own MTP portpublic java.lang.Integer getOwnMtpPort()
public void setMtpProtocol(GlobalInfo.MtpProtocol newMtpProtocol)
newMtpProtocol
- the new MTP protocolpublic GlobalInfo.MtpProtocol getMtpProtocol()
public void setServerMasterDBHost(java.lang.String newDBHost)
newDBHost
- the filePropServerMasterDBHost to setBundleProperties
public java.lang.String getServerMasterDBHost()
BundleProperties
public void setServerMasterDBName(java.lang.String newDBName)
newDBName
- the filePropServerMasterDBName to setBundleProperties
public java.lang.String getServerMasterDBName()
BundleProperties
public void setServerMasterDBUser(java.lang.String newDBUser)
newDBUser
- the filePropServerMasterDBUser to setBundleProperties
public java.lang.String getServerMasterDBUser()
BundleProperties
public void setServerMasterDBPswd(java.lang.String newDBPswd)
newDBPswd
- the filePropServerMasterDBPswd to setBundleProperties
public java.lang.String getServerMasterDBPswd()
BundleProperties
public void setLastSelectedFolder(java.lang.String lastSelectedFolderPath)
lastSelectedFolderPath
- the new last selected folderpublic void setLastSelectedFolder(java.io.File lastSelectedFolder)
setLastSelectedFolder
in interface LastSelectedFolderReminder
lastSelectedFolder
- the lastSelectedFolder to setpublic java.io.File getLastSelectedFolder()
getLastSelectedFolder
in interface LastSelectedFolderReminder
public java.lang.String getLastSelectedFolderAsString()
public EnvironmentTypes getKnownEnvironmentTypes()
EnvironmentType
,
EnvironmentTypes
public void addEnvironmentType(EnvironmentType envType)
envType
- EnvironmentType
public void removeEnvironmentType(EnvironmentType envType)
envType
- The EnvironmentType instanceEnvironmentType
public void removeEnvironmentType(java.lang.String envTypeKey)
envTypeKey
- The key expression of the environment typeEnvironmentType
public java.lang.String getGoogleKey4API()
public void setGoogleKey4API(java.lang.String key4API)
key4API
- the new API key for Google.public java.lang.String getGoogleHttpRef()
public void setGoogleHttpRef(java.lang.String httpRef)
httpRef
- the new HTTP-Reference for Google translate.public void setOIDCIssuerURI(java.lang.String OIDCIssuerURI)
OIDCIssuerURI
- the new OIDC issuer URIpublic java.lang.String getOIDCIssuerURI()
public void setUpdateAutoConfiguration(java.lang.Integer updateAutoConfiguration)
updateAutoConfiguration
- the new update auto configurationpublic java.lang.Integer getUpdateAutoConfiguration()
public void setUpdateKeepDictionary(java.lang.Integer updateKeepDictionary)
updateKeepDictionary
- the new update keep dictionarypublic java.lang.Integer getUpdateKeepDictionary()
public void setUpdateDateLastChecked(long updateDateLastChecked)
updateDateLastChecked
- the new update date last checkedpublic java.lang.Long getUpdateDateLastChecked()
public java.lang.String getDeviceServiceProjectFolder()
public void setDeviceServiceProjectFolder(java.lang.String deviceServiceProjectFolder)
deviceServiceProjectFolder
- the new device service project folderpublic GlobalInfo.DeviceSystemExecutionMode getDeviceServiceExecutionMode()
public void setDeviceServiceExecutionMode(GlobalInfo.DeviceSystemExecutionMode deviceServiceExecutionMode)
deviceServiceExecutionMode
- the new device service execution modepublic java.lang.String getDeviceServiceSetupSelected()
public void setDeviceServiceSetupSelected(java.lang.String deviceServiceSetupSelected)
deviceServiceSetupSelected
- the new device service setup selectedpublic java.util.Vector<DeviceAgentDescription> getDeviceServiceAgents()
public void setDeviceServiceAgents(java.util.Vector<DeviceAgentDescription> deviceServiceAgents)
deviceServiceAgents
- the new device service agent namepublic GlobalInfo.EmbeddedSystemAgentVisualisation getDeviceServiceAgentVisualisation()
public void setDeviceServiceAgentVisualisation(GlobalInfo.EmbeddedSystemAgentVisualisation deviceServiceAgentVisualisation)
deviceServiceAgentVisualisation
- the new device service agent visualisationpublic java.lang.String getKeyStoreFile()
public void setKeyStoreFile(java.lang.String filePropKeyStoreFile)
filePropKeyStoreFile
- the new KeyStoreFilepublic java.lang.String getTrustStoreFile()
public void setTrustStoreFile(java.lang.String filePropTrustStoreFile)
filePropTrustStoreFile
- the new TrustStore filepublic java.lang.String getKeyStorePassword()
public void setKeyStorePassword(java.lang.String newPassword)
newPassword
- the new KeyStore passwordpublic java.lang.String getKeyStorePasswordEncrypted()
public void setKeyStorePasswordEncrypted(java.lang.String filePropKeyStorePasswordEncrypted)
filePropKeyStorePasswordEncrypted
- the new KeyStorePasswordEncryptedpublic java.lang.String getTrustStorePassword()
public void setTrustStorePassword(java.lang.String newPassword)
newPassword
- the new TrustStore passwordpublic void setTrustStorePasswordEncrypted(java.lang.String filePropTrustStorePasswordEncrypted)
filePropTrustStorePasswordEncrypted
- the new trust store password encryptedpublic java.lang.String getTrustStorePasswordEncrypted()
public void setOIDCUsername(java.lang.String oidcUsername)
oidcUsername
- the user name for the OpenID Connect protocolpublic java.lang.String getOIDCUsername()
public java.awt.Component getTopParentComponent(java.awt.Component component)
component
- the componentpublic java.awt.Frame getOwnerFrameForComponent(javax.swing.JComponent component)
component
- the JComponentpublic java.awt.Frame getOwnerFrameForContainer(java.awt.Container container)
container
- the containerpublic java.awt.Dialog getOwnerDialogForComponent(javax.swing.JComponent component)
component
- the JComponentpublic static java.lang.String getPathImageAWB()
public static java.lang.String getPathImageIntern()
public static javax.swing.ImageIcon getInternalImageIcon(java.lang.String imageFileName)
imageFileName
- the image file namepublic static javax.swing.ImageIcon getInternalImageIcon(java.lang.String internalImagePath, java.lang.String imageFileName)
internalImagePath
- the internal image path to use (if null, the internal image path will be used getPathImageIntern()
)imageFileName
- the image file namepublic static java.awt.Image getInternalImage(java.lang.String imageFileName)
imageFileName
- the image file namepublic static javax.swing.ImageIcon getInternalImageIconAwbIcon16()
public static javax.swing.ImageIcon getInternalImageIconAwbIcon48()
public static java.awt.Image getInternalImageAwbIcon16()
public static java.awt.Image getInternalImageAwbIcon48()
public static Image getInternalSWTImage(java.lang.String imageFileName)
imageFileName
- the image file namepublic static java.lang.String getHumanReadableByteCount(long bytes, boolean si)
bytes
- the bytessi
- set true, if you want to use SI conversionpublic static long getNextMidnightFromTimeStamp(long timeStamp)
public java.lang.String pwDecrypt(java.lang.String encryptedPSWD)
encryptedPSWD
- the encrypted passwordpublic java.lang.String pwEncrypt(java.lang.String pswd)
pswd
- the password