Class DistributionSupportManager
java.lang.Object
com.e1c.g5.v8.dt.internal.library.distribution.DistributionSupportManager
- All Implemented Interfaces:
IDistributionSupportManager
@LifecycleService(name="DistributionSupportManager")
public class DistributionSupportManager
extends Object
implements IDistributionSupportManager
IDistributionSupportManager implementation.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.g5.v8.dt.library.distribution.IDistributionSupportManager
IDistributionSupportManager.ChangeDistributionSettingsRequestOptions, IDistributionSupportManager.ChangeDistributionSettingsResponseOptions, IDistributionSupportManager.ChangeUserModeRequestOptions, IDistributionSupportManager.ChangeUserModeResponseOptions, IDistributionSupportManager.ChangeUserModeResponseOptionsResult, IDistributionSupportManager.SupportModeOptions, IDistributionSupportManager.UserSupportModeQueryResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDelete(org.eclipse.emf.ecore.EObject eObject) Checks thateObjectis deletable.booleancanEdit(org.eclipse.emf.ecore.EObject eObject) Checks thateObjectis editable.booleandeleteConfigurationFile(DistributionSupport distributionSupport) Deletes configuration file.getChangeDistributeSettingsRequestOptions(List<MdObject> mdObjects) Returns change mode request options.getChangeDistributionSettingsResponseOptions(List<MdObject> selectedObjects, ParentSupportMode newParentMode, Boolean newModuleDistributionResult) Returns change distribution settings response options.getChangeUserModeRequestOptions(List<MdObject> mdObjects, ParentConfigurationInfo parent) Returns change mode request options.getChangeUserModeResponseOptions(List<MdObject> selectedObjects, ParentConfigurationInfo parent, UserSupportMode resultUserMode, boolean recursiveResult) Returns change mode response options.getDistributionSettings(MdObject mdObject) Returns optional distribution settings for md-object.getDistributionSupport(IDtProject dtProject) Returns the Distribution Support information by the dt-project.getDistributionSupport(org.eclipse.core.resources.IProject project) Returns the Distribution Support information by the project.getDistributionSupport(org.eclipse.emf.ecore.EObject contextObject) Returns the Distribution Support information by the context object.getObjectConformityForUser(ParentConfigurationInfo parent, MdObject mdObject) Получить соответствующий объект и условия поддержки для объекта пользовательской конфигурации.getParentConfigurationVersions(IDtProject dtProject) Returns parent configuration versions.Returns parent configuration support languages.getSupportModes(ParentConfigurationInfo parent, MdObject mdObject) Returns optional parent configuration parent and user support modes for md-object.getUserSupportMode(MdObject mdObject) GetsUserSupportModeformdObject.voidinit(ProjectContext projectContext) Performs initialization sequence for this service right after resource loading phase is complete.voidsetDistributionObjectModuleEnabled(MdObject mdObject, Boolean newObjectModuleEnabled, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, Boolean> objectModule) Sets the object module enablement flag for selected objectvoidsetDistributionParentSupportMode(MdObject mdObject, ParentSupportMode newParentMode, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, ParentSupportMode> distributive) Sets the distribution parent support mode for selected objectvoidsetObjectSupportModeForUser(ParentConfigurationInfo parent, MdObject mdObject, UserSupportMode newUserMode) Установить условия поддержки для объекта пользовательской конфигурации.voidstop(ProjectContext projectContext)
-
Constructor Details
-
DistributionSupportManager
public DistributionSupportManager()
-
-
Method Details
-
init
Performs initialization sequence for this service right after resource loading phase is complete.- Parameters:
projectContext- The starting project context. Cannot benull
-
stop
-
canDelete
public boolean canDelete(org.eclipse.emf.ecore.EObject eObject) Description copied from interface:IDistributionSupportManagerChecks thateObjectis deletable.- Specified by:
canDeletein interfaceIDistributionSupportManager- Parameters:
eObject- checkingEObject, cannot benull- Returns:
trueif checking object can be deleted,falseotherwise
-
canEdit
public boolean canEdit(org.eclipse.emf.ecore.EObject eObject) Description copied from interface:IDistributionSupportManagerChecks thateObjectis editable.- Specified by:
canEditin interfaceIDistributionSupportManager- Parameters:
eObject- checkingEObject, cannot benull- Returns:
trueif checking object can be editted,falseotherwise
-
getChangeUserModeRequestOptions
public Optional<IDistributionSupportManager.ChangeUserModeRequestOptions> getChangeUserModeRequestOptions(List<MdObject> mdObjects, ParentConfigurationInfo parent) Description copied from interface:IDistributionSupportManagerReturns change mode request options.- Specified by:
getChangeUserModeRequestOptionsin interfaceIDistributionSupportManager- Parameters:
mdObjects- the selected md-objects, cannot benullparent- the selected parent, cannot benull- Returns:
- the change mode request options, never
null
-
getChangeDistributeSettingsRequestOptions
public Optional<IDistributionSupportManager.ChangeDistributionSettingsRequestOptions> getChangeDistributeSettingsRequestOptions(List<MdObject> mdObjects) Description copied from interface:IDistributionSupportManagerReturns change mode request options.- Specified by:
getChangeDistributeSettingsRequestOptionsin interfaceIDistributionSupportManager- Parameters:
mdObjects- the selected md-objects, cannot benull- Returns:
- the change mode request options, never
null
-
getChangeUserModeResponseOptions
public Optional<IDistributionSupportManager.ChangeUserModeResponseOptions> getChangeUserModeResponseOptions(List<MdObject> selectedObjects, ParentConfigurationInfo parent, UserSupportMode resultUserMode, boolean recursiveResult) Description copied from interface:IDistributionSupportManagerReturns change mode response options.- Specified by:
getChangeUserModeResponseOptionsin interfaceIDistributionSupportManager- Parameters:
selectedObjects- the selected md-objects, cannot benullparent- the selected parent, cannot benullresultUserMode- the selected new user mode, can benullrecursiveResult- the recursive result flag- Returns:
- the response options, never
null
-
getChangeDistributionSettingsResponseOptions
public Optional<IDistributionSupportManager.ChangeDistributionSettingsResponseOptions> getChangeDistributionSettingsResponseOptions(List<MdObject> selectedObjects, ParentSupportMode newParentMode, Boolean newModuleDistributionResult) Description copied from interface:IDistributionSupportManagerReturns change distribution settings response options.- Specified by:
getChangeDistributionSettingsResponseOptionsin interfaceIDistributionSupportManager- Parameters:
selectedObjects- the selected md-objects, cannot benullnewParentMode- the selected new parent mode, can benullnewModuleDistributionResult- the selected new module distribution evablement flag, can benull- Returns:
- the response options, never
null
-
getDistributionSupport
public Optional<DistributionSupport> getDistributionSupport(org.eclipse.emf.ecore.EObject contextObject) Description copied from interface:IDistributionSupportManagerReturns the Distribution Support information by the context object.- Specified by:
getDistributionSupportin interfaceIDistributionSupportManager- Parameters:
contextObject- the context object to get Distribution Support information, cannot benull- Returns:
- the Distribution Support information, may be
nullif there is no information found by the context object
-
getDistributionSupport
Description copied from interface:IDistributionSupportManagerReturns the Distribution Support information by the dt-project.- Specified by:
getDistributionSupportin interfaceIDistributionSupportManager- Parameters:
dtProject- the dt-project to get Distribution Support information, cannot benull- Returns:
- the Distribution Support information, may be
nullif there is no information found by the context object
-
getDistributionSupport
public Optional<DistributionSupport> getDistributionSupport(org.eclipse.core.resources.IProject project) Description copied from interface:IDistributionSupportManagerReturns the Distribution Support information by the project.- Specified by:
getDistributionSupportin interfaceIDistributionSupportManager- Parameters:
project- the project to get Distribution Support information, cannot benull- Returns:
- the Distribution Support information, may be
nullif there is no information found by the context object
-
getObjectConformityForUser
public Optional<UserSupportMode> getObjectConformityForUser(ParentConfigurationInfo parent, MdObject mdObject) Description copied from interface:IDistributionSupportManagerПолучить соответствующий объект и условия поддержки для объекта пользовательской конфигурации.- Specified by:
getObjectConformityForUserin interfaceIDistributionSupportManager- Parameters:
parent- the parent configuration info, cannot benullmdObject- the md-object for support, cannot benull- Returns:
-
getSupportLanguages
Description copied from interface:IDistributionSupportManagerReturns parent configuration support languages.- Specified by:
getSupportLanguagesin interfaceIDistributionSupportManager- Parameters:
parent- the parent configuration info, cannot benull- Returns:
- the support languages, cannot be
null
-
getSupportModes
public Optional<Pair<ParentSupportMode,UserSupportMode>> getSupportModes(ParentConfigurationInfo parent, MdObject mdObject) Description copied from interface:IDistributionSupportManagerReturns optional parent configuration parent and user support modes for md-object.- Specified by:
getSupportModesin interfaceIDistributionSupportManager- Parameters:
parent- the parent configuration info, cannot benullmdObject- the md-object for support, cannot benull- Returns:
- optional parent configuration parent and user support modes for md-object, never
null
-
getDistributionSettings
Description copied from interface:IDistributionSupportManagerReturns optional distribution settings for md-object.- Specified by:
getDistributionSettingsin interfaceIDistributionSupportManager- Parameters:
mdObject- the md-object for support, cannot benull- Returns:
- distribution settings for md-object, never
null
-
getUserSupportMode
Description copied from interface:IDistributionSupportManagerGetsUserSupportModeformdObject.- Specified by:
getUserSupportModein interfaceIDistributionSupportManager- Parameters:
mdObject-MdObjectfor gettingUserSupportMode, cannot benull- Returns:
- actual
UserSupportModeforMdObject, can benullif there is no information about supporting type for this object. IfConfigurationcorresponding to themdObjecthas several parent configuration this method returns the strictestUserSupportMode.UserSupportMode.CANCELLED<UserSupportMode.CHANGES_ALLOWED<UserSupportMode.CHANGES_NOT_ALLOWED
-
setObjectSupportModeForUser
public void setObjectSupportModeForUser(ParentConfigurationInfo parent, MdObject mdObject, UserSupportMode newUserMode) Description copied from interface:IDistributionSupportManagerУстановить условия поддержки для объекта пользовательской конфигурации. Проверки не выполняются.- Specified by:
setObjectSupportModeForUserin interfaceIDistributionSupportManager- Parameters:
parent- the parent configuration info, cannot benullmdObject- the md-object for support, cannot benullnewUserMode- the new user mode, cannot benull
-
setDistributionParentSupportMode
public void setDistributionParentSupportMode(MdObject mdObject, ParentSupportMode newParentMode, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, ParentSupportMode> distributive) Description copied from interface:IDistributionSupportManagerSets the distribution parent support mode for selected object- Specified by:
setDistributionParentSupportModein interfaceIDistributionSupportManager- Parameters:
mdObject- the MD object, cannot benullnewParentMode- the new parent mode, cannot benulldistributive- the distributive entry, cannot benull
-
setDistributionObjectModuleEnabled
public void setDistributionObjectModuleEnabled(MdObject mdObject, Boolean newObjectModuleEnabled, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, Boolean> objectModule) Description copied from interface:IDistributionSupportManagerSets the object module enablement flag for selected object- Specified by:
setDistributionObjectModuleEnabledin interfaceIDistributionSupportManager- Parameters:
mdObject- the MD object, cannot benullnewObjectModuleEnabled- the object module enablement flag, cannot benullobjectModule- the object nodule entry, cannot benull
-
deleteConfigurationFile
Description copied from interface:IDistributionSupportManagerDeletes configuration file. Uses for disable support.- Specified by:
deleteConfigurationFilein interfaceIDistributionSupportManager- Parameters:
distributionSupport- the distribution support innstance, cannot benull- Returns:
trueif deleted,falseotherwise
-
getParentConfigurationVersions
Description copied from interface:IDistributionSupportManagerReturns parent configuration versions.- Specified by:
getParentConfigurationVersionsin interfaceIDistributionSupportManager- Parameters:
dtProject- the DT project, cannot benull- Returns:
- the parent configuration versions, never
null
-