Class GrouperZoomLocalCommands
java.lang.Object
edu.internet2.middleware.grouper.app.zoom.GrouperZoomLocalCommands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addMembership
(String configId, String groupSyncFolder, String grouperGroupExtension, String emailToAddToGrouper, String zoomUserId) configIgnoreUserIds
(String configId) user ids to ignore if they are in a group (e.g.configSourcesForSubjects
(String configId) sources for subjectsstatic MultiKey
convertEmailToSourceIdSubjectId
(String configId, String emailInput) input sourceId to subjectIds, return sourceId/subjectId multikey to emailconvertEmailToSourceIdSubjectId
(String configId, Collection<String> emailsInput) input sourceId to subjectIds, return sourceId/subjectId multikey to emailconvertGroupExtensionSourceIdSubjectIdToSourceIdToSubjectIds
(String configId, Map<String, Set<MultiKey>> groupsSourceIdsSubjectIdsToProvision) static String
convertSourceIdSubjectIdToEmail
(String configId, String sourceId, String subjectId) input sourceId to subjectIds, return sourceId/subjectId multikey to emailinput sourceId to subjectIds, return sourceId/subjectId multikey to emailconvertSourceIdSubjectIdToSourceIdToSubjectIds
(String configId, Set<MultiKey> sourceIdsSubjectIds) static void
createGroupExtensionsInFolder
(String groupSyncFolder, Set<String> groupsInGrouperToAdd) static void
deleteGroupExtensionsInFolder
(String groupSyncFolder, Set<String> groupsInGrouperToDelete) static boolean
deleteInTargetIfDeletedInGrouper
(String configId) static String
folderNameToProvision
(String configId) static Stem
folderToProvision
(String configId) groupEmailsFromGroup
(String configId, String groupName) get all memberships from group by emailgroupExtensionsInFolder
(String folderName) groupExtensionsToProvision
(String configId) groupExtensionsToProvisionHelper
(String configId, Stem parent) static String
groupNameToDeactivateUsers
(String configId) static String
groupNameToDeleteUsers
(String configId) static String
groupNameToDelicensePhoneUsers
(String configId) static String
groupNameToDelicenseUsers
(String configId) static String
groupNameToReactivateUsers
(String configId) static boolean
groupProvisionRemoveOnly
(String configId) if provision remove onlygroupsEmailsFromFolderHelper
(String configId, String folderName) get all memberships to provision by emailgroupsEmailsToProvision
(String configId) get all memberships to provision by emailgroupSourceIdsSubjectIds
(String configId, String groupName) get all memberships, filter out ones not in correct sourcestatic boolean
groupSourceIdSubjectIdToDeactivate
(String configId, String sourceIdParam, String subjectIdParam) see if subject should be deactivatedstatic boolean
groupSourceIdSubjectIdToDelete
(String configId, String sourceIdParam, String subjectIdParam) see if subject should be deletedstatic boolean
groupSourceIdSubjectIdToDelicense
(String configId, String sourceIdParam, String subjectIdParam) see if subject should be delicensedstatic boolean
groupSourceIdSubjectIdToProvision
(String configId, String groupExtensionParam, String sourceIdParam, String subjectIdParam) get all memberships to provision, filter out ones not in correct sourcestatic boolean
groupSourceIdSubjectIdToProvisionHelper
(String configId, Stem folderToProvision, String groupExtensionParam, String sourceIdParam, String subjectIdParam) get all memberships to provision, filter out ones not in correct sourcegroupsSourceIdsSubjectIdsToProvision
(String configId, String stemId) get all memberships to provision, filter out ones not in correct sourcegroupsSourceIdsSubjectIdsToProvisionByFolderName
(String configId, String stemName) get all memberships to provision, filter out ones not in correct sourcestatic boolean
hasMembership
(String configId, String groupName, String sourceIdParam, String subjectIdParam) static boolean
licenseReactivatedUsers
(String configId) static void
static boolean
static boolean
static boolean
static boolean
static void
removeMembership
(String configId, String groupName, String email) static boolean
removeMembership
(String configId, String groupSyncFolder, String grouperGroupExtension, String emailToAddToGrouper, String zoomUserId) roleExtensionsToProvision
(String configId) static String
roleFolderNameToProvision
(String configId) folder in grouper that corresponds to roles in zoomstatic Stem
roleFolderToProvision
(String configId) static boolean
roleProvisionRemoveOnly
(String configId) if role provision remove onlyrolesEmailsToProvision
(String configId) get all memberships to provision by email for rolesstatic boolean
roleSourceIdSubjectIdToProvision
(String configId, String groupExtensionParam, String sourceIdParam, String subjectIdParam) get all memberships to provision, filter out ones not in correct sourcestatic String
subjectAttributeForZoomEmail
(String configId)
-
Constructor Details
-
GrouperZoomLocalCommands
public GrouperZoomLocalCommands()
-
-
Method Details
-
folderNameToProvision
- Parameters:
configId
-- Returns:
- the folder name
-
roleFolderNameToProvision
folder in grouper that corresponds to roles in zoom- Parameters:
configId
-- Returns:
- the folder name
-
groupNameToDeleteUsers
- Parameters:
configId
-- Returns:
- the group name
-
removeGrouperMembershipFromDeletedGroupAfterDeleteZoomUser
- Parameters:
configId
-- Returns:
- the group name
-
removeGrouperMembershipFromDeactivatedGroupAfterDeactivateZoomUser
public static boolean removeGrouperMembershipFromDeactivatedGroupAfterDeactivateZoomUser(String configId) - Parameters:
configId
-- Returns:
- the group name
-
removeGrouperMembershipFromDelicensedGroupAfterDelicenseZoomUser
public static boolean removeGrouperMembershipFromDelicensedGroupAfterDelicenseZoomUser(String configId) - Parameters:
configId
-- Returns:
- the group name
-
removeGrouperMembershipFromDelicensedGroupAfterDelicensePhoneUser
public static boolean removeGrouperMembershipFromDelicensedGroupAfterDelicensePhoneUser(String configId) - Parameters:
configId
-- Returns:
- the group name
-
groupNameToDeactivateUsers
- Parameters:
configId
-- Returns:
- the group name
-
licenseReactivatedUsers
- Parameters:
configId
-- Returns:
- true if reactivated users should be licensed
-
groupNameToReactivateUsers
- Parameters:
configId
-- Returns:
- the group name
-
groupNameToDelicenseUsers
- Parameters:
configId
-- Returns:
- the group name
-
groupNameToDelicensePhoneUsers
- Parameters:
configId
-- Returns:
- the group name
-
deleteInTargetIfDeletedInGrouper
- Parameters:
configId
-- Returns:
- if delete
-
configSourcesForSubjects
sources for subjects- Parameters:
configId
-- Returns:
- the config sources for subjects
-
configIgnoreUserIds
user ids to ignore if they are in a group (e.g. admin accounts)- Parameters:
configId
-- Returns:
- user ids to ignore
-
subjectAttributeForZoomEmail
- Parameters:
configId
-- Returns:
- the folder name
-
folderToProvision
- Parameters:
configId
-- Returns:
- the stem that has groups
-
roleFolderToProvision
- Parameters:
configId
-- Returns:
- the stem that has groups
-
groupProvisionRemoveOnly
if provision remove only- Parameters:
configId
-- Returns:
- the stem that has groups
-
roleProvisionRemoveOnly
if role provision remove only- Parameters:
configId
-- Returns:
- if remove only
-
groupExtensionsToProvision
- Parameters:
configId
-- Returns:
- the group extensions to provision
-
roleExtensionsToProvision
- Parameters:
configId
-- Returns:
- the role extensions to provision
-
groupExtensionsToProvisionHelper
- Parameters:
configId
-- Returns:
- the group extensions to provision
-
groupsEmailsToProvision
get all memberships to provision by email- Parameters:
configId
-- Returns:
- the map of group extension to set of emails
-
rolesEmailsToProvision
get all memberships to provision by email for roles- Parameters:
configId
-- Returns:
- the map of role extension to set of emails
-
groupsEmailsFromFolderHelper
public static Map<String,Set<String>> groupsEmailsFromFolderHelper(String configId, String folderName) get all memberships to provision by email- Parameters:
configId
-folderName
-- Returns:
- the map of group extension to set of emails
-
groupEmailsFromGroup
get all memberships from group by email- Parameters:
configId
-groupName
-- Returns:
- the set of emails
-
convertGroupExtensionSourceIdSubjectIdToSourceIdToSubjectIds
public static Map<String,Set<String>> convertGroupExtensionSourceIdSubjectIdToSourceIdToSubjectIds(String configId, Map<String, Set<MultiKey>> groupsSourceIdsSubjectIdsToProvision) - Parameters:
configId
-groupsSourceIdsSubjectIdsToProvision
-- Returns:
- the map
-
convertSourceIdSubjectIdToSourceIdToSubjectIds
public static Map<String,Set<String>> convertSourceIdSubjectIdToSourceIdToSubjectIds(String configId, Set<MultiKey> sourceIdsSubjectIds) - Parameters:
configId
-sourceIdsSubjectIds
-- Returns:
- the map
-
convertSourceIdSubjectIdToEmail
public static String convertSourceIdSubjectIdToEmail(String configId, String sourceId, String subjectId) input sourceId to subjectIds, return sourceId/subjectId multikey to email- Parameters:
configId
-sourceId
-subjectId
-- Returns:
-
convertSourceIdSubjectIdToEmail
public static Map<MultiKey,String> convertSourceIdSubjectIdToEmail(String configId, Map<String, Set<String>> sourceIdToSubjectIdsInput) input sourceId to subjectIds, return sourceId/subjectId multikey to email- Parameters:
configId
-sourceIdToSubjectIdsInput
-- Returns:
- map of sourceId/subjectId to email
-
groupExtensionsInFolder
- Parameters:
folderName
-- Returns:
- the group extensions
-
convertEmailToSourceIdSubjectId
input sourceId to subjectIds, return sourceId/subjectId multikey to email- Parameters:
configId
-emailInput
-- Returns:
- map of email to sourceId/subjectId
-
convertEmailToSourceIdSubjectId
public static Map<String,MultiKey> convertEmailToSourceIdSubjectId(String configId, Collection<String> emailsInput) input sourceId to subjectIds, return sourceId/subjectId multikey to email- Parameters:
configId
-emailsInput
-- Returns:
- map of email to sourceId/subjectId
-
groupsSourceIdsSubjectIdsToProvisionByFolderName
public static Map<String,Set<MultiKey>> groupsSourceIdsSubjectIdsToProvisionByFolderName(String configId, String stemName) get all memberships to provision, filter out ones not in correct source- Parameters:
configId
-stemName
-- Returns:
- the map of group extension to set of multikey with sourceId and subjectId
-
groupsSourceIdsSubjectIdsToProvision
public static Map<String,Set<MultiKey>> groupsSourceIdsSubjectIdsToProvision(String configId, String stemId) get all memberships to provision, filter out ones not in correct source- Parameters:
configId
-stemId
-- Returns:
- the map of group extension to set of multikey with sourceId and subjectId
-
groupSourceIdsSubjectIds
get all memberships, filter out ones not in correct source- Parameters:
configId
-groupName
-- Returns:
- the map of group extension to set of multikey with sourceId and subjectId
-
groupSourceIdSubjectIdToProvision
public static boolean groupSourceIdSubjectIdToProvision(String configId, String groupExtensionParam, String sourceIdParam, String subjectIdParam) get all memberships to provision, filter out ones not in correct source- Parameters:
configId
-groupExtensionParam
-sourceIdParam
-subjectIdParam
-- Returns:
- true if membership exists
-
roleSourceIdSubjectIdToProvision
public static boolean roleSourceIdSubjectIdToProvision(String configId, String groupExtensionParam, String sourceIdParam, String subjectIdParam) get all memberships to provision, filter out ones not in correct source- Parameters:
configId
-groupExtensionParam
-sourceIdParam
-subjectIdParam
-- Returns:
- true if membership exists
-
groupSourceIdSubjectIdToProvisionHelper
public static boolean groupSourceIdSubjectIdToProvisionHelper(String configId, Stem folderToProvision, String groupExtensionParam, String sourceIdParam, String subjectIdParam) get all memberships to provision, filter out ones not in correct source- Parameters:
configId
-folderToProvision
-groupExtensionParam
-sourceIdParam
-subjectIdParam
-- Returns:
- true if membership exists
-
groupSourceIdSubjectIdToDelete
public static boolean groupSourceIdSubjectIdToDelete(String configId, String sourceIdParam, String subjectIdParam) see if subject should be deleted- Parameters:
configId
-sourceIdParam
-subjectIdParam
-- Returns:
- true if membership exists
-
groupSourceIdSubjectIdToDeactivate
public static boolean groupSourceIdSubjectIdToDeactivate(String configId, String sourceIdParam, String subjectIdParam) see if subject should be deactivated- Parameters:
configId
-sourceIdParam
-subjectIdParam
-- Returns:
- true if membership exists
-
groupSourceIdSubjectIdToDelicense
public static boolean groupSourceIdSubjectIdToDelicense(String configId, String sourceIdParam, String subjectIdParam) see if subject should be delicensed- Parameters:
configId
-sourceIdParam
-subjectIdParam
-- Returns:
- true if membership exists
-
main
- Parameters:
args
-
-
deleteGroupExtensionsInFolder
public static void deleteGroupExtensionsInFolder(String groupSyncFolder, Set<String> groupsInGrouperToDelete) - Parameters:
groupSyncFolder
-groupsInGrouperToDelete
-
-
createGroupExtensionsInFolder
public static void createGroupExtensionsInFolder(String groupSyncFolder, Set<String> groupsInGrouperToAdd) - Parameters:
groupSyncFolder
-groupsInGrouperToAdd
-
-
addMembership
public static boolean addMembership(String configId, String groupSyncFolder, String grouperGroupExtension, String emailToAddToGrouper, String zoomUserId) - Parameters:
configId
-groupSyncFolder
-grouperGroupExtension
-emailToAddToGrouper
-zoomUserId
-- Returns:
- true if added, false if not
- Throws:
SubjectNotFoundException
-
hasMembership
public static boolean hasMembership(String configId, String groupName, String sourceIdParam, String subjectIdParam) - Parameters:
configId
-groupName
-sourceIdParam
-subjectIdParam
-- Returns:
- true if subject is member of group
-
removeMembership
public static boolean removeMembership(String configId, String groupSyncFolder, String grouperGroupExtension, String emailToAddToGrouper, String zoomUserId) - Parameters:
configId
-groupSyncFolder
-grouperGroupExtension
-emailToAddToGrouper
-zoomUserId
-- Returns:
- true if added, false if not
-
removeMembership
- Parameters:
configId
-groupName
-email
-
-