@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 |
isModelUpdate() |
boolean |
isMultipleImport() |
boolean |
isRemoveModelFile() |
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()
Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.