Class GrouperRemedyCommands

java.lang.Object
edu.internet2.middleware.grouper.app.remedy.GrouperRemedyCommands

public class GrouperRemedyCommands extends Object
commands against the box api
  • Constructor Details

    • GrouperRemedyCommands

      public GrouperRemedyCommands()
  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args -
    • retrieveRemedyGroups

      public static Map<Long,GrouperRemedyGroup> retrieveRemedyGroups()
      Returns:
      the name of group mapped to group
    • retrieveRemedyMemberships

      public static Map<MultiKey,GrouperRemedyMembership> retrieveRemedyMemberships()
      Returns:
      remedy login id to user never null
    • retrieveRemedyUsers

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

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

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

      public static GrouperRemedyMembership retrieveRemedyMembership(String permissionGroupId, String netId, com.fasterxml.jackson.databind.JsonNode[] jsonObjectReturn)
      Parameters:
      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(GrouperRemedyUser grouperRemedyUser, GrouperRemedyGroup grouperRemedyGroup, boolean isIncremental)
      Parameters:
      grouperRemedyUser -
      grouperRemedyGroup -
      isIncremental -
      Returns:
      true if added, false if already exists, null if enabled a past disabled memberships
    • removeUserFromRemedyGroup

      public static Boolean removeUserFromRemedyGroup(GrouperRemedyUser grouperRemedyUser, GrouperRemedyGroup grouperRemedyGroup, boolean isIncremental)
      Parameters:
      grouperRemedyUser -
      grouperRemedyGroup -
      isIncremental -
      Returns:
      true if disabled, false if already disabled, null if membership never existed