public class CommonSettingsImpl extends Object implements CommonSettings, LangSettings, EngineSettings, SettingsMXBean, ClientAppSettings
Modifier and Type | Method and Description |
---|---|
boolean |
getCompileToJava()
Returns true if model is compiled to java.
|
CreateProcessLog |
getCreateProcessLog()
Returns enum value that determines creation of process logs.
|
String |
getGlobalMessage()
Global message set by administrator possibly available to all users on all app screens.
|
long |
getHealthCheckNumberOfEngineLoops()
If the specified number of loops is exceeded it is reported in health check.
|
InterpretationStrategy |
getInterpretationStrategy()
Returns interpreter strategy.
|
int |
getLineOfExpressionLoggedAtException()
Returns number of lines of an expression before and after a problem logged in exception.
|
long |
getMaxNumberOfEngineLoops()
If specified the engine can execute only the specified number of loops.
|
int |
getTimerInterval()
Gets minimal interval for time events.
|
long |
getUserActivityTrackingTimeout()
Returns timeout in milliseconds for tracking of users.
|
static void |
init(SettingDao settingDao)
Initialize cache
|
boolean |
isConfirmModelUpload()
Indicates if the user should be asked for confirmation prior to uploading
a model to the server.
|
boolean |
isCutLongStrings()
Returns true if strings longer that defined in database are cut.
|
boolean |
isDumpModelInstanceOnException()
Returns true if model instance should be dumped if exception occurs.
|
boolean |
isReplaceUnsupportedXMLCharacters()
Returns true if unsupported xml characters can are replaced.
|
boolean |
isSsoEnabled()
Returns true if SSO is enabled.
|
boolean |
isUserActivityTracked()
Returns true if tracking of active users is on.
|
void |
setCompileToJava(boolean compileToJava)
Sets value that determines whether model is compiled to java.
|
void |
setConfirmModelUpload(boolean value)
Sets the settings for requiring confirmation prior to uploading a model.
|
void |
setCreateProcessLog(CreateProcessLog createProcessLog)
Sets value that determines creation of process logs.
|
void |
setCutLongStrings(boolean cutLongStrings)
Sets settings for cutting of strings longer that defined in database.
|
void |
setDumpModelInstanceOnException(boolean dumpModelInstanceOnException)
Sets settings for dumping of model instance state if exception occurs.
|
void |
setHealthCheckNumberOfEngineLoops(long num) |
void |
setIsUserActivityTracked(boolean isUserActivityTracked) |
void |
setLineOfExpressionLoggedAtException(int lineOfExpressionLoggedAtException)
Sets number of lines of an expression before and after a problem logged in exception.
|
void |
setMaxNumberOfEngineLoops(long num) |
void |
setReplaceUnsupportedXMLCharacters(boolean isReplaceUnsupportedXMLCharacters)
Sets settings for replacing of unsupported xml characters.
|
void |
setSsoEnabled(boolean ssoEnabled) |
void |
setTimerInterval(int integer)
Sets minimal interval for time events.
|
void |
setUserActivityTrackingTimeout(long userActivityTrackingTimeout) |
public static void init(SettingDao settingDao)
settingDao
- public InterpretationStrategy getInterpretationStrategy()
getInterpretationStrategy
in interface EngineSettings
public boolean isDumpModelInstanceOnException()
isDumpModelInstanceOnException
in interface EngineSettings
public void setDumpModelInstanceOnException(boolean dumpModelInstanceOnException)
setDumpModelInstanceOnException
in interface EngineSettings
dumpModelInstanceOnException
- public int getLineOfExpressionLoggedAtException()
getLineOfExpressionLoggedAtException
in interface LangSettings
public void setLineOfExpressionLoggedAtException(int lineOfExpressionLoggedAtException)
setLineOfExpressionLoggedAtException
in interface LangSettings
lineOfExpressionLoggedAtException
- public CreateProcessLog getCreateProcessLog()
EngineSettings
getCreateProcessLog
in interface EngineSettings
public void setCreateProcessLog(CreateProcessLog createProcessLog)
EngineSettings
setCreateProcessLog
in interface EngineSettings
public boolean isCutLongStrings()
isCutLongStrings
in interface EngineSettings
public void setCutLongStrings(boolean cutLongStrings)
setCutLongStrings
in interface EngineSettings
cutLongStrings
- public boolean isReplaceUnsupportedXMLCharacters()
EngineSettings
isReplaceUnsupportedXMLCharacters
in interface EngineSettings
public void setReplaceUnsupportedXMLCharacters(boolean isReplaceUnsupportedXMLCharacters)
EngineSettings
setReplaceUnsupportedXMLCharacters
in interface EngineSettings
public boolean isConfirmModelUpload()
EngineSettings
isConfirmModelUpload
in interface EngineSettings
true
if confirmation should be required; otherwise false
.public void setConfirmModelUpload(boolean value)
EngineSettings
setConfirmModelUpload
in interface EngineSettings
value
- the setting valuepublic int getTimerInterval()
EngineSettings
getTimerInterval
in interface EngineSettings
public void setTimerInterval(int integer)
EngineSettings
setTimerInterval
in interface EngineSettings
public boolean getCompileToJava()
EngineSettings
getCompileToJava
in interface EngineSettings
public void setCompileToJava(boolean compileToJava)
EngineSettings
setCompileToJava
in interface EngineSettings
public boolean isUserActivityTracked()
EngineSettings
isUserActivityTracked
in interface EngineSettings
public void setIsUserActivityTracked(boolean isUserActivityTracked)
public long getUserActivityTrackingTimeout()
EngineSettings
getUserActivityTrackingTimeout
in interface EngineSettings
public void setUserActivityTrackingTimeout(long userActivityTrackingTimeout)
public boolean isSsoEnabled()
EngineSettings
isSsoEnabled
in interface EngineSettings
public void setSsoEnabled(boolean ssoEnabled)
public long getMaxNumberOfEngineLoops()
EngineSettings
LspsRuntimeException
is thrown.getMaxNumberOfEngineLoops
in interface EngineSettings
public void setMaxNumberOfEngineLoops(long num)
public long getHealthCheckNumberOfEngineLoops()
EngineSettings
getHealthCheckNumberOfEngineLoops
in interface EngineSettings
public void setHealthCheckNumberOfEngineLoops(long num)
public String getGlobalMessage()
ClientAppSettings
getGlobalMessage
in interface ClientAppSettings
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.