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 TypeMethodDescriptionvoid
createParentConfigurationInfos
(IDtProject dtProject, LibraryDescriptor registeredLibraryDescriptor, org.eclipse.emf.common.util.EMap<UUID, ParentSupportMode> distributives, Map<UUID, Set<UUID>> libUuids) Creates distribution settingsvoid
disableSupport
(Collection<ParentConfigurationInfo> parentConfigurationInfos, org.eclipse.core.runtime.IProgressMonitor monitor) Disables distribution support for selectedParentConfigurationInfo
svoid
enableModification
(Collection<ParentConfigurationInfo> parentConfigurationInfos, UserSupportMode changesAllowedMode, UserSupportMode changesNotRecommendedMode, org.eclipse.core.runtime.IProgressMonitor monitor) Enables modification of parent configuration infosstatic IBmObject
getObjectByUuid
(IBmTransaction transaction, UUID uuid) void
link()
void
mergeDistributionSettings
(IDtProject dtProject, IBmNamespace ns, LibraryDescriptor libraryDescriptor) Merges the distribution settings for selected libraryvoid
migrateModuleDataStores
(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
- theIServicesOrchestrator
instance, cannot benull
supplySettingsManager
- theISupplySettingsManager
instance, cannot benull
dependenciesManager
- theIDependenciesManager
instance, cannot benull
bmModelManager
- theIBmModelManager
instance, cannot benull
v8ProjectManager
- theIV8ProjectManager
instance, cannot benull
configurationProvider
- theIConfigurationProvider
instance, cannot benull
libraryProjectManager
- theILibraryProjectManager
instance, cannot benull
libraryRegistry
- theILibraryRegistry
instance, cannot benull
libraryRepository
- theILibraryRepository
instance, cannot benull
distributionSupportManager
- theIDistributionSupportManager
instance, cannot benull
configurationProjectManager
- theIConfigurationProjectManager
service reference, cannot benull
dtProjectResourceLifecycleBootstrap
- theIDtProjectResourceLifecycleBootstrap
service reference, cannot benull
dtProjectManager
- theIDtProjectResourceLifecycleBootstrap
service reference, cannot benull
workspaceOrchestrator
- theIWorkspaceOrchestrator
instance, cannot benull
resourceImportService
- theIVirtualProjectResourceImportService
service reference, cannot benull
-
-
Method Details
-
link
-
prepareDistributionSettings
public Map<UUID,Set<UUID>> prepareDistributionSettings(Configuration libraryConfiguration, Configuration targetConfiguration, DistributionSupport libraryDistributionSupport) Description copied from interface:ILibraryUpdateService
Prepares the map with disstribution settings- Specified by:
prepareDistributionSettings
in interfaceILibraryUpdateService
- Parameters:
libraryConfiguration
- the libraryConfiguration
, cannot benull
targetConfiguration
- the target projectConfiguration
, cannot benull
libraryDistributionSupport
- 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:ILibraryUpdateService
Merges the distribution settings for selected library- Specified by:
mergeDistributionSettings
in interfaceILibraryUpdateService
- Parameters:
dtProject
- the DT project, cannot benull
ns
- the projectIBmNamespace
, cannot benull
libraryDescriptor
- 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:ILibraryUpdateService
Creates distribution settings- Specified by:
createParentConfigurationInfos
in interfaceILibraryUpdateService
- Parameters:
dtProject
- the DT project, cannot benull
registeredLibraryDescriptor
- the registered library descriptor, cannot benull
distributives
- the map of distributives, cannot benull
libUuids
- 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:ILibraryUpdateService
Enables modification of parent configuration infos- Specified by:
enableModification
in interfaceILibraryUpdateService
- Parameters:
parentConfigurationInfos
- the parent configuration infos to enable modification, cannot benull
changesAllowedMode
- the changes allowed mode, cannot benull
changesNotRecommendedMode
- the changes not recommended mode, cannot benull
monitor
- the progress monitor, cannot benull
-
disableSupport
public void disableSupport(Collection<ParentConfigurationInfo> parentConfigurationInfos, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ILibraryUpdateService
Disables distribution support for selectedParentConfigurationInfo
s- Specified by:
disableSupport
in interfaceILibraryUpdateService
- Parameters:
parentConfigurationInfos
-ParentConfigurationInfo
s 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:ILibraryUpdateService
Migrates data stores of the specified library to the running 1C:EDT data store version if necessary- Specified by:
migrateModuleDataStores
in interfaceILibraryUpdateService
- Parameters:
libraryDescriptor
- The library to perform migration to. Cannot benull
monitor
- The progress monitor which controls the process. Cannot benull
-
getObjectByUuid
-