org.shredzone.repowatch.repository
Class SearchDTO

java.lang.Object
  extended by org.shredzone.repowatch.repository.SearchDTO
All Implemented Interfaces:
Serializable

public class SearchDTO
extends Object
implements Serializable

A Data Transport Object for search parameters.

Version:
$Revision: 317 $
See Also:
Serialized Form

Constructor Summary
SearchDTO()
           
 
Method Summary
 Domain getDomainOnly()
          Limits the search to the given Domain.
 int getPage()
          Gets the page currently shown in the search result.
 String getTerm()
          Gets the search term.
 boolean isDescriptions()
          Checks if the summary and description are to be searched as well.
 void setDescriptions(boolean desc)
           
 void setDomainOnly(Domain dom)
           
 void setPage(int page)
           
 void setTerm(String term)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchDTO

public SearchDTO()
Method Detail

getPage

public int getPage()
Gets the page currently shown in the search result.

Returns:
Page number

setPage

public void setPage(int page)

getTerm

public String getTerm()
Gets the search term.

Returns:
Search term

setTerm

public void setTerm(String term)

isDescriptions

public boolean isDescriptions()
Checks if the summary and description are to be searched as well.

Returns:
true: also search in summary and description

setDescriptions

public void setDescriptions(boolean desc)

getDomainOnly

public Domain getDomainOnly()
Limits the search to the given Domain. If null, all domains will be searched.

Returns:
Domain to limit the search to

setDomainOnly

public void setDomainOnly(Domain dom)


Copyright © 2007-2011 shredzone.org. All Rights Reserved.