Class GrouperDuoApiCommands

java.lang.Object
edu.internet2.middleware.grouper.app.duo.GrouperDuoApiCommands

public class GrouperDuoApiCommands extends Object
  • Constructor Details

    • GrouperDuoApiCommands

      public GrouperDuoApiCommands()
  • Method Details

    • main

      public static void main(String[] args)
    • main1

      public static void main1(String[] args)
    • executeMethod

      public static 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)
    • escapeUrlEncode

      public static String escapeUrlEncode(String param)
      encode URL param
      Parameters:
      param -
      Returns:
      the value
    • createDuoGroup

      public static GrouperDuoGroup createDuoGroup(String configId, GrouperDuoGroup grouperDuoGroup)
      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

      public static void deleteDuoGroup(String configId, String groupId)
    • retrieveDuoGroups

      public static List<GrouperDuoGroup> retrieveDuoGroups(String configId)
    • retrieveDuoGroupsByUser

      public static List<GrouperDuoGroup> retrieveDuoGroupsByUser(String configId, String userId)
    • retrieveDuoUserIdsUserNamesByGroup

      public static List<GrouperDuoUser> retrieveDuoUserIdsUserNamesByGroup(String configId, String groupId)
    • retrieveDuoGroup

      public static GrouperDuoGroup retrieveDuoGroup(String configId, String id)
      Parameters:
      configId -
      group - id
      Returns:
      the user
    • createDuoUser

      public static GrouperDuoUser createDuoUser(String configId, GrouperDuoUser grouperDuoUser)
      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

      public static List<GrouperDuoUser> retrieveDuoUsers(String configId, boolean includeLoadedFields)
    • retrieveDuoUser

      public static GrouperDuoUser retrieveDuoUser(String configId, String id)
    • retrieveDuoUserByName

      public static GrouperDuoUser retrieveDuoUserByName(String configId, String username)
      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

      public static void deleteDuoUser(String configId, String userId)
    • associateUserToGroup

      public static void associateUserToGroup(String configId, String userId, String groupId)
    • disassociateUserFromGroup

      public static void disassociateUserFromGroup(String configId, String userId, String groupId)