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, IExtensionProjectManager extensionProjectManager, IDtProjectResourceLifecycleBootstrap dtProjectResourceLifecycleBootstrap, IDtProjectManager dtProjectManager, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService, com._1c.g5.ides.monitoring.IMonitoringEventDispatcher monitoringEventDispatcher) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateParentConfigurationInfos(IDtProject dtProject, LibraryDescriptor libraryDescriptor, org.eclipse.emf.common.util.EMap<UUID, ParentSupportMode> distributives, Map<UUID, Set<UUID>> libUuids, org.eclipse.emf.common.util.EMap<UUID, ParentSupportMode> ancestorDistributives, Map<UUID, Set<UUID>> ancestorLibUuids) 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 infosvoidlink()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 settingsvoidupdateIntegrationSettings(IDtProject dtProject, LibraryDescriptor registeredLibraryDescriptor, Set<String> excludedTopObjectFqns) Updates or creates integration settings of a specified library to a target project
-
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, IExtensionProjectManager extensionProjectManager, IDtProjectResourceLifecycleBootstrap dtProjectResourceLifecycleBootstrap, IDtProjectManager dtProjectManager, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService, com._1c.g5.ides.monitoring.IMonitoringEventDispatcher monitoringEventDispatcher) - 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 benullextensionProjectManager- theIExtensionProjectManagerservice reference, cannot benulldtProjectResourceLifecycleBootstrap- theIDtProjectResourceLifecycleBootstrapservice reference, cannot benulldtProjectManager- theIDtProjectResourceLifecycleBootstrapservice reference, cannot benullworkspaceOrchestrator- theIWorkspaceOrchestratorinstance, cannot benullresourceImportService- theIVirtualProjectResourceImportServiceservice reference, cannot benullmonitoringEventDispatcher- theIMonitoringEventDispatcherservice 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 libraryDescriptor, org.eclipse.emf.common.util.EMap<UUID, ParentSupportMode> distributives, Map<UUID, Set<UUID>> libUuids, org.eclipse.emf.common.util.EMap<UUID, ParentSupportMode> ancestorDistributives, Map<UUID, Set<UUID>> ancestorLibUuids) Description copied from interface:ILibraryUpdateServiceCreates distribution settings- Specified by:
createParentConfigurationInfosin interfaceILibraryUpdateService- Parameters:
dtProject- the DT project, cannot benulllibraryDescriptor- the registered library descriptor, cannot benulldistributives- the map of distributives, cannot benull, can be emptylibUuids- the map of library uids, cannot benull, can be emptyancestorDistributives- the map of distributives from a previous version of a library, cannot benull, can be emptyancestorLibUuids- the map of library uids from a previous version of a library, cannot benull, can be empty
-
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
-
updateIntegrationSettings
public void updateIntegrationSettings(IDtProject dtProject, LibraryDescriptor registeredLibraryDescriptor, Set<String> excludedTopObjectFqns) Description copied from interface:ILibraryUpdateServiceUpdates or creates integration settings of a specified library to a target project- Specified by:
updateIntegrationSettingsin interfaceILibraryUpdateService- Parameters:
dtProject- the DT project, cannot benullregisteredLibraryDescriptor- the registered library descriptor, cannot benullexcludedTopObjectFqns- The set of FQNs of objects that should be excluded from the integrated library of the specified project. Cannot benull
-