public interface ModelManagementService
Modifier and Type | Method and Description |
---|---|
ByteData |
exportModules(long moduleId)
Create archive(ZIP) file of modules identified by the given module id.
|
ModuleEntryList |
findModuleEntriesByType(long moduleId,
String type)
Returns a list of module entries for the given module and type.
|
ModuleEntry |
findModuleEntryByPath(long moduleId,
String path)
Returns content of the specified process resource for given module.
|
ModuleList |
findModules(ModuleCriteria criteria)
Returns collection of all modules in the repository according to given criteria
|
ModuleDetailsList |
findModulesDetails(ModuleCriteria criteria)
Returns collection of details of all modules in the repository according
to given criteria
|
List<Module> |
getDependentModules(List<Long> moduleIds)
Returns list of modules that imports one of given modules.
|
long |
getExecutableModulesCount() |
Module |
getLatestModule(String name)
Returns the latest module with a given name.
|
Module |
getModule(long moduleId)
Finds module according to module id
|
ModuleEntry |
getModuleEntry(long entryId)
Returns resource data for given id from repository.
|
boolean |
isConfirmModelUpload()
Gets the server hint indicating whether the model upload should be explicitly
confirmed by the user.
|
void |
unloadModule(long moduleId)
Removes the module from the system.
|
void |
unloadModules(List<Module> modules)
Unloads modules.
|
void |
unloadModuleWithDependentModules(long moduleId)
Removes the module from the system.
|
ModulesUploadResult |
uploadModules(ByteData data,
StringProperties uploadProperties)
Process archive represented by byte array.
|
ModulesUploadResult uploadModules(ByteData data, StringProperties uploadProperties) throws ModelUploadException
data
- byte array representation of archiveuploadProperties
- the upload propertiesModelUploadException
ByteData exportModules(long moduleId) throws ModuleNotFoundException
moduleId
- ModuleNotFoundException
ModuleList findModules(ModuleCriteria criteria)
criteria
- Module
sModuleDetailsList findModulesDetails(ModuleCriteria criteria)
criteria
- ModuleDetails
long getExecutableModulesCount()
Module getModule(long moduleId)
moduleId
- id of modelModule
or null if not foundModuleEntryList findModuleEntriesByType(long moduleId, String type) throws ModuleNotFoundException
moduleId
- id of moduletype
- type of the fileModuleNotFoundException
ModuleEntry findModuleEntryByPath(long moduleId, String path) throws ModuleNotFoundException
moduleId
- the module idpath
- path to binary contentModuleNotFoundException
ModuleEntry getModuleEntry(long entryId)
entryId
- void unloadModule(long moduleId) throws ModuleNotFoundException, ModelUnloadException
moduleId
- ModuleNotFoundException
- if the module does not existModelUnloadException
void unloadModuleWithDependentModules(long moduleId) throws ModuleNotFoundException, ModelUnloadException
moduleId
- ModuleNotFoundException
- if the module does not existModelUnloadException
void unloadModules(List<Module> modules) throws ModuleNotFoundException, ModelUnloadException
modules
- ModuleNotFoundException
ModelUnloadException
List<Module> getDependentModules(List<Long> moduleIds)
moduleIds
- id of modulesboolean isConfirmModelUpload()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.