nl.surfnet.coin.portal.service.impl
Class GadgetDefinitionServiceHibernateImpl

java.lang.Object
  extended by nl.surfnet.coin.shared.service.GenericServiceHibernateImpl<GadgetDefinition>
      extended by nl.surfnet.coin.portal.service.impl.GadgetDefinitionServiceHibernateImpl
All Implemented Interfaces:
GadgetDefinitionService, nl.surfnet.coin.shared.service.GenericService<GadgetDefinition>

@Component(value="gadgetDefinitionService")
public class GadgetDefinitionServiceHibernateImpl
extends nl.surfnet.coin.shared.service.GenericServiceHibernateImpl<GadgetDefinition>
implements GadgetDefinitionService


Constructor Summary
GadgetDefinitionServiceHibernateImpl()
           
 
Method Summary
 List<GadgetDefinition> findAllFixedTabGadgets()
          Find all GadgetDefinitions that need to be added to the Fixed Tab
 List<GadgetDefinition> findAllPublished()
          Find all GadgetDefinitions with status = published.
 List<GadgetDefinition> findAllPublishedExcludeCustom()
          Find all GadgetDefinitions with status = published that are not added by users
 List<GadgetDefinition> findAllPublishedExcludeCustomOrderByPopularity(nl.surfnet.coin.shared.service.SortOrder sortOrder)
          Find all GadgetDefinitions with status = published that are not added by users ordered by number of installs
 GadgetDefinition searchByUrl(String url)
          Finds GadgetDefinition by its URL.
 List<GadgetDefinition> searchByWildCard(String query)
          Find by Wild card.
 List<GadgetDefinition> searchByWildCardExcludeCustom(String query)
          Find by Wild card.
 
Methods inherited from class nl.surfnet.coin.shared.service.GenericServiceHibernateImpl
createCriteria, delete, detachFromSession, findAll, findByCriteria, findByCriteriaOrdered, findByExample, findByExample, findById, getCount, getPersistentClass, getSession, saveOrUpdate, saveOrUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.surfnet.coin.shared.service.GenericService
createCriteria, delete, detachFromSession, findAll, findByExample, findByExample, findById, getCount, getPersistentClass, saveOrUpdate, saveOrUpdate
 

Constructor Detail

GadgetDefinitionServiceHibernateImpl

public GadgetDefinitionServiceHibernateImpl()
Method Detail

searchByWildCard

public List<GadgetDefinition> searchByWildCard(String query)
Description copied from interface: GadgetDefinitionService
Find by Wild card. Returns only published GadgetDefinitions.

Specified by:
searchByWildCard in interface GadgetDefinitionService
Parameters:
query - String with the search query
Returns:
GadgetDefinitions

searchByWildCardExcludeCustom

public List<GadgetDefinition> searchByWildCardExcludeCustom(String query)
Description copied from interface: GadgetDefinitionService
Find by Wild card. Returns only published GadgetDefinitions that are not custom.

Specified by:
searchByWildCardExcludeCustom in interface GadgetDefinitionService
Parameters:
query - String with the search query
Returns:
GadgetDefinitions

findAllPublished

public List<GadgetDefinition> findAllPublished()
Description copied from interface: GadgetDefinitionService
Find all GadgetDefinitions with status = published.

Specified by:
findAllPublished in interface GadgetDefinitionService
Returns:
List of GadgetDefinition's

findAllPublishedExcludeCustom

public List<GadgetDefinition> findAllPublishedExcludeCustom()
Description copied from interface: GadgetDefinitionService
Find all GadgetDefinitions with status = published that are not added by users

Specified by:
findAllPublishedExcludeCustom in interface GadgetDefinitionService
Returns:
List of GadgetDefinition's

findAllPublishedExcludeCustomOrderByPopularity

public List<GadgetDefinition> findAllPublishedExcludeCustomOrderByPopularity(nl.surfnet.coin.shared.service.SortOrder sortOrder)
Description copied from interface: GadgetDefinitionService
Find all GadgetDefinitions with status = published that are not added by users ordered by number of installs

Specified by:
findAllPublishedExcludeCustomOrderByPopularity in interface GadgetDefinitionService
Parameters:
sortOrder - SortOrder (ASCENDING or DESCENDING)
Returns:
sorted list of GadgetDefinition's, can be empty

searchByUrl

public GadgetDefinition searchByUrl(String url)
Description copied from interface: GadgetDefinitionService
Finds GadgetDefinition by its URL. The URL is unique for each GadgetDefinition.

Specified by:
searchByUrl in interface GadgetDefinitionService
Parameters:
url - String with the URL of the gadget definition
Returns:
GadgetDefinition or null if none can be found

findAllFixedTabGadgets

public List<GadgetDefinition> findAllFixedTabGadgets()
Description copied from interface: GadgetDefinitionService
Find all GadgetDefinitions that need to be added to the Fixed Tab

Specified by:
findAllFixedTabGadgets in interface GadgetDefinitionService
Returns:
List of GadgetDefinition's


Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.