RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.search
Class SearchQueryFactory

java.lang.Object
  extended by org.richfaces.photoalbum.search.SearchQueryFactory

@ApplicationScoped
public class SearchQueryFactory
extends Object

This class is factory to retrieve query object, dependent of type of searched entity and other parameters

Author:
Andrey Markhel

Constructor Summary
SearchQueryFactory()
           
 
Method Summary
 javax.persistence.Query getQuery(SearchEntityEnum entity, User user, boolean searchInShared, boolean searchInMy, String queryString)
          This method is return query object,that dependent of type of searched entity and other parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchQueryFactory

public SearchQueryFactory()
Method Detail

getQuery

public javax.persistence.Query getQuery(SearchEntityEnum entity,
                                        User user,
                                        boolean searchInShared,
                                        boolean searchInMy,
                                        String queryString)
                                 throws PhotoAlbumException
This method is return query object,that dependent of type of searched entity and other parameters

Parameters:
entity - - one of instances from SearchEntityEnum enumeration, indicate waht type of entities user want to search
user - - user, that perform search
searchInMy - - boolean parameter that indicate, is user want search in her space
searchInShared - - boolean parameter that indicate, is user want search in all shared entities
queryString - - string to search
Returns:
query object, that dependent of type of searched entity and other parameters
Throws:
PhotoAlbumException - - in case of wrong search parameters

RichFaces Photoalbum 4.3.5.Final

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