Class GcGrouperSyncMemberDao

java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncMemberDao

public class GcGrouperSyncMemberDao extends Object
  • Constructor Details

    • GcGrouperSyncMemberDao

      public GcGrouperSyncMemberDao()
  • Method Details

    • memberRetrieveByIdFromCache

      public GcGrouperSyncMember memberRetrieveByIdFromCache(String gcGrouperSyncMemberId)
      Parameters:
      gcGrouperSyncMemberId -
      Returns:
    • memberCreateByMemberId

      public GcGrouperSyncMember memberCreateByMemberId(String memberId)
      select grouper sync member by member id. Note: this doesnt store to db yet, you do that at the end
      Parameters:
      connectionName -
      memberId -
      Returns:
      the member
    • internal_memberCreateByMemberIdHelper

      public GcGrouperSyncMember internal_memberCreateByMemberIdHelper(String memberId)
      create grouper sync member by member id. Note: this doesnt store to db yet, you do that at the end
      Parameters:
      connectionName -
      memberId -
      Returns:
      the member
    • internal_memberRetrieveFromDbByMemberNameFromMemberId

      public GcGrouperSyncMember internal_memberRetrieveFromDbByMemberNameFromMemberId(String memberId)
      select grouper sync member by member id
      Parameters:
      connectionName -
      memberId -
      Returns:
      the group
    • memberDelete

      public int memberDelete(Collection<GcGrouperSyncMember> gcGrouperSyncMembers, boolean deleteMemberships, boolean deleteLogs)
      delete batch
      Parameters:
      gcGrouperSyncMembers -
      Returns:
      rows deleted (members and logs)
    • memberDelete

      public int memberDelete(GcGrouperSyncMember gcGrouperSyncMember, boolean deleteMemberships, boolean deleteLogs)
      delete sync member
      Parameters:
      gcGrouperSyncMember -
      Returns:
      rows deleted (members and logs)
    • memberDeleteAll

      public int memberDeleteAll(boolean deleteMemberships, boolean deleteLogs)
      delete all members for a sync
      Parameters:
      deleteMemberships - true if delete memberships and logs for memberships too
      deleteLogs - delete logs too
      Returns:
      the syncs
    • memberRetrieveAll

      public List<GcGrouperSyncMember> memberRetrieveAll()
      select grouper sync member by sync id and member id
      Parameters:
      grouperSyncId -
      provisionerName -
      Returns:
      the syncs
    • memberRetrieveByMemberId

      public GcGrouperSyncMember memberRetrieveByMemberId(String memberId)
      select grouper sync member by member id
      Parameters:
      connectionName -
      memberId -
      Returns:
      the member
    • memberRetrieveByMemberIds

      public Map<String,GcGrouperSyncMember> memberRetrieveByMemberIds(Collection<String> grouperMemberIdsCollection)
      select grouper sync member by sync id and member id
      Parameters:
      grouperSyncId -
      grouperMemberIdsCollection -
      provisionerName -
      Returns:
      the memberId to syncMember map
    • memberRetrieveById

      public GcGrouperSyncMember memberRetrieveById(String gcGrouperSyncMemberId)
      select grouper sync member by member id
      Parameters:
      gcGrouperSyncMemberId -
      Returns:
      the member
    • memberRetrieveByIds

      public Map<String,GcGrouperSyncMember> memberRetrieveByIds(Collection<String> gcGrouperSyncMemberIds)
      select grouper sync members by ids
      Parameters:
      gcGrouperSyncMemberIds -
      Returns:
      map of ids to gcGrouperSyncMembers
    • memberRetrieveOrCreateByMemberId

      public GcGrouperSyncMember memberRetrieveOrCreateByMemberId(String memberId)
      select grouper sync member by member id. Note: this doesnt store to db yet, you do that at the end
      Parameters:
      connectionName -
      memberId -
      Returns:
      the member
    • memberRetrieveOrCreateByMemberIds

      public Map<String,GcGrouperSyncMember> memberRetrieveOrCreateByMemberIds(Collection<String> grouperMemberIdsCollection)
      select grouper sync member by member id. note, this does not store the members to the database, do that later
      Parameters:
      grouperSyncId -
      grouperMemberIdsCollection -
      provisionerName -
      Returns:
      the memberId to syncMember map
    • memberCreateLog

      public GcGrouperSyncLog memberCreateLog(GcGrouperSyncMember gcGrouperSyncMember)
      Parameters:
      gcGrouperSyncMemberId -
      Returns:
      log
    • internal_memberCacheDelete

      public void internal_memberCacheDelete(GcGrouperSyncMember gcGrouperSyncMember)
      Parameters:
      gcGrouperSyncMember -
    • internal_memberRetrieveFromDbAll

      public List<GcGrouperSyncMember> internal_memberRetrieveFromDbAll()
      select grouper sync member by sync id and member id
      Parameters:
      grouperSyncId -
      provisionerName -
      Returns:
      the syncs
    • internal_memberRetrieveFromDbDeletables

      public List<GcGrouperSyncMember> internal_memberRetrieveFromDbDeletables()
    • internal_memberRetrieveFromDbByMemberId

      public GcGrouperSyncMember internal_memberRetrieveFromDbByMemberId(String memberId)
      select grouper sync member by member id
      Parameters:
      connectionName -
      memberId -
      Returns:
      the member
    • internal_memberRetrieveFromDbByMemberIds

      public Map<String,GcGrouperSyncMember> internal_memberRetrieveFromDbByMemberIds(Collection<String> grouperMemberIdsCollection)
      select grouper sync member by sync id and member id
      Parameters:
      grouperSyncId -
      grouperMemberIdsCollection -
      provisionerName -
      Returns:
      the memberId to syncMember map
    • internal_memberRetrieveFromDbById

      public GcGrouperSyncMember internal_memberRetrieveFromDbById(String gcGrouperSyncMemberId)
      select grouper sync member by gcGrouperSyncMemberId id
      Parameters:
      gcGrouperSyncMemberId -
      Returns:
      the gcGrouperSyncMember
    • internal_memberRetrieveFromDbByIds

      public Map<String,GcGrouperSyncMember> internal_memberRetrieveFromDbByIds(Collection<String> syncMemberIdsCollection)
      select grouper sync member by sync id and member id
      Parameters:
      grouperSyncId -
      syncMemberIdsCollection -
      provisionerName -
      Returns:
      the id to syncMember map
    • getGcGrouperSync

      public GcGrouperSync getGcGrouperSync()
      Returns:
    • setGcGrouperSync

      public void setGcGrouperSync(GcGrouperSync gcGrouperSync)
      Parameters:
      gcGrouperSync -
    • internal_memberStoreAll

      public int internal_memberStoreAll()
      Returns:
      number of members stored
    • internal_memberStore

      public int internal_memberStore(Collection<GcGrouperSyncMember> gcGrouperSyncMembers)
      store batch, generally call this from store all objects from GcGrouperSync
      Parameters:
      gcGrouperSyncMembers -
      Returns:
      number of changes
    • internal_memberStore

      public void internal_memberStore(GcGrouperSyncMember gcGrouperSyncMember)
      store batch, generally call this from store all objects from GcGrouperSync
      Parameters:
      gcGrouperSyncMembers -
    • retrieveMemberIdsWithErrorsAfterMillis

      public List<String> retrieveMemberIdsWithErrorsAfterMillis(Timestamp errorTimestampCheckFrom)
      get member ids with errors after error timestamp
      Parameters:
      errorTimestampCheckFrom - if null get all
      Returns:
      member ids
    • retrieveErrorCountByCode

      public Map<String,Integer> retrieveErrorCountByCode()
      get count of rows per error code
      Returns: