Interface IDistributionSupportManager
- All Known Implementing Classes:
DistributionSupportManager
public interface IDistributionSupportManager
DistributionSupport
manager.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
static class
Change mode request options.static class
Change mode response options.static enum
Change mode response option results.static class
Support mode options.static enum
Результат проверки допустимости условий поддержки со стороны пользователя для объекта пользовательской конфигурации. -
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> mdObjects, ParentSupportMode newParentMode, Boolean newModuleDistributionResult) Returns change distribution settings response options.getChangeUserModeRequestOptions
(List<MdObject> mdObjects, ParentConfigurationInfo parent) Returns change mode request options.getChangeUserModeResponseOptions
(List<MdObject> mdObjects, ParentConfigurationInfo parent, UserSupportMode newUserMode, 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
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) Установить условия поддержки для объекта пользовательской конфигурации.
-
Method Details
-
canDelete
boolean canDelete(org.eclipse.emf.ecore.EObject eObject) Checks thateObject
is deletable.- Parameters:
eObject
- checkingEObject
, cannot benull
- Returns:
true
if checking object can be deleted,false
otherwise
-
canEdit
boolean canEdit(org.eclipse.emf.ecore.EObject eObject) Checks thateObject
is editable.- Parameters:
eObject
- checkingEObject
, cannot benull
- Returns:
true
if checking object can be editted,false
otherwise
-
deleteConfigurationFile
Deletes configuration file. Uses for disable support.- Parameters:
distributionSupport
- the distribution support innstance, cannot benull
- Returns:
true
if deleted,false
otherwise
-
getChangeUserModeRequestOptions
Optional<IDistributionSupportManager.ChangeUserModeRequestOptions> getChangeUserModeRequestOptions(List<MdObject> mdObjects, ParentConfigurationInfo parent) Returns change mode request options.- Parameters:
mdObjects
- the selected md-objects, cannot benull
parent
- the selected parent, cannot benull
- Returns:
- the change mode request options, never
null
-
getChangeDistributeSettingsRequestOptions
Optional<IDistributionSupportManager.ChangeDistributionSettingsRequestOptions> getChangeDistributeSettingsRequestOptions(List<MdObject> mdObjects) Returns change mode request options.- Parameters:
mdObjects
- the selected md-objects, cannot benull
- Returns:
- the change mode request options, never
null
-
getChangeUserModeResponseOptions
Optional<IDistributionSupportManager.ChangeUserModeResponseOptions> getChangeUserModeResponseOptions(List<MdObject> mdObjects, ParentConfigurationInfo parent, UserSupportMode newUserMode, boolean recursiveResult) Returns change mode response options.- Parameters:
mdObjects
- the selected md-objects, cannot benull
parent
- the selected parent, cannot benull
newUserMode
- the selected new user mode, can benull
recursiveResult
- the recursive result flag- Returns:
- the response options, never
null
-
getChangeDistributionSettingsResponseOptions
Optional<IDistributionSupportManager.ChangeDistributionSettingsResponseOptions> getChangeDistributionSettingsResponseOptions(List<MdObject> mdObjects, ParentSupportMode newParentMode, Boolean newModuleDistributionResult) Returns change distribution settings response options.- Parameters:
mdObjects
- 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
Returns the Distribution Support information by the context object.- 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
Returns the Distribution Support information by the dt-project.- 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
Returns the Distribution Support information by the project.- 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
Optional<UserSupportMode> getObjectConformityForUser(ParentConfigurationInfo parent, MdObject mdObject) Получить соответствующий объект и условия поддержки для объекта пользовательской конфигурации.- Parameters:
parent
- the parent configuration info, cannot benull
mdObject
- the md-object for support, cannot benull
- Returns:
-
getParentConfigurationVersions
Returns parent configuration versions.- Parameters:
dtProject
- the DT project, cannot benull
- Returns:
- the parent configuration versions, never
null
-
getSupportLanguages
Returns parent configuration support languages.- Parameters:
parent
- the parent configuration info, cannot benull
- Returns:
- the support languages, cannot be
null
-
getSupportModes
Optional<Pair<ParentSupportMode,UserSupportMode>> getSupportModes(ParentConfigurationInfo parent, MdObject mdObject) Returns optional parent configuration parent and user support modes for md-object.- 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
Returns optional distribution settings for md-object.- Parameters:
mdObject
- the md-object for support, cannot benull
- Returns:
- distribution settings for md-object, never
null
-
getUserSupportMode
GetsUserSupportMode
formdObject
.- 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
void setObjectSupportModeForUser(ParentConfigurationInfo parent, MdObject mdObject, UserSupportMode newUserMode) Установить условия поддержки для объекта пользовательской конфигурации. Проверки не выполняются.- Parameters:
parent
- the parent configuration info, cannot benull
mdObject
- the md-object for support, cannot benull
newUserMode
- the new user mode, cannot benull
-
setDistributionParentSupportMode
void setDistributionParentSupportMode(MdObject mdObject, ParentSupportMode newParentMode, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, ParentSupportMode> distributive) Sets the distribution parent support mode for selected object- Parameters:
mdObject
- the MD object, cannot benull
newParentMode
- the new parent mode, cannot benull
distributive
- the distributive entry, cannot benull
-
setDistributionObjectModuleEnabled
void setDistributionObjectModuleEnabled(MdObject mdObject, Boolean newObjectModuleEnabled, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, Boolean> objectModule) Sets the object module enablement flag for selected object- Parameters:
mdObject
- the MD object, cannot benull
newObjectModuleEnabled
- the object module enablement flag, cannot benull
objectModule
- the object nodule entry, cannot benull
-