RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.ui.search
Class ImageSearchHelper

java.lang.Object
  extended by org.richfaces.photoalbum.ui.search.ImageSearchHelper
All Implemented Interfaces:
Serializable

@Named
@ApplicationScoped
public class ImageSearchHelper
extends Object
implements Serializable

Class, that encapsulate functionality related to search process.

Author:
Andrey Markavtsov
See Also:
Serialized Form

Constructor Summary
ImageSearchHelper()
          Default constructor.
 
Method Summary
 String getCriteriaString()
          Method, used to construct criteria string, to represent this string in UI.
 List<String> getKeywords()
           
 List<ISearchOption> getOptions()
           
 String getSearchQuery()
           
 String getSelectedKeyword()
           
 ISearchOption getSelectedOption()
           
 boolean isResultExist()
           
 boolean isSeachInMyAlbums()
           
 boolean isSearchInShared()
           
 void processSelection()
          Method, invoked when user select or unselect search option.
 void search()
          Method, that perform search, when user clicks by 'Find' button.
 void searchKeyword(String keyword)
          Method, that perform search by particular phrase
 void setKeywords(List<String> keywords)
           
 void setOptions(List<ISearchOption> options)
           
 void setSeachInMyAlbums(boolean seachInMyAlbums)
           
 void setSearchInShared(boolean searchInShared)
           
 void setSearchQuery(String searchQuery)
           
 void setSelectedKeyword(String selectedKeyword)
           
 void setSelectedOption(ISearchOption selectedOption)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSearchHelper

public ImageSearchHelper()
Default constructor. During instantiation populate in field options all possible search options

Method Detail

getCriteriaString

public String getCriteriaString()
Method, used to construct criteria string, to represent this string in UI.


search

public void search()
Method, that perform search, when user clicks by 'Find' button.


searchKeyword

public void searchKeyword(String keyword)
Method, that perform search by particular phrase

Parameters:
keyword - - keyword to search

processSelection

public void processSelection()
Method, invoked when user select or unselect search option.


getSelectedOption

public ISearchOption getSelectedOption()

setSelectedOption

public void setSelectedOption(ISearchOption selectedOption)

getOptions

public List<ISearchOption> getOptions()

setOptions

public void setOptions(List<ISearchOption> options)

getSearchQuery

public String getSearchQuery()

setSearchQuery

public void setSearchQuery(String searchQuery)

isSeachInMyAlbums

public boolean isSeachInMyAlbums()

setSeachInMyAlbums

public void setSeachInMyAlbums(boolean seachInMyAlbums)

isSearchInShared

public boolean isSearchInShared()

setSearchInShared

public void setSearchInShared(boolean searchInShared)

getKeywords

public List<String> getKeywords()

setKeywords

public void setKeywords(List<String> keywords)

getSelectedKeyword

public String getSelectedKeyword()

setSelectedKeyword

public void setSelectedKeyword(String selectedKeyword)

isResultExist

public boolean isResultExist()

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.