Class GcGrouperSyncGroupDao
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncGroupDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongroupCreateByGroupId(String groupId) select grouper sync group by group id.groupCreateLog(GcGrouperSyncGroup gcGrouperSyncGroup) intgroupDelete(GcGrouperSyncGroup gcGrouperSyncGroup, boolean deleteMemberships, boolean deleteLogs) delete sync groupintgroupDelete(Collection<GcGrouperSyncGroup> gcGrouperSyncGroups, boolean deleteMemberships, boolean deleteLogs) delete batchintgroupDeleteAll(boolean deleteMemberships, boolean deleteLogs) delete all groups for a syncselect grouper sync group by sync id and group idgroupRetrieveByGroupId(String groupId) select grouper sync group by group idgroupRetrieveByGroupIds(Collection<String> grouperGroupIdsCollection) select grouper sync group by sync id and group idgroupRetrieveById(String gcGrouperSyncGroupId) select grouper sync group by idgroupRetrieveByIdFromCache(String gcGrouperSyncGroupId) groupRetrieveByIds(Collection<String> gcGrouperSyncGroupIds) select grouper sync groups by idsgroupRetrieveOrCreateByGroupId(String groupId) select grouper sync group by group id.groupRetrieveOrCreateByGroupIds(Collection<String> grouperGroupIdsCollection) select grouper sync group by group id.voidinternal_groupCacheDelete(GcGrouperSyncGroup gcGrouperSyncGroup) select grouper sync group by group id.select grouper sync group by sync id and group idselect grouper sync group by group idinternal_groupRetrieveFromDbByGroupIds(Collection<String> grouperGroupIdsCollection) select grouper sync group by sync id and group idselect grouper sync group by group idinternal_groupRetrieveFromDbById(String gcGrouperSyncGroupId) select grouper sync group by gcGrouperSyncGroupId idinternal_groupRetrieveFromDbByIds(Collection<String> syncGroupIdsCollection) select grouper sync group by sync id and group idvoidinternal_groupStore(GcGrouperSyncGroup gcGrouperSyncGroup) store batch, generally call this from store all objects from GcGrouperSyncintinternal_groupStore(Collection<GcGrouperSyncGroup> gcGrouperSyncGroups) store batch, generally call this from store all objects from GcGrouperSyncintget count of rows per error coderetrieveGroupIdsWithErrorsAfterMillis(Timestamp errorTimestampCheckFrom) get group ids with errors after error timestampvoidsetGcGrouperSync(GcGrouperSync gcGrouperSync)
-
Constructor Details
-
GcGrouperSyncGroupDao
public GcGrouperSyncGroupDao()
-
-
Method Details
-
groupCreateByGroupId
select grouper sync group by group id. Note: this doesnt store to db yet, you do that at the end- Parameters:
connectionName-groupId-- Returns:
- the group
-
internal_groupRetrieveFromDbByGroupNameFromGroupId
select grouper sync group by group id- Parameters:
connectionName-groupId-- Returns:
- the group
-
internal_groupCreateByGroupIdHelper
select grouper sync group by group id. Note: this doesnt store to db yet, you do that at the end- Parameters:
connectionName-groupId-- Returns:
- the group
-
groupDelete
public int groupDelete(Collection<GcGrouperSyncGroup> gcGrouperSyncGroups, boolean deleteMemberships, boolean deleteLogs) delete batch- Parameters:
gcGrouperSyncGroups-- Returns:
- rows deleted (groups and logs)
-
groupDelete
public int groupDelete(GcGrouperSyncGroup gcGrouperSyncGroup, boolean deleteMemberships, boolean deleteLogs) delete sync group- Parameters:
gcGrouperSyncGroup-- Returns:
- rows deleted (groups and logs)
-
groupDeleteAll
public int groupDeleteAll(boolean deleteMemberships, boolean deleteLogs) delete all groups for a sync- Parameters:
deleteMemberships- true if delete memberships and logs for memberships toodeleteLogs- delete logs too- Returns:
- the syncs
-
groupRetrieveAll
select grouper sync group by sync id and group id- Parameters:
grouperSyncId-provisionerName-- Returns:
- the syncs
-
groupRetrieveByGroupId
select grouper sync group by group id- Parameters:
connectionName-groupId-- Returns:
- the group
-
groupRetrieveByGroupIds
public Map<String,GcGrouperSyncGroup> groupRetrieveByGroupIds(Collection<String> grouperGroupIdsCollection) select grouper sync group by sync id and group id- Parameters:
grouperSyncId-grouperGroupIdsCollection-provisionerName-- Returns:
- the groupId to syncGroup map
-
groupRetrieveByIdFromCache
- Parameters:
gcGrouperSyncGroupId-- Returns:
-
groupRetrieveById
select grouper sync group by id- Parameters:
gcGrouperSyncGroupId-- Returns:
- the group
-
groupRetrieveByIds
select grouper sync groups by ids- Parameters:
gcGrouperSyncGroupIds-- Returns:
- map of ids to gcGrouperSyncGroups
-
groupRetrieveOrCreateByGroupId
select grouper sync group by group id. This will make sure there are uuids for new ones- Parameters:
connectionName-groupId-- Returns:
- the group
-
groupRetrieveOrCreateByGroupIds
public Map<String,GcGrouperSyncGroup> groupRetrieveOrCreateByGroupIds(Collection<String> grouperGroupIdsCollection) select grouper sync group by group id. this will make sure there are uuids for new ones- Parameters:
grouperSyncId-grouperGroupIdsCollection-provisionerName-- Returns:
- the groupId to syncGroup map
-
groupCreateLog
- Parameters:
gcGrouperSyncGroupId-- Returns:
- log
-
internal_groupCacheDelete
- Parameters:
gcGrouperSyncGroup-
-
internal_groupRetrieveFromDbAll
select grouper sync group by sync id and group id- Parameters:
grouperSyncId-provisionerName-- Returns:
- the syncs
-
internal_groupRetrieveFromDbByGroupId
select grouper sync group by group id- Parameters:
connectionName-groupId-- Returns:
- the group
-
internal_groupRetrieveFromDbByGroupIds
public Map<String,GcGrouperSyncGroup> internal_groupRetrieveFromDbByGroupIds(Collection<String> grouperGroupIdsCollection) select grouper sync group by sync id and group id- Parameters:
grouperSyncId-grouperGroupIdsCollection-provisionerName-- Returns:
- the groupId to syncGroup map
-
internal_groupRetrieveFromDbById
select grouper sync group by gcGrouperSyncGroupId id- Parameters:
gcGrouperSyncGroupId-- Returns:
- the gcGrouperSyncGroup
-
internal_groupRetrieveFromDbByIds
public Map<String,GcGrouperSyncGroup> internal_groupRetrieveFromDbByIds(Collection<String> syncGroupIdsCollection) select grouper sync group by sync id and group id- Parameters:
grouperSyncId-syncGroupIdsCollection-provisionerName-- Returns:
- the id to syncGroup map
-
getGcGrouperSync
- Returns:
-
setGcGrouperSync
- Parameters:
gcGrouperSync-
-
internal_groupStoreAll
public int internal_groupStoreAll()- Returns:
- number of groups stored
-
retrieveUpdatedCacheSyncGroups
- Returns:
- gcGrouperSyncGroups that have been modified
-
internal_groupStore
store batch, generally call this from store all objects from GcGrouperSync- Parameters:
gcGrouperSyncGroups-- Returns:
- number of changes
-
internal_groupStore
store batch, generally call this from store all objects from GcGrouperSync- Parameters:
gcGrouperSyncGroups-
-
retrieveGroupIdsWithErrorsAfterMillis
get group ids with errors after error timestamp- Parameters:
errorTimestampCheckFrom- if null get all- Returns:
- group ids
-
retrieveErrorCountByCode
get count of rows per error code- Returns:
-