Class ExtendedFileChangesListenerAdapter

java.lang.Object
com.polarion.platform.service.repository.FileChangesListenerAdapter
com.polarion.platform.service.repository.ExtendedFileChangesListenerAdapter
All Implemented Interfaces:
IExtendedFileChangesListener, IFileChangesListener

public abstract class ExtendedFileChangesListenerAdapter extends FileChangesListenerAdapter implements IExtendedFileChangesListener
An abstract adapter class for receiving change revision events (and other events of file(folder) changing. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create an extended file change listener and override the methods for the events of interest. (If you implement the IExtendedFileChangesListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you only have to define methods for events you care about.) This adapter by default ignore change events, to change that behaviour overwrite ignoresResourceChanges method to return false.

Create a listener object using the extended class and then register it with a repository service using the service's addFileChangesListener method. When a new revision appears the revisionAdded method is invoked with revision Id. In case of an event involving resources the methods in FileChangesListenerAdapter are invoked passing the locations (ILocation) where the changes happened. All those methods provide empty implementation.

Author:
POLARION SOFTWARE