Class LibraryUpdateService
java.lang.Object
com.e1c.g5.v8.dt.internal.library.update.LibraryUpdateService
- All Implemented Interfaces:
ILibraryUpdateService
@LifecycleService(name="LibraryUpdateService")
public class LibraryUpdateService
extends Object
implements ILibraryUpdateService
Default implementation of the helper service
ILibraryUpdateService-
Field Summary
Fields inherited from interface com._1c.g5.v8.dt.core.library.ILibraryUpdateService
SERVICE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionLibraryUpdateService(IServicesOrchestrator serviceOrchestrator, ISupplySettingsManager supplySettingsManager, IDependenciesManager dependenciesManager, IBmModelManager bmModelManager, IV8ProjectManager v8ProjectManager, IConfigurationProvider configurationProvider, ILibraryProjectManager libraryProjectManager, ILibraryRegistry libraryRegistry, ILibraryRepository libraryRepository, IDistributionSupportManager distributionSupportManager, IConfigurationProjectManager configurationProjectManager, IDtProjectResourceLifecycleBootstrap dtProjectResourceLifecycleBootstrap, IDtProjectManager dtProjectManager, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateParentConfigurationInfos(IDtProject dtProject, LibraryDescriptor registeredLibraryDescriptor, org.eclipse.emf.common.util.EMap<UUID, ParentSupportMode> distributives, Map<UUID, Set<UUID>> libUuids) Creates distribution settingsvoiddisableSupport(Collection<ParentConfigurationInfo> parentConfigurationInfos, org.eclipse.core.runtime.IProgressMonitor monitor) Disables distribution support for selectedParentConfigurationInfosvoidenableModification(Collection<ParentConfigurationInfo> parentConfigurationInfos, UserSupportMode changesAllowedMode, UserSupportMode changesNotRecommendedMode, org.eclipse.core.runtime.IProgressMonitor monitor) Enables modification of parent configuration infosstatic IBmObjectgetObjectByUuid(IBmTransaction transaction, UUID uuid) voidlink()voidmergeDistributionSettings(IDtProject dtProject, IBmNamespace ns, LibraryDescriptor libraryDescriptor) Merges the distribution settings for selected libraryvoidmigrateModuleDataStores(LibraryDescriptor libraryDescriptor, org.eclipse.core.runtime.IProgressMonitor monitor) Migrates data stores of the specified library to the running 1C:EDT data store version if necessaryprepareDistributionSettings(Configuration libraryConfiguration, Configuration targetConfiguration, DistributionSupport libraryDistributionSupport) Prepares the map with disstribution settings
-
Constructor Details
-
LibraryUpdateService
@Inject public LibraryUpdateService(IServicesOrchestrator serviceOrchestrator, ISupplySettingsManager supplySettingsManager, IDependenciesManager dependenciesManager, IBmModelManager bmModelManager, IV8ProjectManager v8ProjectManager, IConfigurationProvider configurationProvider, ILibraryProjectManager libraryProjectManager, ILibraryRegistry libraryRegistry, ILibraryRepository libraryRepository, IDistributionSupportManager distributionSupportManager, IConfigurationProjectManager configurationProjectManager, IDtProjectResourceLifecycleBootstrap dtProjectResourceLifecycleBootstrap, IDtProjectManager dtProjectManager, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService) - Parameters:
serviceOrchestrator- theIServicesOrchestratorinstance, cannot benullsupplySettingsManager- theISupplySettingsManagerinstance, cannot benulldependenciesManager- theIDependenciesManagerinstance, cannot benullbmModelManager- theIBmModelManagerinstance, cannot benullv8ProjectManager- theIV8ProjectManagerinstance, cannot benullconfigurationProvider- theIConfigurationProviderinstance, cannot benulllibraryProjectManager- theILibraryProjectManagerinstance, cannot benulllibraryRegistry- theILibraryRegistryinstance, cannot benulllibraryRepository- theILibraryRepositoryinstance, cannot benulldistributionSupportManager- theIDistributionSupportManagerinstance, cannot benullconfigurationProjectManager- theIConfigurationProjectManagerservice reference, cannot benulldtProjectResourceLifecycleBootstrap- theIDtProjectResourceLifecycleBootstrapservice reference, cannot benulldtProjectManager- theIDtProjectResourceLifecycleBootstrapservice reference, cannot benullworkspaceOrchestrator- theIWorkspaceOrchestratorinstance, cannot benullresourceImportService- theIVirtualProjectResourceImportServiceservice reference, cannot benull
-
-
Method Details
-
link
-
prepareDistributionSettings
public Map<UUID,Set<UUID>> prepareDistributionSettings(Configuration libraryConfiguration, Configuration targetConfiguration, DistributionSupport libraryDistributionSupport) Description copied from interface:ILibraryUpdateServicePrepares the map with disstribution settings- Specified by:
prepareDistributionSettingsin interfaceILibraryUpdateService- Parameters:
libraryConfiguration- the libraryConfiguration, cannot benulltargetConfiguration- the target projectConfiguration, cannot benulllibraryDistributionSupport- theDistributionSupport, cannot benull- Returns:
- the map with disstribution settings, never
null
-
mergeDistributionSettings
public void mergeDistributionSettings(IDtProject dtProject, IBmNamespace ns, LibraryDescriptor libraryDescriptor) Description copied from interface:ILibraryUpdateServiceMerges the distribution settings for selected library- Specified by:
mergeDistributionSettingsin interfaceILibraryUpdateService- Parameters:
dtProject- the DT project, cannot benullns- the projectIBmNamespace, cannot benulllibraryDescriptor- the registered library descriptor, cannot benull
-
createParentConfigurationInfos
public void createParentConfigurationInfos(IDtProject dtProject, LibraryDescriptor registeredLibraryDescriptor, org.eclipse.emf.common.util.EMap<UUID, ParentSupportMode> distributives, Map<UUID, Set<UUID>> libUuids) Description copied from interface:ILibraryUpdateServiceCreates distribution settings- Specified by:
createParentConfigurationInfosin interfaceILibraryUpdateService- Parameters:
dtProject- the DT project, cannot benullregisteredLibraryDescriptor- the registered library descriptor, cannot benulldistributives- the map of distributives, cannot benulllibUuids- the map of library uids, cannot benull
-
enableModification
public void enableModification(Collection<ParentConfigurationInfo> parentConfigurationInfos, UserSupportMode changesAllowedMode, UserSupportMode changesNotRecommendedMode, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ILibraryUpdateServiceEnables modification of parent configuration infos- Specified by:
enableModificationin interfaceILibraryUpdateService- Parameters:
parentConfigurationInfos- the parent configuration infos to enable modification, cannot benullchangesAllowedMode- the changes allowed mode, cannot benullchangesNotRecommendedMode- the changes not recommended mode, cannot benullmonitor- the progress monitor, cannot benull
-
disableSupport
public void disableSupport(Collection<ParentConfigurationInfo> parentConfigurationInfos, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ILibraryUpdateServiceDisables distribution support for selectedParentConfigurationInfos- Specified by:
disableSupportin interfaceILibraryUpdateService- Parameters:
parentConfigurationInfos-ParentConfigurationInfos the support is being disabled for, cannot benull, can be emptymonitor- progress monitor, cannot benull
-
migrateModuleDataStores
public void migrateModuleDataStores(LibraryDescriptor libraryDescriptor, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ILibraryUpdateServiceMigrates data stores of the specified library to the running 1C:EDT data store version if necessary- Specified by:
migrateModuleDataStoresin interfaceILibraryUpdateService- Parameters:
libraryDescriptor- The library to perform migration to. Cannot benullmonitor- The progress monitor which controls the process. Cannot benull
-
getObjectByUuid
-