Class GrouperGoogleApiCommands

java.lang.Object
edu.internet2.middleware.grouper.app.google.GrouperGoogleApiCommands

public class GrouperGoogleApiCommands extends Object
  • Constructor Details

    • GrouperGoogleApiCommands

      public GrouperGoogleApiCommands()
  • Method Details

    • retrieveBearerTokenForGoogleSettingsConfigId

      public static String retrieveBearerTokenForGoogleSettingsConfigId(Map<String,Object> debugMap, String configId)
      get bearer token for google settings config id
      Parameters:
      configId -
      Returns:
      the bearer token
    • executeGetMethod

      public static com.fasterxml.jackson.databind.JsonNode executeGetMethod(Map<String,Object> debugMap, String configId, String urlSuffix, boolean useSettingsBearerToken)
    • executeMethod

      public static com.fasterxml.jackson.databind.JsonNode executeMethod(Map<String,Object> debugMap, String httpMethodName, String configId, String urlSuffix, Set<Integer> allowedReturnCodes, int[] returnCode, String body, boolean useSettingsBearerToken)
    • createGoogleGroup

      public static GrouperGoogleGroup createGoogleGroup(String configId, GrouperGoogleGroup grouperGoogleGroup, Set<String> fieldsToInsert)
      create a group
      Parameters:
      grouperGoogleGroup -
      Returns:
      the result
    • createGoogleUser

      public static GrouperGoogleUser createGoogleUser(String configId, GrouperGoogleUser grouperGoogleUser)
      create a user
      Parameters:
      configId -
      grouperGoogleUser -
      Returns:
    • createGoogleMembership

      public static void createGoogleMembership(String configId, String groupId, String userId)
      create a membership
      Parameters:
      grouperGoogleGroup -
    • deleteGoogleUser

      public static void deleteGoogleUser(String configId, String userId)
    • updateGoogleGroup

      public static GrouperGoogleGroup updateGoogleGroup(String configId, GrouperGoogleGroup grouperGoogleGroup, Set<String> fieldsToUpdate)
      update a group
      Parameters:
      grouperGoogleGroup -
      Returns:
      the result
    • updateGoogleUser

      public static GrouperGoogleUser updateGoogleUser(String configId, GrouperGoogleUser grouperGoogleUser, Set<String> fieldsToUpdate)
      update a user
      Parameters:
      grouperGoogleUser -
      Returns:
      the result
    • deleteGoogleGroup

      public static void deleteGoogleGroup(String configId, String groupId)
    • retrieveGoogleGroups

      public static List<GrouperGoogleGroup> retrieveGoogleGroups(String configId, String fieldToSearchFor, String fieldValue)
    • retrieveGoogleUsers

      public static List<GrouperGoogleUser> retrieveGoogleUsers(String configId)
    • retrieveGoogleUser

      public static GrouperGoogleUser retrieveGoogleUser(String configId, String id)
      Parameters:
      configId -
      id - of the user
      Returns:
      google user
    • retrieveGoogleGroupMembers

      public static Set<String> retrieveGoogleGroupMembers(String configId, String groupId)
      return user ids in the group
      Parameters:
      configId -
      groupId -
      Returns:
      user ids
    • retrieveGoogleGroup

      public static GrouperGoogleGroup retrieveGoogleGroup(String configId, String id)
      Parameters:
      configId -
      id - is the group id
      Returns:
      the google group
    • deleteGoogleMembership

      public static void deleteGoogleMembership(String configId, String groupId, String userId)
      delete membership
      Parameters:
      grouperGoogleGroup -