Class DistributionSupportIndexProvider

java.lang.Object
com.e1c.g5.v8.dt.internal.distribution.index.DistributionSupportIndexProvider

public class DistributionSupportIndexProvider extends Object
DistributionSupport model index provider.
  • Constructor Details

    • DistributionSupportIndexProvider

      public DistributionSupportIndexProvider()
  • Method Details

    • initialize

      public void initialize(IDtProject dtProject)
      Initializes the provider during the project context start
      Parameters:
      dtProject - The IDtProject being started. Cannot be null
    • removeIndex

      public void removeIndex(IDtProject dtProject)
      Clears service state data on closing of a project
      Parameters:
      dtProject - The IDtProject being stopped. Cannot be null
    • getAllChildrenIds

      public Collection<UUID> getAllChildrenIds(DistributionSupport distributionSupport, UUID parentId)
      Returns all user UUID's by parent configuration UUID.
      Parameters:
      distributionSupport - the distribution support, cannot be null
      parentId - the parent md-object id, cannot be null
      Returns:
      the all user UUID's by parent UUID or empty if not present
    • getParentSupportMode

      public Optional<ParentSupportMode> getParentSupportMode(ParentConfigurationInfo parent, UUID userId)
      Returns parent support mode by user md-object UUID.
      Parameters:
      parent - the parent configuration info, cannot be null
      userId - the user id, cannot be null
      Returns:
      optional parent support mode, can be empty, never null
    • setDistributionParentSupportMode

      public void setDistributionParentSupportMode(MdObject mdObject, org.eclipse.emf.common.util.BasicEMap.Entry<UUID,ParentSupportMode> distributive, DistributionSupport distributionSupport)
      Sets distributive settings for selected object
      Parameters:
      mdObject - the MD object, cannot be null
      distributive - the distributive entry, cannot be null
      distributionSupport - the reference to DistributionSupport, cannot be null
    • setDistributionObjectModuleEnabled

      public void setDistributionObjectModuleEnabled(MdObject mdObject, org.eclipse.emf.common.util.BasicEMap.Entry<UUID,Boolean> objectModule, DistributionSupport distributionSupport)
      Sets object module settings for selected object
      Parameters:
      mdObject - the MD object, cannot be null
      objectModule - the object nodule entry, cannot be null
      distributionSupport - the reference to DistributionSupport, cannot be null
    • getSupportLanguages

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

      public Optional<Pair<ParentSupportMode,UserSupportMode>> getSupportModes(ParentConfigurationInfo parent, UUID userId)
      Returns optional parent configuration parent and user support modes for md-object.
      Parameters:
      parent - the parent configuration info, cannot be null
      userId - the user id, cannot be null
      Returns:
      optional parent configuration parent and user support modes for md-object, never null
    • getDistributionSettings

      public Optional<Pair<ParentSupportMode,Boolean>> getDistributionSettings(MdObject mdObject)
    • getUserSupportMode

      public Optional<UserSupportMode> getUserSupportMode(ParentConfigurationInfo parent, UUID userId)
      Returns user support mode by user md-object UUID.
      Parameters:
      parent - the parent configuration info, cannot be null
      userId - the user id, cannot be null
      Returns:
      optional user support mode, can be empty, never null
    • setUserSupportMode

      public void setUserSupportMode(ParentConfigurationInfo parent, UUID userId, UserSupportMode userSupportMode)
      Sets new user support mode to user UUID,s object.
      Parameters:
      parent - the parent configuration info, cannot be null
      userId - the user id, cannot be null
      newUserMode - the new user mode, cannot be null