Interface IDistributionSupportManager

All Known Implementing Classes:
DistributionSupportManager

public interface IDistributionSupportManager
  • Method Details

    • canDelete

      boolean canDelete(org.eclipse.emf.ecore.EObject eObject)
      Checks that eObject is deletable.
      Parameters:
      eObject - checking EObject, cannot be null
      Returns:
      true if checking object can be deleted, false otherwise
    • canEdit

      boolean canEdit(org.eclipse.emf.ecore.EObject eObject)
      Checks that eObject is editable.
      Parameters:
      eObject - checking EObject, cannot be null
      Returns:
      true if checking object can be editted, false otherwise
    • deleteConfigurationFile

      boolean deleteConfigurationFile(DistributionSupport distributionSupport)
      Deletes configuration file. Uses for disable support.
      Parameters:
      distributionSupport - the distribution support innstance, cannot be null
      Returns:
      true if deleted, false otherwise
    • getChangeUserModeRequestOptions

      Returns change mode request options.
      Parameters:
      mdObjects - the selected md-objects, cannot be null
      parent - the selected parent, cannot be null
      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 be null
      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 be null
      parent - the selected parent, cannot be null
      newUserMode - the selected new user mode, can be null
      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 be null
      newParentMode - the selected new parent mode, can be null
      newModuleDistributionResult - the selected new module distribution evablement flag, can be null
      Returns:
      the response options, never null
    • getDistributionSupport

      Optional<DistributionSupport> getDistributionSupport(org.eclipse.emf.ecore.EObject contextObject)
      Returns the Distribution Support information by the context object.
      Parameters:
      contextObject - the context object to get Distribution Support information, cannot be null
      Returns:
      the Distribution Support information, may be null if there is no information found by the context object
    • getDistributionSupport

      Optional<DistributionSupport> getDistributionSupport(IDtProject dtProject)
      Returns the Distribution Support information by the dt-project.
      Parameters:
      dtProject - the dt-project to get Distribution Support information, cannot be null
      Returns:
      the Distribution Support information, may be null if there is no information found by the context object
    • getDistributionSupport

      Optional<DistributionSupport> getDistributionSupport(org.eclipse.core.resources.IProject project)
      Returns the Distribution Support information by the project.
      Parameters:
      project - the project to get Distribution Support information, cannot be null
      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 be null
      mdObject - the md-object for support, cannot be null
      Returns:
    • getParentConfigurationVersions

      List<UUID> getParentConfigurationVersions(IDtProject dtProject)
      Returns parent configuration versions.
      Parameters:
      dtProject - the DT project, cannot be null
      Returns:
      the parent configuration versions, never null
    • getSupportLanguages

      Set<String> getSupportLanguages(ParentConfigurationInfo parent)
      Returns parent configuration support languages.
      Parameters:
      parent - the parent configuration info, cannot be null
      Returns:
      the support languages, cannot be null
    • getSupportModes

      Returns optional parent configuration parent and user support modes for md-object.
      Parameters:
      parent - the parent configuration info, cannot be null
      mdObject - the md-object for support, cannot be null
      Returns:
      optional parent configuration parent and user support modes for md-object, never null
    • getDistributionSettings

      Optional<Pair<ParentSupportMode,Boolean>> getDistributionSettings(MdObject mdObject)
      Returns optional distribution settings for md-object.
      Parameters:
      mdObject - the md-object for support, cannot be null
      Returns:
      distribution settings for md-object, never null
    • getUserSupportMode

      Optional<UserSupportMode> getUserSupportMode(MdObject mdObject)
      Gets UserSupportMode for mdObject.
      Parameters:
      mdObject - MdObject for getting UserSupportMode, cannot be null
      Returns:
      actual UserSupportMode for MdObject, can be null if there is no information about supporting type for this object. If Configuration corresponding to the mdObject has several parent configuration this method returns the strictest UserSupportMode. 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 be null
      mdObject - the md-object for support, cannot be null
      newUserMode - the new user mode, cannot be null
    • 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 be null
      newParentMode - the new parent mode, cannot be null
      distributive - the distributive entry, cannot be null
    • 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 be null
      newObjectModuleEnabled - the object module enablement flag, cannot be null
      objectModule - the object nodule entry, cannot be null