Class GcGrouperSyncGroup

java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncGroup
All Implemented Interfaces:
GcDbVersionable, GcSqlAssignPrimaryKey

public class GcGrouperSyncGroup extends Object implements GcSqlAssignPrimaryKey, GcDbVersionable
data about groups being synced
  • 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 interface GcDbVersionable
    • dbVersionDifferent

      public boolean dbVersionDifferent()
      if we need to update this object
      Specified by:
      dbVersionDifferent in interface GcDbVersionable
      Returns:
      if needs to update this object
    • dbVersionDelete

      public void dbVersionDelete()
      db version
      Specified by:
      dbVersionDelete in interface GcDbVersionable
    • clone

      public GcGrouperSyncGroup clone()
      deep clone the fields in this object
      Overrides:
      clone in class Object
    • equalsDeep

      public boolean equalsDeep(Object obj)
    • getLastGroupSyncStart

      public Timestamp getLastGroupSyncStart()
      when this group was last sync start
      Returns:
    • setLastGroupSyncStart

      public void setLastGroupSyncStart(Timestamp lastGroupSyncStart)
      when this group was last sync start
      Parameters:
      lastGroupSyncStart -
    • getLastGroupSync

      public Timestamp getLastGroupSync()
    • setLastGroupSync

      public void setLastGroupSync(Timestamp lastGroupSync1)
      when this group was last synced
      Parameters:
      lastGroupSync1 -
    • getLastGroupMetadataSyncStart

      public Timestamp getLastGroupMetadataSyncStart()
      when this groups name and description and metadata was synced, start
      Returns:
    • setLastGroupMetadataSyncStart

      public void setLastGroupMetadataSyncStart(Timestamp lastGroupMetadataSyncStart)
      when this groups name and description and metadata was synced, start
      Parameters:
      lastGroupMetadataSyncStart -
    • getLastGroupMetadataSync

      public Timestamp getLastGroupMetadataSync()
      when this groups name and description and metadata was synced
      Returns:
      when this group was last synced
    • setLastGroupMetadataSync

      public void setLastGroupMetadataSync(Timestamp lastGroupMetadataSync)
      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

      public GcGrouperSync getGrouperSync()
      Returns:
      gc grouper sync
    • setGrouperSync

      public void setGrouperSync(GcGrouperSync gcGrouperSync)
      Parameters:
      gcGrouperSync -
    • getErrorCodeDb

      public String 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

      public void setErrorCodeDb(String errorCodeDb)
      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

      public GcGrouperSyncErrorCode 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

      public void setErrorCode(GcGrouperSyncErrorCode gcGrouperSyncErrorCode)
      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

      public String getErrorMessage()
      if the last sync had an error, this is the error message
      Returns:
      error message
    • setErrorMessage

      public void setErrorMessage(String errorMessage1)
      if the last sync had an error, this is the error message
      Parameters:
      errorMessage1 -
    • getErrorTimestamp

      public Timestamp getErrorTimestamp()
      this the last sync had an error, this was the error timestamp
      Returns:
      error timestamp
    • setErrorTimestamp

      public void setErrorTimestamp(Timestamp errorTimestamp1)
      this the last sync had an error, this was the error timestamp
      Parameters:
      errorTimestamp1 -
    • getConnectionName

      public String getConnectionName()
      connection name or null for default
      Returns:
      connection name
    • setConnectionName

      public void setConnectionName(String connectionName1)
      connection name or null for default
      Parameters:
      connectionName1 -
    • main

      public static void main(String[] args)
      Parameters:
      args -
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLastTimeWorkWasDone

      public Timestamp getLastTimeWorkWasDone()
      last time a record was processe
      Returns:
      last time a record was processed
    • setLastTimeWorkWasDone

      public void setLastTimeWorkWasDone(Timestamp lastTimeWorkWasDone1)
      last time a record was processe
      Parameters:
      lastTimeWorkWasDone1 -
    • getMetadataJson

      public String getMetadataJson()
      additional metadata for group
      Returns:
      metadataJson
    • setMetadataJson

      public void setMetadataJson(String metadataJson)
      additional metadata for group
      Parameters:
      metadataJson -
    • getId

      public String getId()
      uuid of this record in this table
      Returns:
      the id
    • setId

      public void setId(String id1)
      uuid of this record in this table
      Parameters:
      id1 - the id to set
    • getInTargetDb

      public String 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

      public 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)
      Parameters:
      inTargetDb1 -
    • setInTarget

      public void setInTarget(Boolean inTarget)
      if in target true means in target, false means not in target, null means unsure (not selecting or inserting)
      Parameters:
      in - target
    • getInTarget

      public Boolean 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

      public String 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

      public void setInTargetInsertOrExistsDb(String inTargetInsertOrExistsDb1)
      T if inserted on the in_target_start date, or F if it existed then and not sure when inserted
      Parameters:
      inTargetInsertOrExistsDb1 -
    • getMetadataUpdated

      public Timestamp getMetadataUpdated()
      when metadata was last updated
      Returns:
    • setMetadataUpdated

      public void setMetadataUpdated(Timestamp metadataUpdated1)
      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

      public String getGrouperSyncId()
      uuid of the job in grouper_sync
      Returns:
      uuid of the job in grouper_sync
    • setGrouperSyncId

      public void setGrouperSyncId(String grouperSyncId1)
      uuid of the job in grouper_sync
      Parameters:
      grouperSyncId1 -
    • getLastUpdated

      public Timestamp getLastUpdated()
      when this record was last updated
      Returns:
      the lastUpdated
    • setLastUpdated

      public void setLastUpdated(Timestamp lastUpdated1)
      when this record was last updated
      Parameters:
      lastUpdated1 -
    • getGroupId

      public String getGroupId()
      for groups this is the group uuid, though not a real foreign key
      Returns:
      group id
    • setGroupId

      public void setGroupId(String groupId1)
      for groups this is the group uuid, though not a real foreign key
      Parameters:
      groupId1 -
    • getGroupName

      public String getGroupName()
      for groups this is the group system name
      Returns:
      group name
    • setGroupName

      public void setGroupName(String groupName1)
      for groups this is the group system name
      Parameters:
      groupName1 -
    • getProvisionableDb

      public String getProvisionableDb()
      T if provisionable and F is not
      Returns:
      if provisionable
    • setProvisionableDb

      public void setProvisionableDb(String provisionableDb1)
      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

      public Timestamp getProvisionableStart()
      millis since 1970 that this group started to be provisionable
      Returns:
      millis
    • setProvisionableStart

      public void setProvisionableStart(Timestamp provisionableStartMillis1)
      millis since 1970 that this group started to be provisionable
      Parameters:
      provisionableStartMillis1 -
    • getInTargetStart

      public Timestamp getInTargetStart()
      when this group was provisioned to target
      Returns:
      when
    • setInTargetStart

      public void setInTargetStart(Timestamp inTargetStart1)
      when this group was provisioned to target
      Parameters:
      inTargetStart1 -
    • getInTargetEnd

      public Timestamp getInTargetEnd()
      when this group was provisioned to target
      Returns:
      when
    • setInTargetEnd

      public void setInTargetEnd(Timestamp inTargetEnd1)
      when this group was provisioned to target
      Parameters:
      inTargetEnd1 -
    • getProvisionableEnd

      public Timestamp getProvisionableEnd()
      millis since 1970 that this group ended being provisionable
      Returns:
      millis
    • setProvisionableEnd

      public void setProvisionableEnd(Timestamp provisionableEndMillis1)
      millis since 1970 that this group ended being provisionable
      Parameters:
      provisionableEndMillis1 -
    • getGroupIdIndex

      public Long getGroupIdIndex()
      if group then this is the id index
      Returns:
      id index
    • setGroupIdIndex

      public void setGroupIdIndex(Long groupIdIndex1)
      if group then this is the id index
      Parameters:
      groupIdIndex1 -
    • getGroupAttributeValueCache0

      public String getGroupAttributeValueCache0()
      metadata on groups
      Returns:
      group from id 2
    • setGroupAttributeValueCache0

      public void setGroupAttributeValueCache0(String groupAttributeValueCache0_1)
      metadata on groups
      Parameters:
      groupAttributeValueCache0_1 -
    • getGroupAttributeValueCache1

      public String getGroupAttributeValueCache1()
      other metadata on groups
      Returns:
      id3
    • setGroupAttributeValueCache1

      public void setGroupAttributeValueCache1(String groupAttributeValueCache1_1)
      other metadata on groups
      Parameters:
      groupAttributeValueCache1_1 -
    • getGroupAttributeValueCache2

      public String getGroupAttributeValueCache2()
      other metadata on groups
      Returns:
      metadata
    • setGroupAttributeValueCache2

      public void setGroupAttributeValueCache2(String groupAttributeValueCache2_1)
      other metadata on groups
      Parameters:
      groupAttributeValueCache2_1 -
    • getGroupAttributeValueCache3

      public String getGroupAttributeValueCache3()
      other metadata on groups
      Returns:
      group id
    • setGroupAttributeValueCache3

      public void setGroupAttributeValueCache3(String groupAttributeValueCache3_1)
      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 interface GcSqlAssignPrimaryKey
    • assignField

      public void assignField(String syncField, Object result)
      Parameters:
      translateGrouperToGroupSyncField -
      result -
    • retrieveField

      public String retrieveField(String syncField)
      Parameters:
      translateGrouperToGroupSyncField -
      result -