Class RuntimeOptions


  • @ApplicationScoped
    public class RuntimeOptions
    extends Object
    Holds Runtime System properties and information.
    • Constructor Detail

      • RuntimeOptions

        public RuntimeOptions()
    • Method Detail

      • 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()
      • buildFilePath

        public String buildFilePath​(String fileId)