nl.surfnet.coin.portal.service
Interface GadgetDefinitionService

All Superinterfaces:
nl.surfnet.coin.shared.service.GenericService<GadgetDefinition>
All Known Implementing Classes:
GadgetDefinitionServiceHibernateImpl

public interface GadgetDefinitionService
extends nl.surfnet.coin.shared.service.GenericService<GadgetDefinition>

Service for managing GadgetDefinition


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 interface nl.surfnet.coin.shared.service.GenericService
createCriteria, delete, detachFromSession, findAll, findByExample, findByExample, findById, getCount, getPersistentClass, saveOrUpdate, saveOrUpdate
 

Method Detail

searchByWildCard

List<GadgetDefinition> searchByWildCard(String query)
Find by Wild card. Returns only published GadgetDefinitions.

Parameters:
query - String with the search query
Returns:
GadgetDefinitions

searchByWildCardExcludeCustom

List<GadgetDefinition> searchByWildCardExcludeCustom(String query)
Find by Wild card. Returns only published GadgetDefinitions that are not custom.

Parameters:
query - String with the search query
Returns:
GadgetDefinitions

findAllPublished

List<GadgetDefinition> findAllPublished()
Find all GadgetDefinitions with status = published.

Returns:
List of GadgetDefinition's

findAllPublishedExcludeCustom

List<GadgetDefinition> findAllPublishedExcludeCustom()
Find all GadgetDefinitions with status = published that are not added by users

Returns:
List of GadgetDefinition's

findAllPublishedExcludeCustomOrderByPopularity

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

Parameters:
sortOrder - SortOrder (ASCENDING or DESCENDING)
Returns:
sorted list of GadgetDefinition's, can be empty

findAllFixedTabGadgets

List<GadgetDefinition> findAllFixedTabGadgets()
Find all GadgetDefinitions that need to be added to the Fixed Tab

Returns:
List of GadgetDefinition's

searchByUrl

GadgetDefinition searchByUrl(String url)
Finds GadgetDefinition by its URL. The URL is unique for each GadgetDefinition.

Parameters:
url - String with the URL of the gadget definition
Returns:
GadgetDefinition or null if none can be found


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