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,
java.lang.String type)
Returns a list of module entries for the given module and type.
|
ModuleEntry |
findModuleEntryByPath(long moduleId,
java.lang.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
|
java.util.List<Module> |
getDependentModules(java.util.List<java.lang.Long> moduleIds)
Returns list of modules that imports one of given modules.
|
long |
getExecutableModulesCount() |
Module |
getLatestModule(java.lang.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(java.util.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 propertiesModelUploadExceptionByteData exportModules(long moduleId) throws ModuleNotFoundException
moduleId - ModuleNotFoundExceptionModuleList findModules(ModuleCriteria criteria)
criteria - ModulesModuleDetailsList findModulesDetails(ModuleCriteria criteria)
criteria - ModuleDetailslong getExecutableModulesCount()
Module getModule(long moduleId)
moduleId - id of modelModule or null if not foundModuleEntryList findModuleEntriesByType(long moduleId, java.lang.String type) throws ModuleNotFoundException
moduleId - id of moduletype - type of the fileModuleNotFoundExceptionModuleEntry findModuleEntryByPath(long moduleId, java.lang.String path) throws ModuleNotFoundException
moduleId - the module idpath - path to binary contentModuleNotFoundExceptionModuleEntry getModuleEntry(long entryId)
entryId - void unloadModule(long moduleId)
throws ModuleNotFoundException,
ModelUnloadException
moduleId - ModuleNotFoundException - if the module does not existModelUnloadExceptionvoid unloadModuleWithDependentModules(long moduleId)
throws ModuleNotFoundException,
ModelUnloadException
moduleId - ModuleNotFoundException - if the module does not existModelUnloadExceptionvoid unloadModules(java.util.List<Module> modules) throws ModuleNotFoundException, ModelUnloadException
modules - ModuleNotFoundExceptionModelUnloadExceptionjava.util.List<Module> getDependentModules(java.util.List<java.lang.Long> moduleIds)
moduleIds - id of modulesboolean isConfirmModelUpload()
Module getLatestModule(java.lang.String name)
name - nullCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.