cbr.service
Interface StoreDelegate

All Known Implementing Classes:
LocalStoreDelegate, ResourceStoreDelegate

public interface StoreDelegate

This delegate handles thumbnails on behalf of the PicsStore. It cuts thumbnails out of the picture entries when entries are inserted into an index, and pastes them back in when entries are retrieved. Additionally, a delegate can be instructed to delete thumbnails e. g. when entries are deleted from an index.

Version:
"$Id: StoreDelegate.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth

Method Summary
 void cut(PictureEntry entry)
          Cuts the thumbnail from the given picture entry if necessary.
 void delete(PictureEntry entry)
          Deletes the thumbnail belonging to the given picture entry.
 void paste(PictureEntry entry)
          Pastes the thumbnail belonging to the given picture entry back into the entry.
 

Method Detail

cut

public void cut(PictureEntry entry)
         throws IOException
Cuts the thumbnail from the given picture entry if necessary.

Parameters:
entry - The entry from which the thumbnail is removed and stored away.
Throws:
IOException - if an I/O error occurs.

paste

public void paste(PictureEntry entry)
           throws IOException
Pastes the thumbnail belonging to the given picture entry back into the entry.

Parameters:
entry - The picture entry whose thumbnail shall be restored.
Throws:
IOException - if an I/O error occurs.

delete

public void delete(PictureEntry entry)
            throws IOException
Deletes the thumbnail belonging to the given picture entry.

Parameters:
entry - The picture entry whose thumbnail shall be deleted.
Throws:
IOException - if an I/O error occurs.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.