Class GrouperDictionaryDao
java.lang.Object
edu.internet2.middleware.grouper.dictionary.GrouperDictionaryDao
dao for dictionaries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddelete(GrouperDictionary grouperDictionary) static LongfindOrAdd(Collection<String> strings) static voidreset()delete all data if table is hereselectByDataProvider(Long dataProviderInternalId) get dictionary items by data provider for field and row assignmentsselectByDataProviderAndMembers(Long dataProviderInternalId, Set<Long> memberInternalIds) get dictionary items by data provider and members for field and row assignmentsstatic GrouperDictionaryselectByText(String theText) static Map<String,GrouperDictionary> selectByTexts(Collection<String> theTexts) static booleanstore(GrouperDictionary grouperDictionary) static Map<String,GrouperDictionary> store(Collection<GrouperDictionary> grouperDictionaries)
-
Constructor Details
-
GrouperDictionaryDao
public GrouperDictionaryDao()
-
-
Method Details
-
selectByDataProvider
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
- Parameters:
grouperDictionary-connectionName-- Returns:
- true if changed
-
store
public static Map<String,GrouperDictionary> store(Collection<GrouperDictionary> grouperDictionaries) -
selectByText
-
selectByTexts
-
delete
- Parameters:
connectionName-
-
reset
public static void reset()delete all data if table is here -
findOrAdd
- Parameters:
string-- Returns:
- the dictionary
-
findOrAdd
- Parameters:
strings-- Returns:
- the string to id mapping
-