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 void
processAttributeAssignAdd
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Add an attribute.protected void
processAttributeAssignDelete
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete an attribute.long
processChangeLogEntries
(List<ChangeLogEntry> changeLogEntryList, ChangeLogProcessorMetadata changeLogProcessorMetadata) protected void
processChangeLogEntry
(ChangeLogEntry changeLogEntry) Call the method of theGoogleAppsChangeLogConsumer.EventType
enum which matches theChangeLogEntry
category and action (the change log type).protected void
processGroupAdd
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Add a group.protected void
processGroupDelete
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a group.protected void
processGroupUpdate
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Update a group.protected void
processMembershipAdd
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Add a membership.protected void
processMembershipDelete
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a membership entry.protected void
processPrivilegeAdd
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) protected void
processPrivilegeDelete
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Delete a privilege entry.protected void
processPrivilegeUpdate
(GoogleAppsChangeLogConsumer consumer, ChangeLogEntry changeLogEntry) Update a privilege entry.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.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:
processChangeLogEntries
in classChangeLogConsumerBase
-
processChangeLogEntry
Call the method of theGoogleAppsChangeLogConsumer.EventType
enum which matches theChangeLogEntry
category 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
-