Package org.dashbuilder.backend
Class RuntimeOptions
- java.lang.Object
-
- org.dashbuilder.backend.RuntimeOptions
-
@ApplicationScoped public class RuntimeOptions extends Object
Holds Runtime System properties and information.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDASHBOARD_EXTENSION
-
Constructor Summary
Constructors Constructor Description RuntimeOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildFilePath(String fileId)StringgetImportsBaseDir()intgetUploadSize()Optional<String>importFileLocation()voidinit()booleanisAllowExternal()booleanisComponentPartition()booleanisDatasetPartition()booleanisDevMode()booleanisModelUpdate()booleanisMultipleImport()booleanisRemoveModelFile()booleanisWatchModels()Optional<String>modelPath(String id)Returns the model path for the given idorg.uberfire.commons.data.Pair<String,String>newFilePath(String fileName)Generates a new valid file path.
-
-
-
Field Detail
-
DASHBOARD_EXTENSION
public static final String DASHBOARD_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@PostConstruct public void init()
-
modelPath
public Optional<String> modelPath(String id)
Returns the model path for the given id- Parameters:
id- The model ID- Returns:
- An optional containing the file path or an empty optional otherwise.
-
newFilePath
public org.uberfire.commons.data.Pair<String,String> newFilePath(String fileName)
Generates a new valid file path.- Parameters:
fileName- The fileName- Returns:
-
isMultipleImport
public boolean isMultipleImport()
-
getImportsBaseDir
public String getImportsBaseDir()
-
getUploadSize
public int getUploadSize()
-
isAllowExternal
public boolean isAllowExternal()
-
isDatasetPartition
public boolean isDatasetPartition()
-
isComponentPartition
public boolean isComponentPartition()
-
isModelUpdate
public boolean isModelUpdate()
-
isRemoveModelFile
public boolean isRemoveModelFile()
-
isDevMode
public boolean isDevMode()
-
isWatchModels
public boolean isWatchModels()
-
-