Class GcGrouperSync
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSync
- All Implemented Interfaces:
GcDbVersionable
,GcSqlAssignPrimaryKey
one record for each provisioner. even if full and incremental, only one record.
retrieve all other sync objects from this object, and pass it around, and store all at once at end
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
use this to propagate attestation from folders to groupsstatic final String
use this for deprovisioningstatic final String
use this to full sync membership requirestatic final String
use this to propagate object types from folders to sub folders and groupsstatic final String
use this for provisioningstatic final String
use this for sql engine syncstatic final String
use this to propagate attestation from folders to groups -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObjectCreatedCount
(int amountToAdd) add object count created (query count)int
clone()
deep clone the fields in this objectvoid
db versionboolean
if we need to update this objectvoid
take a snapshot of the data since this is what is in the dbstatic String
defaultConnectionName
(String connectionName) use 'grouper' if not specifiedboolean
equalsDeep
(Object obj) boolean
assign a new primary key for insert.connection name or null for defaultdao for syncsdao for group group operationsdao for group user operationsdao for groupsdao for jobsdao for log operationsdao for membersdao for membershipsif group this is the number of groupsgetId()
uuid of this record in this tableint of last record processedwhen last record processed if timestamp and not integerint
keep count of objects createdwhen last full metadata sync ran.when last full metadata sync started.when last full sync ran (end)when last full sync startedwhen incremental sync ranwhen this record was last updatedname of provisioner must be unique.number of records including users, groups, etce.g.if has users, this is the number of usersstatic void
int
static void
reset()
delete all data if table is herevoid
setConnectionName
(String connectionName1) connection name or null for defaultvoid
setGroupCount
(Integer groupCount1) if group this is the number of groupsvoid
uuid of this record in this tablevoid
setIncrementalIndex
(Long incrementalIndexOrMillis1) int of last record processedvoid
setIncrementalTimestamp
(Timestamp incrementalTimestamp1) when last record processed if timestamp and not integervoid
setInternalObjectsCreatedCount
(int internalObjectsCreatedCount1) keep count of objects createdvoid
setLastFullMetadataSyncRun
(Timestamp lastFullMetadataSyncRun1) when last full metadata sync ran.void
setLastFullMetadataSyncStart
(Timestamp lastFullMetadataSyncStart) when last full metadata sync started.void
setLastFullSyncRun
(Timestamp lastFullSyncRun1) when last full sync ran (end)void
setLastFullSyncStart
(Timestamp lastFullSyncStart) when last full sync startedvoid
setLastIncrementalSyncRun
(Timestamp lastIncrementalSyncRun1) when incremental sync ranvoid
setLastUpdated
(Timestamp lastUpdated1) when this record was last updatedvoid
setProvisionerName
(String provisionerName1) name of provisioner must be unique.void
setRecordsCount
(Integer recordsCount1) number of records including users, groups, etcvoid
setSyncEngine
(String syncEngine1) e.g.void
setUserCount
(Integer userCount1) if has users, this is the number of usersvoid
toString()
-
Field Details
-
SQL_SYNC_ENGINE
use this for sql engine sync- See Also:
-
PROVISIONING
use this for provisioning- See Also:
-
DEPROVISIONING
use this for deprovisioning- See Also:
-
OBJECT_TYPE_PROPAGATION
use this to propagate object types from folders to sub folders and groups- See Also:
-
ATTESTATION_PROPAGATION
use this to propagate attestation from folders to groups- See Also:
-
STEM_VIEW_PRIVILEGES
use this to propagate attestation from folders to groups- See Also:
-
MEMBERSHIP_REQUIRE
use this to full sync membership require- See Also:
-
-
Constructor Details
-
GcGrouperSync
public GcGrouperSync()
-
-
Method Details
-
getInternalObjectsCreatedCount
public int getInternalObjectsCreatedCount()keep count of objects created- Returns:
- count
-
setInternalObjectsCreatedCount
public void setInternalObjectsCreatedCount(int internalObjectsCreatedCount1) keep count of objects created- Parameters:
internalObjectsCreatedCount1
-
-
addObjectCreatedCount
public void addObjectCreatedCount(int amountToAdd) add object count created (query count)- Parameters:
amountToAdd
-
-
batchSize
public int batchSize()- Returns:
- batch size if configured or 1000 be default
-
maxBindVarsInSelect
public int maxBindVarsInSelect()- Returns:
- batch size if configured or 1000 be default
-
getGcGrouperSyncGroupDao
dao for groups- Returns:
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Specified by:
dbVersionReset
in interfaceGcDbVersionable
-
dbVersionDifferent
public boolean dbVersionDifferent()if we need to update this object- Specified by:
dbVersionDifferent
in interfaceGcDbVersionable
- Returns:
- if needs to update this object
-
dbVersionDelete
public void dbVersionDelete()db version- Specified by:
dbVersionDelete
in interfaceGcDbVersionable
-
clone
deep clone the fields in this object -
equalsDeep
-
reset
public static void reset()delete all data if table is here -
defaultConnectionName
use 'grouper' if not specified- Parameters:
connectionName
-- Returns:
- the connection name
-
getLastIncrementalSyncRun
when incremental sync ran- Returns:
-
setLastIncrementalSyncRun
when incremental sync ran- Parameters:
lastIncrementalSyncRun1
-
-
getLastFullSyncStart
when last full sync started- Returns:
-
setLastFullSyncStart
when last full sync started- Parameters:
lastFullSyncStart
-
-
getLastFullSyncRun
when last full sync ran (end)- Returns:
- when
-
setLastFullSyncRun
when last full sync ran (end)- Parameters:
lastFullSyncRun1
-
-
getLastFullMetadataSyncStart
when last full metadata sync started. this needs to run when groups get renamed- Returns:
-
setLastFullMetadataSyncStart
when last full metadata sync started. this needs to run when groups get renamed- Parameters:
lastFullMetadataSyncStart
-
-
getLastFullMetadataSyncRun
when last full metadata sync ran. this needs to run when groups get renamed- Returns:
- when
-
setLastFullMetadataSyncRun
when last full metadata sync ran. this needs to run when groups get renamed- Parameters:
lastFullMetadataSyncRun1
-
-
getIncrementalIndex
int of last record processed- Returns:
- number
-
setIncrementalIndex
int of last record processed- Parameters:
incrementalIndexOrMillis1
-
-
getIncrementalTimestamp
when last record processed if timestamp and not integer- Returns:
- timestamp
-
setIncrementalTimestamp
when last record processed if timestamp and not integer- Parameters:
incrementalTimestamp1
-
-
getConnectionName
connection name or null for default- Returns:
- connection name
-
setConnectionName
connection name or null for default- Parameters:
connectionName1
-
-
storePrepare
public void storePrepare() -
main
- Parameters:
args
-
-
toString
-
getId
uuid of this record in this table- Returns:
- the id
-
setId
uuid of this record in this table- Parameters:
id1
- the id to set
-
getSyncEngine
e.g. for syncing sql, it sqlTableSync- Returns:
- sync engine
-
setSyncEngine
e.g. for syncing sql, it sqlTableSync- Parameters:
syncEngine1
-
-
getProvisionerName
name of provisioner must be unique. this is the config key generally- Returns:
- provisioner name
-
setProvisionerName
name of provisioner must be unique. this is the config key generally- Parameters:
provisionerName1
-
-
getLastUpdated
when this record was last updated- Returns:
- when last updated
-
setLastUpdated
when this record was last updated- Parameters:
lastUpdated1
-
-
getGroupCount
if group this is the number of groups- Returns:
- group count
-
setGroupCount
if group this is the number of groups- Parameters:
groupCount1
-
-
getUserCount
if has users, this is the number of users- Returns:
- user count
-
setUserCount
if has users, this is the number of users- Parameters:
userCount1
-
-
getGcGrouperSyncLogDao
dao for log operations- Returns:
-
getGcGrouperSyncDependencyGroupGroupDao
dao for group group operations- Returns:
- the dao
-
getGcGrouperSyncDependencyGroupUserDao
dao for group user operations- Returns:
- the dao
-
getRecordsCount
number of records including users, groups, etc- Returns:
- number of records
-
setRecordsCount
number of records including users, groups, etc- Parameters:
recordsCount1
-
-
gcSqlAssignNewPrimaryKeyForInsert
public boolean gcSqlAssignNewPrimaryKeyForInsert()Description copied from interface:GcSqlAssignPrimaryKey
assign a new primary key for insert. return true if assigned (insert) or false if not needed- Specified by:
gcSqlAssignNewPrimaryKeyForInsert
in interfaceGcSqlAssignPrimaryKey
-
getGcGrouperSyncJobDao
dao for jobs- Returns:
-
getGcGrouperSyncMemberDao
dao for members- Returns:
-
getGcGrouperSyncMembershipDao
dao for memberships- Returns:
-
getGcGrouperSyncDao
dao for syncs- Returns:
-