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 TypeMethodDescriptionboolean
canDelete
(org.eclipse.emf.ecore.EObject eObject) Checks thateObject
is deletable.boolean
canEdit
(org.eclipse.emf.ecore.EObject eObject) Checks thateObject
is editable.boolean
deleteConfigurationFile
(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) GetsUserSupportMode
formdObject
.void
init
(ProjectContext projectContext) Performs initialization sequence for this service right after resource loading phase is complete.void
setDistributionObjectModuleEnabled
(MdObject mdObject, Boolean newObjectModuleEnabled, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, Boolean> objectModule) Sets the object module enablement flag for selected objectvoid
setDistributionParentSupportMode
(MdObject mdObject, ParentSupportMode newParentMode, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, ParentSupportMode> distributive) Sets the distribution parent support mode for selected objectvoid
setObjectSupportModeForUser
(ParentConfigurationInfo parent, MdObject mdObject, UserSupportMode newUserMode) Установить условия поддержки для объекта пользовательской конфигурации.void
stop
(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:IDistributionSupportManager
Checks thateObject
is deletable.- Specified by:
canDelete
in interfaceIDistributionSupportManager
- Parameters:
eObject
- checkingEObject
, cannot benull
- Returns:
true
if checking object can be deleted,false
otherwise
-
canEdit
public boolean canEdit(org.eclipse.emf.ecore.EObject eObject) Description copied from interface:IDistributionSupportManager
Checks thateObject
is editable.- Specified by:
canEdit
in interfaceIDistributionSupportManager
- Parameters:
eObject
- checkingEObject
, cannot benull
- Returns:
true
if checking object can be editted,false
otherwise
-
getChangeUserModeRequestOptions
public Optional<IDistributionSupportManager.ChangeUserModeRequestOptions> getChangeUserModeRequestOptions(List<MdObject> mdObjects, ParentConfigurationInfo parent) Description copied from interface:IDistributionSupportManager
Returns change mode request options.- Specified by:
getChangeUserModeRequestOptions
in interfaceIDistributionSupportManager
- Parameters:
mdObjects
- the selected md-objects, cannot benull
parent
- 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:IDistributionSupportManager
Returns change mode request options.- Specified by:
getChangeDistributeSettingsRequestOptions
in 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:IDistributionSupportManager
Returns change mode response options.- Specified by:
getChangeUserModeResponseOptions
in interfaceIDistributionSupportManager
- Parameters:
selectedObjects
- the selected md-objects, cannot benull
parent
- the selected parent, cannot benull
resultUserMode
- the selected new user mode, can benull
recursiveResult
- 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:IDistributionSupportManager
Returns change distribution settings response options.- Specified by:
getChangeDistributionSettingsResponseOptions
in interfaceIDistributionSupportManager
- Parameters:
selectedObjects
- the selected md-objects, cannot benull
newParentMode
- the selected new parent mode, can benull
newModuleDistributionResult
- 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:IDistributionSupportManager
Returns the Distribution Support information by the context object.- Specified by:
getDistributionSupport
in interfaceIDistributionSupportManager
- Parameters:
contextObject
- the context object to get Distribution Support information, cannot benull
- Returns:
- the Distribution Support information, may be
null
if there is no information found by the context object
-
getDistributionSupport
Description copied from interface:IDistributionSupportManager
Returns the Distribution Support information by the dt-project.- Specified by:
getDistributionSupport
in interfaceIDistributionSupportManager
- Parameters:
dtProject
- the dt-project to get Distribution Support information, cannot benull
- Returns:
- the Distribution Support information, may be
null
if there is no information found by the context object
-
getDistributionSupport
public Optional<DistributionSupport> getDistributionSupport(org.eclipse.core.resources.IProject project) Description copied from interface:IDistributionSupportManager
Returns the Distribution Support information by the project.- Specified by:
getDistributionSupport
in interfaceIDistributionSupportManager
- Parameters:
project
- the project to get Distribution Support information, cannot benull
- Returns:
- the Distribution Support information, may be
null
if 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:
getObjectConformityForUser
in interfaceIDistributionSupportManager
- Parameters:
parent
- the parent configuration info, cannot benull
mdObject
- the md-object for support, cannot benull
- Returns:
-
getSupportLanguages
Description copied from interface:IDistributionSupportManager
Returns parent configuration support languages.- Specified by:
getSupportLanguages
in 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:IDistributionSupportManager
Returns optional parent configuration parent and user support modes for md-object.- Specified by:
getSupportModes
in interfaceIDistributionSupportManager
- Parameters:
parent
- the parent configuration info, cannot benull
mdObject
- 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:IDistributionSupportManager
Returns optional distribution settings for md-object.- Specified by:
getDistributionSettings
in interfaceIDistributionSupportManager
- Parameters:
mdObject
- the md-object for support, cannot benull
- Returns:
- distribution settings for md-object, never
null
-
getUserSupportMode
Description copied from interface:IDistributionSupportManager
GetsUserSupportMode
formdObject
.- Specified by:
getUserSupportMode
in interfaceIDistributionSupportManager
- Parameters:
mdObject
-MdObject
for gettingUserSupportMode
, cannot benull
- Returns:
- actual
UserSupportMode
forMdObject
, can benull
if there is no information about supporting type for this object. IfConfiguration
corresponding to themdObject
has 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:
setObjectSupportModeForUser
in interfaceIDistributionSupportManager
- Parameters:
parent
- the parent configuration info, cannot benull
mdObject
- the md-object for support, cannot benull
newUserMode
- 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:IDistributionSupportManager
Sets the distribution parent support mode for selected object- Specified by:
setDistributionParentSupportMode
in interfaceIDistributionSupportManager
- Parameters:
mdObject
- the MD object, cannot benull
newParentMode
- the new parent mode, cannot benull
distributive
- 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:IDistributionSupportManager
Sets the object module enablement flag for selected object- Specified by:
setDistributionObjectModuleEnabled
in interfaceIDistributionSupportManager
- Parameters:
mdObject
- the MD object, cannot benull
newObjectModuleEnabled
- the object module enablement flag, cannot benull
objectModule
- the object nodule entry, cannot benull
-
deleteConfigurationFile
Description copied from interface:IDistributionSupportManager
Deletes configuration file. Uses for disable support.- Specified by:
deleteConfigurationFile
in interfaceIDistributionSupportManager
- Parameters:
distributionSupport
- the distribution support innstance, cannot benull
- Returns:
true
if deleted,false
otherwise
-
getParentConfigurationVersions
Description copied from interface:IDistributionSupportManager
Returns parent configuration versions.- Specified by:
getParentConfigurationVersions
in interfaceIDistributionSupportManager
- Parameters:
dtProject
- the DT project, cannot benull
- Returns:
- the parent configuration versions, never
null
-