Class ParentConfigurationInfoIndex

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

public class ParentConfigurationInfoIndex extends Object
ParentConfigurationInfo index implementation.
  • Constructor Details

    • ParentConfigurationInfoIndex

      public ParentConfigurationInfoIndex()
  • Method Details

    • addItem

      public void addItem(UUID userId, UUID parentId, long itemBmId)
      Parameters:
      userId - the configuration info item user id, cannot be null
      parentId - the configuration info item parent id, cannot be null
      itemBmId - the ParentConfigurationInfoItem instance bm id
    • getItem

      public Optional<Long> getItem(UUID userId)
      Returns ParentConfigurationInfoItem by its user id.
      Parameters:
      userId - the configuration info item user id, cannot be null
      Returns:
      ParentConfigurationInfoItem by its user id, never null. Empty if there is no information about distribution support for item with this user id
    • getUserIds

      public Collection<UUID> getUserIds(UUID parentId)
      Returns set of the user id corresponding to the configuration info items for parent with concrete id.
      Returns:
      set of user id corresponding to the configuration info items for parent with concrete id, never null
    • insertLanguage

      public boolean insertLanguage(String languageCode)
      Inserts support language code in upper case.
      Parameters:
      languageCode - the language code in upper case, cannot be null
      Returns:
      true if this set did not already contain the specified element, false otherwise
    • getLanguages

      public Set<String> getLanguages()
      Returns support languages.
      Returns:
      the support languages, cannot be null