@PermitAll public class MigrationServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements MigrationServiceLocal, MigrationServiceRemote
Constructor and Description |
---|
MigrationServiceBean()
Creates new instance.
|
MigrationServiceBean(MigrationDao migrationConfigDao,
ModelInstanceMigrationDao modelInstanceMigrationDao,
ModelInstanceDao modelInstanceDao,
ModelProviderService modelProviderService,
ModelManagementServiceLocal modelManagementService,
CommunicationService communicationService)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
abortModelUpdate(long modelInstanceId)
Aborts model update process for given model instance.
|
List<MigrationIncompatibility> |
checkModelInstanceCompatibility(long modelInstanceId,
long migrationId)
Returns a set of data holding information about incompatibilities in a model instance with respect to a new model.
|
void |
continuePostUpdate(long modelInstanceId)
Continues model update of the specified model instance by the post processing phase.
|
void |
continueTransform(long modelInstanceId)
Continues model update of the specified model instance by the transformation phase.
|
Migration |
createMigration(String migrationName,
ByteData migrationConfig,
ByteData externalDataMappings)
Uploads migration configuration to the server.
|
ByteData |
getExternalDataMappings(long migrationId)
Returns the migration external data mapping by the migration id.
|
Migration |
getMigration(long migrationId)
Returns a migration by its id.
|
ByteData |
getMigrationConfig(long migrationId)
Returns the migration configuration by the migration id.
|
List<ModelUpdate> |
getMigrationItems(long migrationId)
Returns a list of all model instance migrations that belong to the specified migration.
|
List<Migration> |
getMigrations()
Returns a list of all migrations.
|
String |
getModelInstanceMigrationLog(long modelInstanceMigrationId)
Returns a model instance log for the given model instance migration id.
|
List<ModelUpdate> |
getModelInstanceMigrations(long modelInstanceId)
Returns a list of model instance migrations ordered by the migration date.
|
void |
updateModel(long modelInstanceId,
long migrationId)
Changes the model for a running model instance.
|
public MigrationServiceBean()
public MigrationServiceBean(MigrationDao migrationConfigDao, ModelInstanceMigrationDao modelInstanceMigrationDao, ModelInstanceDao modelInstanceDao, ModelProviderService modelProviderService, ModelManagementServiceLocal modelManagementService, CommunicationService communicationService)
migrationConfigDao
- modelInstanceMigrationDao
- modelInstanceDao
- modelProviderService
- modelManagementService
- communicationService
- @RightsAllowed(value="ModelInstance:Update_Model") public Migration createMigration(String migrationName, ByteData migrationConfig, ByteData externalDataMappings)
MigrationService
createMigration
in interface MigrationService
@RightsAllowed(value="ModelInstance:Update_Model") public void updateModel(long modelInstanceId, long migrationId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, MigrationNotFoundException, ErrorException
MigrationService
updateModel
in interface MigrationService
ModelInstanceNotFoundException
InvalidModelInstanceStateException
MigrationNotFoundException
ErrorException
@RightsAllowed(value="ModelInstance:Update_Model") public void continuePostUpdate(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
MigrationService
continuePostUpdate
in interface MigrationService
ModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
@RightsAllowed(value="ModelInstance:Update_Model") public void continueTransform(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
MigrationService
continueTransform
in interface MigrationService
ModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
@RightsAllowed(value="ModelInstance:Update_Model") public void abortModelUpdate(long modelInstanceId) throws ModelInstanceNotFoundException, ErrorException, InvalidModelInstanceStateException
MigrationService
abortModelUpdate
in interface MigrationService
ModelInstanceNotFoundException
ErrorException
InvalidModelInstanceStateException
@RightsAllowed(value="ModelInstance:Read") public Migration getMigration(long migrationId)
MigrationService
getMigration
in interface MigrationService
@RightsAllowed(value="ModelInstance:Read") public List<ModelUpdate> getMigrationItems(long migrationId)
MigrationService
getMigrationItems
in interface MigrationService
@RightsAllowed(value="ModelInstance:Read") public List<Migration> getMigrations()
MigrationService
getMigrations
in interface MigrationService
@RightsAllowed(value="ModelInstance:Read") public List<ModelUpdate> getModelInstanceMigrations(long modelInstanceId)
MigrationService
getModelInstanceMigrations
in interface MigrationService
@RightsAllowed(value="ModelInstance:Read") public String getModelInstanceMigrationLog(long modelInstanceMigrationId)
MigrationService
getModelInstanceMigrationLog
in interface MigrationService
@RightsAllowed(value="ModelInstance:Read") public ByteData getExternalDataMappings(long migrationId) throws MigrationNotFoundException
MigrationService
getExternalDataMappings
in interface MigrationService
MigrationNotFoundException
@RightsAllowed(value="ModelInstance:Read") public ByteData getMigrationConfig(long migrationId) throws MigrationNotFoundException
MigrationService
getMigrationConfig
in interface MigrationService
MigrationNotFoundException
@RightsAllowed(value="ModelInstance:Read") public List<MigrationIncompatibility> checkModelInstanceCompatibility(long modelInstanceId, long migrationId) throws ModelInstanceNotFoundException, MigrationNotFoundException
MigrationService
checkModelInstanceCompatibility
in interface MigrationService
ModelInstanceNotFoundException
MigrationNotFoundException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.