Class GcGrouperSyncMembership
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncMembership
- All Implemented Interfaces:
GcDbVersionable
,GcSqlAssignPrimaryKey
public class GcGrouperSyncMembership
extends Object
implements GcSqlAssignPrimaryKey, GcDbVersionable
if doing user level syncs, this is the metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 timestamplink back to sync groupforeign key back to group tableuuid of the job in grouper_synclink back to sync memberforeign key to the members sync tablegetId()
uuid of this record in this tableif this group exists in the target/destinationif this group exists in the target/destinationwhen 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 record was last updatedother metadata on membershipother metadata on membershipwhen metadata was last updatedboolean
if in targetboolean
T if inserted on the in_target_start date, or F if it existed then and not sure when insertedstatic void
static void
reset()
delete all data if table is herevoid
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
setGrouperSync
(GcGrouperSync gcGrouperSync) void
setGrouperSyncGroup
(GcGrouperSyncGroup gcGrouperSyncGroup) link back to sync groupvoid
setGrouperSyncGroupId
(String grouperSyncGroupId1) foreign key back to group tablevoid
setGrouperSyncId
(String grouperSyncId1) uuid of the job in grouper_syncvoid
setGrouperSyncMember
(GcGrouperSyncMember gcGrouperSyncMember1) link back to sync membervoid
setGrouperSyncMemberId
(String memberId1) foreign key to the members sync tablevoid
uuid of this record in this tablevoid
setInTarget
(boolean inTarget) if in targetvoid
setInTargetDb
(String inTargetDb1) if this group exists in the target/destinationvoid
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
setLastUpdated
(Timestamp lastUpdated1) when this record was last updatedvoid
setMembershipId
(String membershipId1_1) other metadata on membershipvoid
setMembershipId2
(String membershipId2_1) other metadata on membershipvoid
setMetadataUpdated
(Timestamp metadataUpdated1) when metadata was last updatedvoid
toString()
-
Constructor Details
-
GcGrouperSyncMembership
public GcGrouperSyncMembership()
-
-
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
-
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
-
-
reset
public static void reset()delete all data if table is here -
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
-
-
getMembershipId
other metadata on membership- Returns:
- metadata
-
setMembershipId
other metadata on membership- Parameters:
membershipId1_1
-
-
getMetadataUpdated
when metadata was last updated- Returns:
-
setMetadataUpdated
when metadata was last updated- Parameters:
metadataUpdated1
-
-
getMembershipId2
other metadata on membership- Returns:
- metadata
-
setMembershipId2
other metadata on membership- Parameters:
membershipId2_1
-
-
getGrouperSyncGroup
link back to sync group- Returns:
- group
-
setGrouperSyncGroup
link back to sync group- Parameters:
gcGrouperSyncGroup
-
-
getGrouperSyncMember
link back to sync member- Returns:
- member
-
setGrouperSyncMember
link back to sync member- Parameters:
gcGrouperSyncMember1
-
-
getGrouperSyncGroupId
foreign key back to group table- Returns:
- group id
-
setGrouperSyncGroupId
foreign key back to group table- Parameters:
grouperSyncGroupId1
-
-
getGrouperSyncMemberId
foreign key to the members sync table- Returns:
- member id
-
setGrouperSyncMemberId
foreign key to the members sync table- Parameters:
memberId1
-
-
storePrepare
public void storePrepare() -
getConnectionName
connection name or null for default- Returns:
- connection name
-
setConnectionName
connection name or null for default- Parameters:
connectionName1
-
-
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
-
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
-
-
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
-
-
getInTargetDb
if this group exists in the target/destination- Returns:
- if in target
-
setInTargetDb
if this group exists in the target/destination- Parameters:
inTargetDb1
-
-
getInTarget
if this group exists in the target/destination- Returns:
- if is target
-
getLastUpdated
when this record was last updated- Returns:
- the lastUpdated
-
setLastUpdated
when this record was last updated- Parameters:
lastUpdated1
-
-
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
-
getInTargetEnd
when this group was provisioned to target- Returns:
- when
-
getInTargetStart
when this group was provisioned to target- Returns:
- when
-
setInTargetEnd
when this group was provisioned to target- Parameters:
inTargetEnd1
-
-
setInTargetStart
when this group was provisioned to target- Parameters:
inTargetStart1
-
-
isInTarget
public boolean isInTarget()if in target- Returns:
- if in target
-
setInTarget
public void setInTarget(boolean inTarget) if in target- Parameters:
in
- target
-
getGrouperSync
- Returns:
- gc grouper sync
-
getGrouperSyncId
uuid of the job in grouper_sync- Returns:
- uuid of the job in grouper_sync
-
setGrouperSync
- Parameters:
gcGrouperSync
-
-
setGrouperSyncId
uuid of the job in grouper_sync- Parameters:
grouperSyncId1
-
-
assignSyncReferences
public void assignSyncReferences()
-