@ApplicationScoped public class SearchQueryFactory extends Object
| Constructor and Description |
|---|
SearchQueryFactory() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public javax.persistence.Query getQuery(SearchEntityEnum entity, User user, boolean searchInShared, boolean searchInMy, String queryString) throws PhotoAlbumException
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 searchPhotoAlbumException - - in case of wrong search parametersCopyright © 2016. All rights reserved.