RichFaces Photoalbum 4.3.1.CR1

org.richfaces.photoalbum.ejbsearch
Class SearchBothAlbumsStrategy

java.lang.Object
  extended by org.richfaces.photoalbum.ejbsearch.SearchBothAlbumsStrategy
All Implemented Interfaces:
ISearchStrategy

public class SearchBothAlbumsStrategy
extends Object
implements ISearchStrategy

Strategy to retrieve albums, that are shared or belongs to user, that perform search

Author:
Andrey Markhel

Constructor Summary
SearchBothAlbumsStrategy()
           
 
Method Summary
 javax.persistence.Query getQuery(javax.persistence.EntityManager em, Map<String,Object> params, String searchQuery)
          Create query to retrieve albums, that are shared or belongs to user, that perform search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchBothAlbumsStrategy

public SearchBothAlbumsStrategy()
Method Detail

getQuery

public javax.persistence.Query getQuery(javax.persistence.EntityManager em,
                                        Map<String,Object> params,
                                        String searchQuery)
Create query to retrieve albums, that are shared or belongs to user, that perform search

Specified by:
getQuery in interface ISearchStrategy
Parameters:
em - - entityManager
params - - map of additional params for this query
searchQuery - - string to search
Returns:
List of albums that are shared or belongs to user, that perform search

RichFaces Photoalbum 4.3.1.CR1

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