Class GcGrouperSyncGroup
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncGroup
- All Implemented Interfaces:
GcDbVersionable
,GcSqlAssignPrimaryKey
data about groups being synced
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assignField
(String syncField, Object result) 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 dbboolean
equalsDeep
(Object obj) boolean
assign a new primary key for insert.connection name or null for defaultError code e.g.Error code e.g.if the last sync had an error, this is the error messagethis the last sync had an error, this was the error timestampmetadata on groupsother metadata on groupsother metadata on groupsother metadata on groupsuuid of the job in grouper_syncfor groups this is the group uuid, though not a real foreign keyif group then this is the id indexfor groups this is the group system namegetId()
uuid of this record in this tableif this group exists in the target/destination true means in target, false means not in target, null means unsure (not selecting or inserting)if this group exists in the target/destination T means in target, F means not in target, and null means not applicable (not selecting or inserting)when this group was provisioned to targetT if inserted on the in_target_start date, or F if it existed then and not sure when insertedwhen this group was provisioned to targetwhen this groups name and description and metadata was syncedwhen this groups name and description and metadata was synced, startwhen this group was last sync startlast time a record was processewhen this record was last updatedadditional metadata for groupwhen metadata was last updatedT if provisionable and F is notmillis since 1970 that this group ended being provisionablemillis since 1970 that this group started to be provisionableboolean
T if inserted on the in_target_start date, or F if it existed then and not sure when insertedboolean
if provisionablestatic void
boolean
matchesAttribute
(String logAllObjectsVerboseGroupAttribute, String logAllObjectsVerboseForTheseGroupName) boolean
matchesAttribute
(String logAllObjectsVerboseGroupAttribute, Set<String> logAllObjectsVerboseForTheseGroupNames) boolean
matchesAttribute
(Set<String> logAllObjectsVerboseGroupAttributes, Set<String> logAllObjectsVerboseForTheseGroupNames) static void
reset()
delete all data if table is hereretrieveField
(String syncField) void
setConnectionName
(String connectionName1) connection name or null for defaultvoid
setErrorCode
(GcGrouperSyncErrorCode gcGrouperSyncErrorCode) Error code e.g.void
setErrorCodeDb
(String errorCodeDb) Error code e.g.void
setErrorMessage
(String errorMessage1) if the last sync had an error, this is the error messagevoid
setErrorTimestamp
(Timestamp errorTimestamp1) this the last sync had an error, this was the error timestampvoid
setGroupAttributeValueCache0
(String groupAttributeValueCache0_1) metadata on groupsvoid
setGroupAttributeValueCache1
(String groupAttributeValueCache1_1) other metadata on groupsvoid
setGroupAttributeValueCache2
(String groupAttributeValueCache2_1) other metadata on groupsvoid
setGroupAttributeValueCache3
(String groupAttributeValueCache3_1) other metadata on groupsvoid
setGrouperSync
(GcGrouperSync gcGrouperSync) void
setGrouperSyncId
(String grouperSyncId1) uuid of the job in grouper_syncvoid
setGroupId
(String groupId1) for groups this is the group uuid, though not a real foreign keyvoid
setGroupIdIndex
(Long groupIdIndex1) if group then this is the id indexvoid
setGroupName
(String groupName1) for groups this is the group system namevoid
uuid of this record in this tablevoid
setInTarget
(Boolean inTarget) if in target true means in target, false means not in target, null means unsure (not selecting or inserting)void
setInTargetDb
(String inTargetDb1) if this group exists in the target/destination T means in target, F means not in target, and null means not applicable (not selecting or inserting)void
setInTargetEnd
(Timestamp inTargetEnd1) when this group was provisioned to targetvoid
setInTargetInsertOrExists
(boolean inTargetInsertOrExists) T if inserted on the in_target_start date, or F if it existed then and not sure when insertedvoid
setInTargetInsertOrExistsDb
(String inTargetInsertOrExistsDb1) T if inserted on the in_target_start date, or F if it existed then and not sure when insertedvoid
setInTargetStart
(Timestamp inTargetStart1) when this group was provisioned to targetvoid
setLastGroupMetadataSync
(Timestamp lastGroupMetadataSync) when this groups name and description and metadata was syncedvoid
setLastGroupMetadataSyncStart
(Timestamp lastGroupMetadataSyncStart) when this groups name and description and metadata was synced, startvoid
setLastGroupSync
(Timestamp lastGroupSync1) when this group was last syncedvoid
setLastGroupSyncStart
(Timestamp lastGroupSyncStart) when this group was last sync startvoid
setLastTimeWorkWasDone
(Timestamp lastTimeWorkWasDone1) last time a record was processevoid
setLastUpdated
(Timestamp lastUpdated1) when this record was last updatedvoid
setMetadataJson
(String metadataJson) additional metadata for groupvoid
setMetadataUpdated
(Timestamp metadataUpdated1) when metadata was last updatedvoid
setProvisionable
(boolean provisionable) if provisionablevoid
setProvisionableDb
(String provisionableDb1) T if provisionable and F is notvoid
setProvisionableEnd
(Timestamp provisionableEndMillis1) millis since 1970 that this group ended being provisionablevoid
setProvisionableStart
(Timestamp provisionableStartMillis1) millis since 1970 that this group started to be provisionablevoid
prepare to storetoString()
-
Constructor Details
-
GcGrouperSyncGroup
public GcGrouperSyncGroup()
-
-
Method Details
-
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
-
getLastGroupSyncStart
when this group was last sync start- Returns:
-
setLastGroupSyncStart
when this group was last sync start- Parameters:
lastGroupSyncStart
-
-
getLastGroupSync
-
setLastGroupSync
when this group was last synced- Parameters:
lastGroupSync1
-
-
getLastGroupMetadataSyncStart
when this groups name and description and metadata was synced, start- Returns:
-
setLastGroupMetadataSyncStart
when this groups name and description and metadata was synced, start- Parameters:
lastGroupMetadataSyncStart
-
-
getLastGroupMetadataSync
when this groups name and description and metadata was synced- Returns:
- when this group was last synced
-
setLastGroupMetadataSync
when this groups name and description and metadata was synced- Parameters:
lastGroupMetadataSync
-
-
reset
public static void reset()delete all data if table is here -
storePrepare
public void storePrepare()prepare to store -
getGrouperSync
- Returns:
- gc grouper sync
-
setGrouperSync
- Parameters:
gcGrouperSync
-
-
getErrorCodeDb
Error code e.g. ERR error, INV invalid based on script, LEN attribute too large, REQ required attribute missing, DNE data in target does not exist- Returns:
-
setErrorCodeDb
Error code e.g. ERR error, INV invalid based on script, LEN attribute too large, REQ required attribute missing, DNE data in target does not exist- Parameters:
errorCodeDb
-
-
getErrorCode
Error code e.g. ERR error, INV invalid based on script, LEN attribute too large, REQ required attribute missing, DNE data in target does not exist- Returns:
-
setErrorCode
Error code e.g. ERR error, INV invalid based on script, LEN attribute too large, REQ required attribute missing, DNE data in target does not exist- Parameters:
gcGrouperSyncErrorCode
-
-
getErrorMessage
if the last sync had an error, this is the error message- Returns:
- error message
-
setErrorMessage
if the last sync had an error, this is the error message- Parameters:
errorMessage1
-
-
getErrorTimestamp
this the last sync had an error, this was the error timestamp- Returns:
- error timestamp
-
setErrorTimestamp
this the last sync had an error, this was the error timestamp- Parameters:
errorTimestamp1
-
-
getConnectionName
connection name or null for default- Returns:
- connection name
-
setConnectionName
connection name or null for default- Parameters:
connectionName1
-
-
main
- Parameters:
args
-
-
toString
-
getLastTimeWorkWasDone
last time a record was processe- Returns:
- last time a record was processed
-
setLastTimeWorkWasDone
last time a record was processe- Parameters:
lastTimeWorkWasDone1
-
-
getMetadataJson
additional metadata for group- Returns:
- metadataJson
-
setMetadataJson
additional metadata for group- Parameters:
metadataJson
-
-
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
-
getInTargetDb
if this group exists in the target/destination T means in target, F means not in target, and null means not applicable (not selecting or inserting)- Returns:
- if in target
-
setInTargetDb
if this group exists in the target/destination T means in target, F means not in target, and null means not applicable (not selecting or inserting)- Parameters:
inTargetDb1
-
-
setInTarget
if in target true means in target, false means not in target, null means unsure (not selecting or inserting)- Parameters:
in
- target
-
getInTarget
if this group exists in the target/destination true means in target, false means not in target, null means unsure (not selecting or inserting)- Returns:
- if is target
-
getInTargetInsertOrExistsDb
T if inserted on the in_target_start date, or F if it existed then and not sure when inserted- Returns:
- true or false
-
setInTargetInsertOrExistsDb
T if inserted on the in_target_start date, or F if it existed then and not sure when inserted- Parameters:
inTargetInsertOrExistsDb1
-
-
getMetadataUpdated
when metadata was last updated- Returns:
-
setMetadataUpdated
when metadata was last updated- Parameters:
metadataUpdated1
-
-
isInTargetInsertOrExists
public boolean isInTargetInsertOrExists()T if inserted on the in_target_start date, or F if it existed then and not sure when inserted- Returns:
- true or false
-
setInTargetInsertOrExists
public void setInTargetInsertOrExists(boolean inTargetInsertOrExists) T if inserted on the in_target_start date, or F if it existed then and not sure when inserted- Parameters:
inTargetInsertOrExists
-
-
getGrouperSyncId
uuid of the job in grouper_sync- Returns:
- uuid of the job in grouper_sync
-
setGrouperSyncId
uuid of the job in grouper_sync- Parameters:
grouperSyncId1
-
-
getLastUpdated
when this record was last updated- Returns:
- the lastUpdated
-
setLastUpdated
when this record was last updated- Parameters:
lastUpdated1
-
-
getGroupId
for groups this is the group uuid, though not a real foreign key- Returns:
- group id
-
setGroupId
for groups this is the group uuid, though not a real foreign key- Parameters:
groupId1
-
-
getGroupName
for groups this is the group system name- Returns:
- group name
-
setGroupName
for groups this is the group system name- Parameters:
groupName1
-
-
getProvisionableDb
T if provisionable and F is not- Returns:
- if provisionable
-
setProvisionableDb
T if provisionable and F is not- Parameters:
provisionableDb1
-
-
isProvisionable
public boolean isProvisionable()if provisionable- Returns:
- if provisionable
-
setProvisionable
public void setProvisionable(boolean provisionable) if provisionable- Parameters:
provisionable
-
-
getProvisionableStart
millis since 1970 that this group started to be provisionable- Returns:
- millis
-
setProvisionableStart
millis since 1970 that this group started to be provisionable- Parameters:
provisionableStartMillis1
-
-
getInTargetStart
when this group was provisioned to target- Returns:
- when
-
setInTargetStart
when this group was provisioned to target- Parameters:
inTargetStart1
-
-
getInTargetEnd
when this group was provisioned to target- Returns:
- when
-
setInTargetEnd
when this group was provisioned to target- Parameters:
inTargetEnd1
-
-
getProvisionableEnd
millis since 1970 that this group ended being provisionable- Returns:
- millis
-
setProvisionableEnd
millis since 1970 that this group ended being provisionable- Parameters:
provisionableEndMillis1
-
-
getGroupIdIndex
if group then this is the id index- Returns:
- id index
-
setGroupIdIndex
if group then this is the id index- Parameters:
groupIdIndex1
-
-
getGroupAttributeValueCache0
metadata on groups- Returns:
- group from id 2
-
setGroupAttributeValueCache0
metadata on groups- Parameters:
groupAttributeValueCache0_1
-
-
getGroupAttributeValueCache1
other metadata on groups- Returns:
- id3
-
setGroupAttributeValueCache1
other metadata on groups- Parameters:
groupAttributeValueCache1_1
-
-
getGroupAttributeValueCache2
other metadata on groups- Returns:
- metadata
-
setGroupAttributeValueCache2
other metadata on groups- Parameters:
groupAttributeValueCache2_1
-
-
getGroupAttributeValueCache3
other metadata on groups- Returns:
- group id
-
setGroupAttributeValueCache3
other metadata on groups- Parameters:
groupAttributeValueCache3_1
-
-
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
-
assignField
- Parameters:
translateGrouperToGroupSyncField
-result
-
-
retrieveField
- Parameters:
translateGrouperToGroupSyncField
-result
-
-
matchesAttribute
public boolean matchesAttribute(Set<String> logAllObjectsVerboseGroupAttributes, Set<String> logAllObjectsVerboseForTheseGroupNames) - Parameters:
logAllObjectsVerboseGroupAttributes
-logAllObjectsVerboseForTheseGroupNames
-- Returns:
- if matches attribute
-
matchesAttribute
public boolean matchesAttribute(String logAllObjectsVerboseGroupAttribute, Set<String> logAllObjectsVerboseForTheseGroupNames) - Parameters:
string
-logAllObjectsVerboseForTheseGroupNames
-- Returns:
-
matchesAttribute
-