magoffin.matt.ma2.support
Class BasicMediaItemSearchCriteria

java.lang.Object
  extended by magoffin.matt.ma2.support.BasicMediaItemSearchCriteria
All Implemented Interfaces:
SearchBiz.MediaItemSearchCriteria
Direct Known Subclasses:
MediaSearchCommand

public class BasicMediaItemSearchCriteria
extends java.lang.Object
implements SearchBiz.MediaItemSearchCriteria

Basic implementation of SearchBiz.MediaItemSearchCriteria.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Constructor Summary
BasicMediaItemSearchCriteria()
          Default constructor.
BasicMediaItemSearchCriteria(java.lang.String quickSearch)
          Construct with a quick search.
 
Method Summary
 java.util.Calendar getEndDate()
          Get a maximum date.
 MediaItem getMediaItemTemplate()
          Get a search object template.
 java.lang.String getQuickSearch()
          Get a quick search query.
 java.util.Calendar getStartDate()
          Get a minimum date.
 java.lang.String getUserAnonymousKey()
          Limit the results to those owned by the given user's anonymous key.
 java.lang.Long getUserId()
          Limit the results to those owned by the given user ID.
 boolean isCountOnly()
          If true then return only the count of matches, but not the matches themselves.
 boolean isSharedOnly()
          If true then limit results to only those that are part of shared albums.
 void setCountOnly(boolean countOnly)
           
 void setEndDate(java.util.Calendar endDate)
           
 void setMediaItemTemplate(MediaItem mediaItemTemplate)
           
 void setQuickSearch(java.lang.String quickSearch)
           
 void setSharedOnly(boolean sharedOnly)
           
 void setStartDate(java.util.Calendar startDate)
           
 void setUserAnonymousKey(java.lang.String userAnonymousKey)
           
 void setUserId(java.lang.Long userId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicMediaItemSearchCriteria

public BasicMediaItemSearchCriteria()
Default constructor.


BasicMediaItemSearchCriteria

public BasicMediaItemSearchCriteria(java.lang.String quickSearch)
Construct with a quick search.

Parameters:
quickSearch -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEndDate

public java.util.Calendar getEndDate()
Description copied from interface: SearchBiz.MediaItemSearchCriteria
Get a maximum date.

Specified by:
getEndDate in interface SearchBiz.MediaItemSearchCriteria
Returns:
date

getMediaItemTemplate

public MediaItem getMediaItemTemplate()
Description copied from interface: SearchBiz.MediaItemSearchCriteria
Get a search object template.

Specified by:
getMediaItemTemplate in interface SearchBiz.MediaItemSearchCriteria
Returns:
the template

getQuickSearch

public java.lang.String getQuickSearch()
Description copied from interface: SearchBiz.MediaItemSearchCriteria
Get a quick search query.

Specified by:
getQuickSearch in interface SearchBiz.MediaItemSearchCriteria
Returns:
the quick search

getStartDate

public java.util.Calendar getStartDate()
Description copied from interface: SearchBiz.MediaItemSearchCriteria
Get a minimum date.

Specified by:
getStartDate in interface SearchBiz.MediaItemSearchCriteria
Returns:
date

isCountOnly

public boolean isCountOnly()
Description copied from interface: SearchBiz.MediaItemSearchCriteria
If true then return only the count of matches, but not the matches themselves.

Specified by:
isCountOnly in interface SearchBiz.MediaItemSearchCriteria
Returns:
boolean

getUserId

public java.lang.Long getUserId()
Description copied from interface: SearchBiz.MediaItemSearchCriteria
Limit the results to those owned by the given user ID.

Specified by:
getUserId in interface SearchBiz.MediaItemSearchCriteria
Returns:
the owner user ID

isSharedOnly

public boolean isSharedOnly()
Description copied from interface: SearchBiz.MediaItemSearchCriteria
If true then limit results to only those that are part of shared albums.

Specified by:
isSharedOnly in interface SearchBiz.MediaItemSearchCriteria
Returns:
boolean

setEndDate

public void setEndDate(java.util.Calendar endDate)
Parameters:
endDate - the endDate to set

setMediaItemTemplate

public void setMediaItemTemplate(MediaItem mediaItemTemplate)
Parameters:
mediaItemTemplate - the mediaItemTemplate to set

setQuickSearch

public void setQuickSearch(java.lang.String quickSearch)
Parameters:
quickSearch - the quickSearch to set

setStartDate

public void setStartDate(java.util.Calendar startDate)
Parameters:
startDate - the startDate to set

setCountOnly

public void setCountOnly(boolean countOnly)
Parameters:
countOnly - the countOnly to set

setSharedOnly

public void setSharedOnly(boolean sharedOnly)
Parameters:
sharedOnly - the sharedOnly to set

setUserId

public void setUserId(java.lang.Long userId)
Parameters:
userId - the userId to set

getUserAnonymousKey

public java.lang.String getUserAnonymousKey()
Description copied from interface: SearchBiz.MediaItemSearchCriteria
Limit the results to those owned by the given user's anonymous key.

Specified by:
getUserAnonymousKey in interface SearchBiz.MediaItemSearchCriteria
Returns:
the userAnonymousKey

setUserAnonymousKey

public void setUserAnonymousKey(java.lang.String userAnonymousKey)
Parameters:
userAnonymousKey - the userAnonymousKey to set