Class GrouperDictionaryDao

java.lang.Object
edu.internet2.middleware.grouper.dictionary.GrouperDictionaryDao

public class GrouperDictionaryDao extends Object
dao for dictionaries
  • Constructor Details

    • GrouperDictionaryDao

      public GrouperDictionaryDao()
  • Method Details

    • selectByDataProvider

      public static Map<Long,String> selectByDataProvider(Long dataProviderInternalId)
      get dictionary items by data provider for field and row assignments
      Parameters:
      dataProviderInternalId -
      Returns:
      internal id to value
    • selectByDataProviderAndMembers

      public static Map<Long,String> selectByDataProviderAndMembers(Long dataProviderInternalId, Set<Long> memberInternalIds)
      get dictionary items by data provider and members for field and row assignments
      Parameters:
      dataProviderInternalId -
      memberInternalIds -
      Returns:
      internal id to value
    • store

      public static boolean store(GrouperDictionary grouperDictionary)
      Parameters:
      grouperDictionary -
      connectionName -
      Returns:
      true if changed
    • selectByText

      public static GrouperDictionary selectByText(String theText)
    • delete

      public static void delete(GrouperDictionary grouperDictionary)
      Parameters:
      connectionName -
    • reset

      public static void reset()
      delete all data if table is here
    • findOrAdd

      public static Long findOrAdd(String string)
      Parameters:
      string -
      Returns:
      the dictionary