Class GrouperRemedyApiCommands

java.lang.Object
edu.internet2.middleware.grouper.app.remedyV2.GrouperRemedyApiCommands

public class GrouperRemedyApiCommands extends Object
  • Constructor Details

    • GrouperRemedyApiCommands

      public GrouperRemedyApiCommands()
  • Method Details

    • retrieveRemedyGroups

      public static Map<Long,GrouperRemedyGroup> retrieveRemedyGroups(String remedyExternalSystemConfigId)
      Parameters:
      remedyExternalSystemConfigId -
      Returns:
      the name of group mapped to group
    • retrieveRemedyUsers

      public static Map<String,GrouperRemedyUser> retrieveRemedyUsers(String remedyExternalSystemConfigId)
      Parameters:
      remedyExternalSystemConfigId -
      Returns:
      remedy login id to user never null
    • retrieveRemedyUser

      public static GrouperRemedyUser retrieveRemedyUser(String remedyExternalSystemConfigId, String loginid)
      Parameters:
      remedyExternalSystemConfigId -
      loginid -
      Returns:
      the user based on loginid
    • retrieveRemedyMembershipsForGroup

      public static List<GrouperRemedyMembership> retrieveRemedyMembershipsForGroup(String remedyExternalSystemConfigId, Long permissionGroupId)
      Parameters:
      remedyExternalSystemConfigId -
      grouperRemedyGroup -
      Returns:
      the map from username to grouper user object
    • retrieveRemedyMembership

      public static GrouperRemedyMembership retrieveRemedyMembership(String remedyExternalSystemConfigId, String permissionGroupId, String netId, com.fasterxml.jackson.databind.JsonNode[] jsonObjectReturn)
      Parameters:
      remedyExternalSystemConfigId -
      permissionGroupId -
      netId -
      jsonObjectReturn - pass in to get the json object, or null if you dont care
      Returns:
      the membership object if available
    • assignUserToRemedyGroup

      public static Boolean assignUserToRemedyGroup(String remedyExternalSystemConfigId, String remedyLoginId, String personId, String permissionGroup, Long permissionGroupId)
      Parameters:
      remedyExternalSystemConfigId -
      grouperRemedyUser -
      grouperRemedyGroup -
      Returns:
      true if added, false if already exists, null if enabled a past disabled memberships
    • removeUserFromRemedyGroup

      public static Boolean removeUserFromRemedyGroup(String remedyExternalSystemConfigId, String remedyLoginId, Long permissionGroupId)
      Parameters:
      remedyExternalSystemConfigId -
      grouperRemedyUser -
      grouperRemedyGroup -
      Returns:
      true if disabled, false if already disabled, null if membership never existed