@ApplicationScoped public class RuntimeOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DASHBOARD_EXTENSION |
| Constructor and Description |
|---|
RuntimeOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildFilePath(String fileId) |
String |
getImportsBaseDir() |
int |
getUploadSize() |
Optional<String> |
importFileLocation() |
void |
init() |
boolean |
isAllowExternal() |
boolean |
isComponentPartition() |
boolean |
isDatasetPartition() |
boolean |
isDevMode() |
boolean |
isModelUpdate() |
boolean |
isMultipleImport() |
boolean |
isRemoveModelFile() |
boolean |
isWatchModels() |
Optional<String> |
modelPath(String id)
Returns the model path for the given id
|
Pair<String,String> |
newFilePath(String fileName)
Generates a new valid file path.
|
public static final String DASHBOARD_EXTENSION
@PostConstruct public void init()
public Optional<String> modelPath(String id)
id - The model IDpublic Pair<String,String> newFilePath(String fileName)
fileName - The fileNamepublic boolean isMultipleImport()
public String getImportsBaseDir()
public int getUploadSize()
public boolean isAllowExternal()
public boolean isDatasetPartition()
public boolean isComponentPartition()
public boolean isModelUpdate()
public boolean isRemoveModelFile()
public boolean isDevMode()
public boolean isWatchModels()
Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.