@PermitAll public class ModelManagementServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements ModelManagementServiceLocal, ModelManagementServiceRemote
uploadModules(ByteData, StringProperties) allows uploading of modules to the server. All
modules from the stream are uploaded. For each main module a model element is created and
registered.DELETE_MODEL, MANAGE_MODEL, READ_MODEL| Constructor and Description |
|---|
ModelManagementServiceBean()
Creates new instance.
|
ModelManagementServiceBean(ModelManagementDao modelManagementDao,
SettingDao settingDao,
ProcessServiceLocal processService,
ModelProviderService modelProviderService,
BinaryDataServiceLocal binaryDataService,
SharedRecordConfigurationService sharedRecordConfigurationService,
javax.ejb.SessionContext sessionContext,
boolean compileModules)
Constructor
|
| 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.
|
ModulesProcessingResult |
processArchive(ByteData archive,
java.util.Map<java.lang.String,java.lang.String> properties)
Process archive represented by byte array.
|
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 archive,
StringProperties uploadProperties)
Process archive represented by byte array.
|
public ModelManagementServiceBean()
public ModelManagementServiceBean(ModelManagementDao modelManagementDao, SettingDao settingDao, ProcessServiceLocal processService, ModelProviderService modelProviderService, BinaryDataServiceLocal binaryDataService, SharedRecordConfigurationService sharedRecordConfigurationService, javax.ejb.SessionContext sessionContext, boolean compileModules)
modelManagementDao - settingDao - processService - modelProviderService - binaryDataService - sessionContext - sharedRecordConfigurationService - compileModules - @RightsAllowed(value="Model:Manage") public ModulesUploadResult uploadModules(ByteData archive, StringProperties uploadProperties) throws ModelUploadException
ModelManagementServiceuploadModules in interface ModelManagementServicearchive - byte array representation of archiveuploadProperties - the upload propertiesModelUploadExceptionpublic ModulesProcessingResult processArchive(ByteData archive, java.util.Map<java.lang.String,java.lang.String> properties) throws ModelUploadException
ModelManagementServiceLocalprocessArchive in interface ModelManagementServiceLocalarchive - byte array representation of archiveproperties - the upload propertiesModelUploadExceptionpublic void unloadModules(java.util.List<Module> modules)
ModelManagementServiceunloadModules in interface ModelManagementService@RightsAllowed(value="Model:Manage") public ByteData exportModules(long moduleId) throws ModuleNotFoundException
ModelManagementServiceexportModules in interface ModelManagementServiceModuleNotFoundException@RightsAllowed(value="Model:Read") public ModuleEntryList findModuleEntriesByType(long moduleId, java.lang.String type) throws ModuleNotFoundException
ModelManagementServicefindModuleEntriesByType in interface ModelManagementServicemoduleId - id of moduletype - type of the fileModuleNotFoundException@RightsAllowed(value="Model:Read") public ModuleEntry findModuleEntryByPath(long moduleId, java.lang.String path) throws ModuleNotFoundException
ModelManagementServicefindModuleEntryByPath in interface ModelManagementServicemoduleId - the module idpath - path to binary contentModuleNotFoundException@RightsAllowed(value="Model:Read") public ModuleList findModules(ModuleCriteria criteria)
ModelManagementServicefindModules in interface ModelManagementServiceModulespublic long getExecutableModulesCount()
getExecutableModulesCount in interface ModelManagementService@RightsAllowed(value="Model:Read") public ModuleDetailsList findModulesDetails(ModuleCriteria criteria)
ModelManagementServicefindModulesDetails in interface ModelManagementServiceModuleDetails@RightsAllowed(value="Model:Read") public Module getModule(long moduleId)
ModelManagementServicegetModule in interface ModelManagementServicemoduleId - id of modelModule or null if not found@RightsAllowed(value="Model:Read") public ModuleEntry getModuleEntry(long entryId)
ModelManagementServicegetModuleEntry in interface ModelManagementServicepublic Module getLatestModule(java.lang.String name)
ModelManagementServicegetLatestModule in interface ModelManagementServicenull@RightsAllowed(value="Model:Delete")
public void unloadModule(long moduleId)
throws ModuleNotFoundException,
ModelUnloadException
ModelManagementServiceunloadModule in interface ModelManagementServiceModuleNotFoundException - if the module does not existModelUnloadException@RightsAllowed(value="Model:Delete")
public void unloadModuleWithDependentModules(long moduleId)
throws ModuleNotFoundException,
ModelUnloadException
ModelManagementServiceunloadModuleWithDependentModules in interface ModelManagementServiceModuleNotFoundException - if the module does not existModelUnloadExceptionpublic java.util.List<Module> getDependentModules(java.util.List<java.lang.Long> moduleIds)
ModelManagementServicegetDependentModules in interface ModelManagementServicemoduleIds - id of modulespublic boolean isConfirmModelUpload()
ModelManagementServiceisConfirmModelUpload in interface ModelManagementServiceCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.