Class GrouperRemedyCommands
java.lang.Object
edu.internet2.middleware.grouper.app.remedy.GrouperRemedyCommands
commands against the box api
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean
assignUserToRemedyGroup
(GrouperRemedyUser grouperRemedyUser, GrouperRemedyGroup grouperRemedyGroup, boolean isIncremental) static void
static Boolean
removeUserFromRemedyGroup
(GrouperRemedyUser grouperRemedyUser, GrouperRemedyGroup grouperRemedyGroup, boolean isIncremental) static Map<Long,
GrouperRemedyGroup> static GrouperRemedyMembership
retrieveRemedyMembership
(String permissionGroupId, String netId, com.fasterxml.jackson.databind.JsonNode[] jsonObjectReturn) static Map<MultiKey,
GrouperRemedyMembership> static List<GrouperRemedyMembership>
retrieveRemedyMembershipsForGroup
(GrouperRemedyGroup grouperRemedyGroup) static GrouperRemedyUser
retrieveRemedyUser
(String loginid) static Map<String,
GrouperRemedyUser>
-
Constructor Details
-
GrouperRemedyCommands
public GrouperRemedyCommands()
-
-
Method Details
-
main
- Parameters:
args
-
-
retrieveRemedyGroups
- Returns:
- the name of group mapped to group
-
retrieveRemedyMemberships
- Returns:
- remedy login id to user never null
-
retrieveRemedyUsers
- Returns:
- remedy login id to user never null
-
retrieveRemedyUser
- 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
-