au.edu.archer.services.icat
Interface ICATLocationListener

All Known Implementing Classes:
ICATHibernateImpl

public interface ICATLocationListener

Provides a means of specifying actions to perform as various changes occur to location fields in the ICAT.

The interface is designed for keeping registrations of paths up to date. This means that only changes that effect the path of a location will make their way to this listener.

At present the relevant fields are the in DataSet and the DataFile objects. The methods of this interface will not be called for changes to locations in DataFile objects that do not effect the path to the file (i.e. that only effect the file name)


Method Summary
 void locationAdded(java.lang.String location)
          Method to be called when a location is added to the ICAT.
 void locationChanged(java.lang.String oldLocation, java.lang.String newLocation)
          Method to be called when a location is changed in the the ICAT.
 void locationRemoved(java.lang.String location)
          Method to be called when a location is removed from the ICAT.
 

Method Detail

locationAdded

void locationAdded(java.lang.String location)
Method to be called when a location is added to the ICAT.

Parameters:
location - the location that was added.

locationRemoved

void locationRemoved(java.lang.String location)
Method to be called when a location is removed from the ICAT.

Parameters:
location - the location that was removed.

locationChanged

void locationChanged(java.lang.String oldLocation,
                     java.lang.String newLocation)
Method to be called when a location is changed in the the ICAT.

Parameters:
oldLocation - the old location.
newLocation - the new location.


Copyright © 2008 ARCHER - James Cook University. All Rights Reserved.