public class GcGrouperSync extends Object implements GcSqlAssignPrimaryKey, GcDbVersionable
Modifier and Type | Field and Description |
---|---|
static String |
SQL_SYNC_ENGINE
use this for sql engine sync
|
Constructor and Description |
---|
GcGrouperSync() |
Modifier and Type | Method and Description |
---|---|
GcGrouperSync |
clone()
deep clone the fields in this object
|
void |
dbVersionDelete()
db version
|
boolean |
dbVersionDifferent()
if we need to update this object
|
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db
|
static String |
defaultConnectionName(String connectionName)
use 'grouper' if not specified
|
void |
delete() |
boolean |
equalsDeep(Object obj) |
void |
gcSqlAssignNewPrimaryKeyForInsert()
assign a new primary key for insert
|
String |
getConnectionName()
connection name or null for default
|
Integer |
getGroupCount()
if group this is the number of groups
|
String |
getId()
uuid of this record in this table
|
Long |
getIncrementalIndex()
int of last record processed
|
Timestamp |
getIncrementalTimestamp()
when last record processed if timestamp and not integer
|
Timestamp |
getLastFullMetadataSyncRun()
when last full metadata sync ran.
|
Timestamp |
getLastFullSyncRun()
when last full sync ran
|
Timestamp |
getLastIncrementalSyncRun()
when incremental sync ran
|
Timestamp |
getLastUpdated()
when this record was last updated
|
String |
getProvisionerName()
name of provisioner must be unique.
|
Integer |
getRecordsCount()
number of records including users, groups, etc
|
String |
getSyncEngine()
e.g.
|
Integer |
getUserCount()
if has users, this is the number of users
|
void |
listProvisionerJobAsPending(String syncType)
register this job as pending
|
static void |
main(String[] args) |
static void |
reset()
delete all data if table is here
|
List<GcGrouperSyncGroup> |
retrieveAllGroups()
select grouper sync group by sync id and group id
|
List<GcGrouperSyncJob> |
retrieveAllJobs()
wait for related jobs to finish running, then run
|
static GcGrouperSync |
retrieveById(String theConnectionName,
String id)
select grouper sync by id
|
static GcGrouperSync |
retrieveByProvisionerName(String theConnectionName,
String provisionerName)
select grouper sync by provisioner name
|
GcGrouperSyncGroup |
retrieveGroupByGroupId(String groupId)
select grouper sync group by group id
|
GcGrouperSyncJob |
retrieveJobBySyncType(String syncType)
select grouper sync job by sync type
|
GcGrouperSyncJob |
retrieveJobOrCreateBySyncType(String syncType)
retrieve a sync provisioner or create
|
GcGrouperSyncMember |
retrieveMemberByMemberId(String memberId)
select grouper sync user by user id
|
static GcGrouperSync |
retrieveOrCreateByProvisionerName(String theConnectionName,
String provisionerName)
retrieve a sync provisioner or create
|
void |
setConnectionName(String connectionName1)
connection name or null for default
|
void |
setGroupCount(Integer groupCount1)
if group this is the number of groups
|
void |
setId(String id1)
uuid of this record in this table
|
void |
setIncrementalIndex(Long incrementalIndexOrMillis1)
int of last record processed
|
void |
setIncrementalTimestamp(Timestamp incrementalTimestamp1)
when last record processed if timestamp and not integer
|
void |
setLastFullMetadataSyncRun(Timestamp lastFullMetadataSyncRun1)
when last full metadata sync ran.
|
void |
setLastFullSyncRun(Timestamp lastFullSyncRun1)
when last full sync ran
|
void |
setLastIncrementalSyncRun(Timestamp lastIncrementalSyncRun1)
when incremental sync ran
|
void |
setLastUpdated(Timestamp lastUpdated1)
when this record was last updated
|
void |
setProvisionerName(String provisionerName1)
name of provisioner must be unique.
|
void |
setRecordsCount(Integer recordsCount1)
number of records including users, groups, etc
|
void |
setSyncEngine(String syncEngine1)
e.g.
|
void |
setUserCount(Integer userCount1)
if has users, this is the number of users
|
void |
store() |
String |
toString() |
GcGrouperSyncJob |
waitForRelatedJobsToFinishThenRun(String syncType,
boolean goToPendingFirstAkaLargeJob)
wait for related jobs to finish running, then run
|
public static final String SQL_SYNC_ENGINE
public void dbVersionReset()
dbVersionReset
in interface GcDbVersionable
public boolean dbVersionDifferent()
dbVersionDifferent
in interface GcDbVersionable
public void dbVersionDelete()
dbVersionDelete
in interface GcDbVersionable
public GcGrouperSync clone()
public boolean equalsDeep(Object obj)
public static void reset()
public static String defaultConnectionName(String connectionName)
connectionName
- public static GcGrouperSync retrieveByProvisionerName(String theConnectionName, String provisionerName)
theConnectionName
- provisionerName
- public GcGrouperSyncJob waitForRelatedJobsToFinishThenRun(String syncType, boolean goToPendingFirstAkaLargeJob)
provisionerName
- goToPendingFirstAkaLargeJob
- is if this is a big job and needs to register as pending first so
it knows it should run now. falso if quick job and doesnt matterpublic List<GcGrouperSyncJob> retrieveAllJobs()
public List<GcGrouperSyncGroup> retrieveAllGroups()
grouperSyncId
- provisionerName
- public static GcGrouperSync retrieveOrCreateByProvisionerName(String theConnectionName, String provisionerName)
theConnectionName
- syncEngine
- provisionerName
- public void listProvisionerJobAsPending(String syncType)
provisionerName
- syncType
- public Timestamp getLastIncrementalSyncRun()
public void setLastIncrementalSyncRun(Timestamp lastIncrementalSyncRun1)
lastIncrementalSyncRun1
- public Timestamp getLastFullSyncRun()
public void setLastFullSyncRun(Timestamp lastFullSyncRun1)
lastFullSyncRun1
- public Timestamp getLastFullMetadataSyncRun()
public void setLastFullMetadataSyncRun(Timestamp lastFullMetadataSyncRun1)
lastFullMetadataSyncRun1
- public Long getIncrementalIndex()
public void setIncrementalIndex(Long incrementalIndexOrMillis1)
incrementalIndexOrMillis1
- public Timestamp getIncrementalTimestamp()
public void setIncrementalTimestamp(Timestamp incrementalTimestamp1)
incrementalTimestamp1
- public static GcGrouperSync retrieveById(String theConnectionName, String id)
theConnectionName
- id
- public GcGrouperSyncJob retrieveJobBySyncType(String syncType)
connectionName
- syncType
- public GcGrouperSyncJob retrieveJobOrCreateBySyncType(String syncType)
theConnectionName
- grouperSyncId
- syncType
- public GcGrouperSyncGroup retrieveGroupByGroupId(String groupId)
connectionName
- groupId
- public GcGrouperSyncMember retrieveMemberByMemberId(String memberId)
connectionName
- mcemberId
- public String getConnectionName()
public void setConnectionName(String connectionName1)
connectionName1
- public void store()
connectionName
- public void delete()
connectionName
- public static void main(String[] args)
args
- public String getId()
public void setId(String id1)
id1
- the id to setpublic String getSyncEngine()
public void setSyncEngine(String syncEngine1)
syncEngine1
- public String getProvisionerName()
public void setProvisionerName(String provisionerName1)
provisionerName1
- public Timestamp getLastUpdated()
public void setLastUpdated(Timestamp lastUpdated1)
lastUpdated1
- public Integer getGroupCount()
public void setGroupCount(Integer groupCount1)
groupCount1
- public Integer getUserCount()
public void setUserCount(Integer userCount1)
userCount1
- public Integer getRecordsCount()
public void setRecordsCount(Integer recordsCount1)
recordsCount1
- public void gcSqlAssignNewPrimaryKeyForInsert()
GcSqlAssignPrimaryKey
gcSqlAssignNewPrimaryKeyForInsert
in interface GcSqlAssignPrimaryKey
Copyright © 2020 Internet2. All rights reserved.