Class PrintChangeLogConsumer
java.lang.Object
edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBase
edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBaseImpl
edu.internet2.middleware.grouper.changeLog.consumer.PrintChangeLogConsumer
Example change log consumer based on ChangeLogConsumerBaseImpl. ChangeLogConsumerBaseImpl handles
the mapping of change log event to methods, the processing loop, and exception handling.
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBaseImpl
CONFIG_FOLDER_NAME, CONSUMER_CLASS_NAME, SYNC_ATTRIBUTE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addGroup
(Group group, ChangeLogEntry changeLogEntry) These methods are expected to be overidden in a subclass that is specific to a provisioning target.protected void
addGroupAndMemberships
(Group group, ChangeLogEntry changeLogEntry) protected void
addMembership
(Subject subject, Group group, ChangeLogEntry changeLogEntry) protected boolean
isFullSyncRunning
(String consumerName) expected to be overiddenprotected void
removeDeletedGroup
(PITGroup pitGroup, ChangeLogEntry changeLogEntry) protected void
removeGroup
(Group group, ChangeLogEntry changeLogEntry) protected void
removeMembership
(Subject subject, Group group, ChangeLogEntry changeLogEntry) protected void
removeMovedGroup
(String oldGroupName, ChangeLogEntry changeLogEntry) removeMovedGroup may be called for groups that have not previously been marked, need to check the target to be sure.protected void
renameGroup
(String oldGroupName, String newGroupName, ChangeLogEntry changeLogEntry) renameGroup may be called for groups that have not previously been marked, need to check the target to be sure.protected void
updateGroup
(Group group, ChangeLogEntry changeLogEntry) Methods inherited from class edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBaseImpl
getConsumerName, processChangeLogEntries
Methods inherited from class edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBase
callAtLeastOnce, getBatchSize, setConsumerName
-
Field Details
-
eventsProcessed
list used for testing
-
-
Constructor Details
-
PrintChangeLogConsumer
public PrintChangeLogConsumer()
-
-
Method Details
-
renameGroup
Description copied from class:ChangeLogConsumerBaseImpl
renameGroup may be called for groups that have not previously been marked, need to check the target to be sure. If the oldGroupName doesn't exist at the target, then add the newGroupName and all its memberships. -
removeMovedGroup
Description copied from class:ChangeLogConsumerBaseImpl
removeMovedGroup may be called for groups that have not previously been marked, need to check the target to be sure. If the oldGroupName doesn't exist at the target, this call should be a no-op. -
addGroup
Description copied from class:ChangeLogConsumerBaseImpl
These methods are expected to be overidden in a subclass that is specific to a provisioning target. (e.g. Google Apps) -
addGroupAndMemberships
-
updateGroup
-
removeGroup
-
removeDeletedGroup
-
addMembership
-
removeMembership
-
isFullSyncRunning
Description copied from class:ChangeLogConsumerBaseImpl
expected to be overidden- Overrides:
isFullSyncRunning
in classChangeLogConsumerBaseImpl
- Returns:
- See Also:
-