Class GcGrouperSyncMemberDao
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncMemberDao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
internal_memberCacheDelete
(GcGrouperSyncMember gcGrouperSyncMember) internal_memberCreateByMemberIdHelper
(String memberId) create grouper sync member by member id.select grouper sync member by sync id and member idinternal_memberRetrieveFromDbById
(String gcGrouperSyncMemberId) select grouper sync member by gcGrouperSyncMemberId idinternal_memberRetrieveFromDbByIds
(Collection<String> syncMemberIdsCollection) select grouper sync member by sync id and member idselect grouper sync member by member idinternal_memberRetrieveFromDbByMemberIds
(Collection<String> grouperMemberIdsCollection) select grouper sync member by sync id and member idselect grouper sync member by member idvoid
internal_memberStore
(GcGrouperSyncMember gcGrouperSyncMember) store batch, generally call this from store all objects from GcGrouperSyncint
internal_memberStore
(Collection<GcGrouperSyncMember> gcGrouperSyncMembers) store batch, generally call this from store all objects from GcGrouperSyncint
memberCreateByMemberId
(String memberId) select grouper sync member by member id.memberCreateLog
(GcGrouperSyncMember gcGrouperSyncMember) int
memberDelete
(GcGrouperSyncMember gcGrouperSyncMember, boolean deleteMemberships, boolean deleteLogs) delete sync memberint
memberDelete
(Collection<GcGrouperSyncMember> gcGrouperSyncMembers, boolean deleteMemberships, boolean deleteLogs) delete batchint
memberDeleteAll
(boolean deleteMemberships, boolean deleteLogs) delete all members for a syncselect grouper sync member by sync id and member idmemberRetrieveById
(String gcGrouperSyncMemberId) select grouper sync member by member idmemberRetrieveByIdFromCache
(String gcGrouperSyncMemberId) memberRetrieveByIds
(Collection<String> gcGrouperSyncMemberIds) select grouper sync members by idsmemberRetrieveByMemberId
(String memberId) select grouper sync member by member idmemberRetrieveByMemberIds
(Collection<String> grouperMemberIdsCollection) select grouper sync member by sync id and member idmemberRetrieveOrCreateByMemberId
(String memberId) select grouper sync member by member id.memberRetrieveOrCreateByMemberIds
(Collection<String> grouperMemberIdsCollection) select grouper sync member by member id.get count of rows per error coderetrieveMemberIdsWithErrorsAfterMillis
(Timestamp errorTimestampCheckFrom) get member ids with errors after error timestampvoid
setGcGrouperSync
(GcGrouperSync gcGrouperSync)
-
Constructor Details
-
GcGrouperSyncMemberDao
public GcGrouperSyncMemberDao()
-
-
Method Details
-
memberRetrieveByIdFromCache
- Parameters:
gcGrouperSyncMemberId
-- Returns:
-
memberCreateByMemberId
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
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
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 toodeleteLogs
- delete logs too- Returns:
- the syncs
-
memberRetrieveAll
select grouper sync member by sync id and member id- Parameters:
grouperSyncId
-provisionerName
-- Returns:
- the syncs
-
memberRetrieveByMemberId
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
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
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
- Parameters:
gcGrouperSyncMemberId
-- Returns:
- log
-
internal_memberCacheDelete
- Parameters:
gcGrouperSyncMember
-
-
internal_memberRetrieveFromDbAll
select grouper sync member by sync id and member id- Parameters:
grouperSyncId
-provisionerName
-- Returns:
- the syncs
-
internal_memberRetrieveFromDbDeletables
-
internal_memberRetrieveFromDbByMemberId
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
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
- Returns:
-
setGcGrouperSync
- Parameters:
gcGrouperSync
-
-
internal_memberStoreAll
public int internal_memberStoreAll()- Returns:
- number of members stored
-
internal_memberStore
store batch, generally call this from store all objects from GcGrouperSync- Parameters:
gcGrouperSyncMembers
-- Returns:
- number of changes
-
internal_memberStore
store batch, generally call this from store all objects from GcGrouperSync- Parameters:
gcGrouperSyncMembers
-
-
retrieveMemberIdsWithErrorsAfterMillis
get member ids with errors after error timestamp- Parameters:
errorTimestampCheckFrom
- if null get all- Returns:
- member ids
-
retrieveErrorCountByCode
get count of rows per error code- Returns:
-