Class GoogleAppsChangeLogConsumer
java.lang.Object
edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBase
edu.internet2.middleware.changelogconsumer.googleapps.GoogleAppsChangeLogConsumer
A
ChangeLogConsumer which provisions via Google Apps API.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessAttributeAssignAdd(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Add an attribute.protected voidprocessAttributeAssignDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete an attribute.longprocessChangeLogEntries(List<ChangeLogEntry> changeLogEntryList, ChangeLogProcessorMetadata changeLogProcessorMetadata) protected voidprocessChangeLogEntry(ChangeLogEntry changeLogEntry) Call the method of theGoogleAppsChangeLogConsumer.EventTypeenum which matches theChangeLogEntrycategory and action (the change log type).protected voidprocessGroupAdd(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Add a group.protected voidprocessGroupDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a group.protected voidprocessGroupUpdate(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Update a group.protected voidprocessMembershipAdd(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Add a membership.protected voidprocessMembershipDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a membership entry.protected voidprocessPrivilegeAdd(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) protected voidprocessPrivilegeDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a privilege entry.protected voidprocessPrivilegeUpdate(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Update a privilege entry.protected voidprocessStemDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a stem, but we generally don't care since the stem has to be empty before it can be deleted.Methods inherited from class edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBase
callAtLeastOnce, getBatchSize, getConsumerName, setConsumerName
-
Constructor Details
-
GoogleAppsChangeLogConsumer
public GoogleAppsChangeLogConsumer()
-
-
Method Details
-
processChangeLogEntries
public long processChangeLogEntries(List<ChangeLogEntry> changeLogEntryList, ChangeLogProcessorMetadata changeLogProcessorMetadata) - Specified by:
processChangeLogEntriesin classChangeLogConsumerBase
-
processChangeLogEntry
Call the method of theGoogleAppsChangeLogConsumer.EventTypeenum which matches theChangeLogEntrycategory and action (the change log type).- Parameters:
changeLogEntry- the change log entry- Throws:
Exception- if an error occurs processing the change log entry
-
processAttributeAssignAdd
protected void processAttributeAssignAdd(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Add an attribute.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processAttributeAssignDelete
protected void processAttributeAssignDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete an attribute.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processGroupAdd
Add a group.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processGroupDelete
protected void processGroupDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a group.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processGroupUpdate
protected void processGroupUpdate(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Update a group.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processMembershipAdd
protected void processMembershipAdd(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Add a membership.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processMembershipDelete
protected void processMembershipDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a membership entry.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processPrivilegeAdd
protected void processPrivilegeAdd(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) -
processPrivilegeUpdate
protected void processPrivilegeUpdate(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Update a privilege entry.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processPrivilegeDelete
protected void processPrivilegeDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a privilege entry.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-
processStemDelete
protected void processStemDelete(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a stem, but we generally don't care since the stem has to be empty before it can be deleted.- Parameters:
consumer- the change log consumerchangeLogEntry- the change log entry
-