org.richfaces.photoalbum.search
Class SearchQueryFactory
java.lang.Object
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
|
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 |
SearchQueryFactory
public SearchQueryFactory()
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 searchuser - - user, that perform searchsearchInMy - - boolean parameter that indicate, is user want search in her spacesearchInShared - - boolean parameter that indicate, is user want search in all shared entitiesqueryString - - string to search
- Returns:
- query object, that dependent of type of searched entity and other parameters
- Throws:
PhotoAlbumException - - in case of wrong search parameters
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.