Interface IDistributionSupportManager
- All Known Implementing Classes:
DistributionSupportManager
public interface IDistributionSupportManager
DistributionSupport manager.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classChange mode request options.static classChange mode response options.static enumChange mode response option results.static classSupport mode options.static enumРезультат проверки допустимости условий поддержки со стороны пользователя для объекта пользовательской конфигурации. -
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> 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) GetsUserSupportModeformdObject.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) Установить условия поддержки для объекта пользовательской конфигурации.
-
Method Details
-
canDelete
boolean canDelete(org.eclipse.emf.ecore.EObject eObject) Checks thateObjectis deletable.- Parameters:
eObject- checkingEObject, cannot benull- Returns:
trueif checking object can be deleted,falseotherwise
-
canEdit
boolean canEdit(org.eclipse.emf.ecore.EObject eObject) Checks thateObjectis editable.- Parameters:
eObject- checkingEObject, cannot benull- Returns:
trueif checking object can be editted,falseotherwise
-
deleteConfigurationFile
Deletes configuration file. Uses for disable support.- Parameters:
distributionSupport- the distribution support innstance, cannot benull- Returns:
trueif deleted,falseotherwise
-
getChangeUserModeRequestOptions
Optional<IDistributionSupportManager.ChangeUserModeRequestOptions> getChangeUserModeRequestOptions(List<MdObject> mdObjects, ParentConfigurationInfo parent) Returns change mode request options.- Parameters:
mdObjects- the selected md-objects, cannot benullparent- 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 benullparent- the selected parent, cannot benullnewUserMode- the selected new user mode, can benullrecursiveResult- 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 benullnewParentMode- the selected new parent mode, can benullnewModuleDistributionResult- 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
nullif 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
nullif 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
nullif there is no information found by the context object
-
getObjectConformityForUser
Optional<UserSupportMode> getObjectConformityForUser(ParentConfigurationInfo parent, MdObject mdObject) Получить соответствующий объект и условия поддержки для объекта пользовательской конфигурации.- Parameters:
parent- the parent configuration info, cannot benullmdObject- 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 benullmdObject- 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
GetsUserSupportModeformdObject.- 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
void setObjectSupportModeForUser(ParentConfigurationInfo parent, MdObject mdObject, UserSupportMode newUserMode) Установить условия поддержки для объекта пользовательской конфигурации. Проверки не выполняются.- Parameters:
parent- the parent configuration info, cannot benullmdObject- the md-object for support, cannot benullnewUserMode- 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 benullnewParentMode- the new parent mode, cannot benulldistributive- 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 benullnewObjectModuleEnabled- the object module enablement flag, cannot benullobjectModule- the object nodule entry, cannot benull
-