magoffin.matt.ma2.biz.impl
Class AbstractSearchBiz

java.lang.Object
  extended by magoffin.matt.ma2.biz.impl.AbstractSearchBiz
All Implemented Interfaces:
SearchBiz
Direct Known Subclasses:
LuceneBiz

public abstract class AbstractSearchBiz
extends java.lang.Object
implements SearchBiz

Base implementation of SearchBiz that builds on DAO searching.

Version:
$Revision: 176 $ $Date: 2008-12-28 14:33:18 +1300 (Sun, 28 Dec 2008) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Nested Class Summary
 
Nested classes/interfaces inherited from interface magoffin.matt.ma2.biz.SearchBiz
SearchBiz.AlbumSearchCriteria, SearchBiz.MediaItemSearchCriteria
 
Constructor Summary
AbstractSearchBiz()
           
 
Method Summary
 SearchResults findAlbums(SearchBiz.AlbumSearchCriteria criteria, PaginationCriteria pagination, BizContext context)
          Search for albums.
 SearchResults findAlbumsForBrowsing(BrowseAlbumsCommand command, PaginationCriteria pagination, BizContext context)
          Search for shared albums for browsing.
 AlbumDao getAlbumDao()
           
 DomainObjectFactory getDomainObjectFactory()
           
 SystemBiz getSystemBiz()
           
 UserBiz getUserBiz()
           
 void setAlbumDao(AlbumDao albumDao)
           
 void setDomainObjectFactory(DomainObjectFactory domainObjectFactory)
           
 void setSystemBiz(SystemBiz systemBiz)
           
 void setUserBiz(UserBiz userBiz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface magoffin.matt.ma2.biz.SearchBiz
findMediaItems, findUsersForIndex
 

Constructor Detail

AbstractSearchBiz

public AbstractSearchBiz()
Method Detail

findAlbumsForBrowsing

public SearchResults findAlbumsForBrowsing(BrowseAlbumsCommand command,
                                           PaginationCriteria pagination,
                                           BizContext context)
Description copied from interface: SearchBiz
Search for shared albums for browsing.

Specified by:
findAlbumsForBrowsing in interface SearchBiz
Parameters:
command - the browse criteria
pagination - the pagination criteria
context - the current context
Returns:
search results

findAlbums

public SearchResults findAlbums(SearchBiz.AlbumSearchCriteria criteria,
                                PaginationCriteria pagination,
                                BizContext context)
Description copied from interface: SearchBiz
Search for albums.

Specified by:
findAlbums in interface SearchBiz
Parameters:
criteria - the criteria
pagination - the pagination criteria
context - the current context
Returns:
search results

getDomainObjectFactory

public DomainObjectFactory getDomainObjectFactory()
Returns:
the domainObjectFactory

setDomainObjectFactory

public void setDomainObjectFactory(DomainObjectFactory domainObjectFactory)
Parameters:
domainObjectFactory - the domainObjectFactory to set

getUserBiz

public UserBiz getUserBiz()
Returns:
the userBiz

setUserBiz

public void setUserBiz(UserBiz userBiz)
Parameters:
userBiz - the userBiz to set

getAlbumDao

public AlbumDao getAlbumDao()
Returns:
the albumDao

setAlbumDao

public void setAlbumDao(AlbumDao albumDao)
Parameters:
albumDao - the albumDao to set

getSystemBiz

public SystemBiz getSystemBiz()
Returns:
the systemBiz

setSystemBiz

public void setSystemBiz(SystemBiz systemBiz)
Parameters:
systemBiz - the systemBiz to set