net.sourceforge.pebble.dao
Interface RefererFilterDAO

All Known Implementing Classes:
FileRefererFilterDAO

public interface RefererFilterDAO


Method Summary
 void addRefererFilter(RefererFilter filter, Blog rootBlog)
          Adds the specified referer filter.
 void deleteRefererFilter(RefererFilter filter, Blog rootBlog)
          Removes the specified referer filter.
 java.util.Collection getRefererFilters(Blog rootBlog)
          Loads the referer filters.
 

Method Detail

getRefererFilters

java.util.Collection getRefererFilters(Blog rootBlog)
                                       throws PersistenceException
Loads the referer filters.

Parameters:
rootBlog - the owning Blog instance
Returns:
a Collection of RefererFilter instances
Throws:
PersistenceException - if filters cannot be loaded

addRefererFilter

void addRefererFilter(RefererFilter filter,
                      Blog rootBlog)
                      throws PersistenceException
Adds the specified referer filter.

Parameters:
filter - the RefererFilter instance to be added
rootBlog - the owning Blog instance
Throws:
PersistenceException - if something goes wrong storing the filters

deleteRefererFilter

void deleteRefererFilter(RefererFilter filter,
                         Blog rootBlog)
                         throws PersistenceException
Removes the specified referer filter.

Parameters:
filter - the RefererFilter instance to be removed
rootBlog - the owning Blog instance
Throws:
PersistenceException - if something goes wrong removing the filter


Copyright © 2003-2006, Simon Brown. All Rights Reserved.