Class GrouperDuoApiCommands
java.lang.Object
edu.internet2.middleware.grouper.app.duo.GrouperDuoApiCommands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
associateUserToGroup
(String configId, String userId, String groupId) static GrouperDuoGroup
createDuoGroup
(String configId, GrouperDuoGroup grouperDuoGroup) create a groupstatic GrouperDuoUser
createDuoUser
(String configId, GrouperDuoUser grouperDuoUser) create a userstatic void
deleteDuoGroup
(String configId, String groupId) static void
deleteDuoUser
(String configId, String userId) static void
disassociateUserFromGroup
(String configId, String userId, String groupId) static String
escapeUrlEncode
(String param) encode URL paramstatic com.fasterxml.jackson.databind.JsonNode
executeMethod
(Map<String, Object> debugMap, String httpMethodName, String configId, String urlSuffix, Set<Integer> allowedReturnCodes, int[] returnCode, Map<String, String> params, String body, String version) static void
static void
static GrouperDuoGroup
retrieveDuoGroup
(String configId, String id) static List<GrouperDuoGroup>
retrieveDuoGroups
(String configId) static List<GrouperDuoGroup>
retrieveDuoGroupsByUser
(String configId, String userId) static GrouperDuoUser
retrieveDuoUser
(String configId, String id) static GrouperDuoUser
retrieveDuoUserByName
(String configId, String username) static GrouperDuoUser
retrieveDuoUserByName
(String configId, String username, boolean includeLoadedFields) static com.fasterxml.jackson.databind.JsonNode
retrieveDuoUserByNameJsonNode
(String configId, String username, boolean includeLoadedFields) static List<GrouperDuoUser>
retrieveDuoUserIdsUserNamesByGroup
(String configId, String groupId) static List<GrouperDuoUser>
retrieveDuoUsers
(String configId, boolean includeLoadedFields) static GrouperDuoGroup
updateDuoGroup
(String configId, GrouperDuoGroup grouperDuoGroup, Set<String> fieldsToUpdate) update a groupstatic GrouperDuoUser
updateDuoUser
(String configId, GrouperDuoUser grouperDuoUser, Set<String> fieldsToUpdate) update a user
-
Constructor Details
-
GrouperDuoApiCommands
public GrouperDuoApiCommands()
-
-
Method Details
-
main
-
main1
-
executeMethod
-
escapeUrlEncode
encode URL param- Parameters:
param
-- Returns:
- the value
-
createDuoGroup
create a group- Parameters:
grouperDuoGroup
-- Returns:
- the result
-
updateDuoGroup
public static GrouperDuoGroup updateDuoGroup(String configId, GrouperDuoGroup grouperDuoGroup, Set<String> fieldsToUpdate) update a group- Parameters:
grouperDuoGroup
-- Returns:
- the result
-
deleteDuoGroup
-
retrieveDuoGroups
-
retrieveDuoGroupsByUser
-
retrieveDuoUserIdsUserNamesByGroup
public static List<GrouperDuoUser> retrieveDuoUserIdsUserNamesByGroup(String configId, String groupId) -
retrieveDuoGroup
- Parameters:
configId
-group
- id- Returns:
- the user
-
createDuoUser
create a user- Parameters:
grouperDuoUser
-- Returns:
- the result
-
updateDuoUser
public static GrouperDuoUser updateDuoUser(String configId, GrouperDuoUser grouperDuoUser, Set<String> fieldsToUpdate) update a user- Parameters:
grouperDuoUser
-fieldsToUpdate
-- Returns:
- the result
-
retrieveDuoUsers
-
retrieveDuoUser
-
retrieveDuoUserByName
- Parameters:
configId
-username
-- Returns:
-
retrieveDuoUserByName
public static GrouperDuoUser retrieveDuoUserByName(String configId, String username, boolean includeLoadedFields) - Parameters:
configId
-username
-includeLoadedFields
- true for more info- Returns:
-
retrieveDuoUserByNameJsonNode
public static com.fasterxml.jackson.databind.JsonNode retrieveDuoUserByNameJsonNode(String configId, String username, boolean includeLoadedFields) - Parameters:
configId
-username
-includeLoadedFields
- true for more info- Returns:
-
deleteDuoUser
-
associateUserToGroup
-
disassociateUserFromGroup
-