nl.surfnet.coin.portal.service
Interface GadgetService

All Superinterfaces:
nl.surfnet.coin.shared.service.GenericService<Gadget>
All Known Implementing Classes:
GadgetServiceHibernateImpl

public interface GadgetService
extends nl.surfnet.coin.shared.service.GenericService<Gadget>

Service for managing Gadget


Method Summary
 void clearFirstSpot(Tab tab)
          Increase the order of all gadgets of one specific tab with one
 List<Gadget> getByTabColumn(Tab tab, int column)
          Get a all Gagdets on a tab for a specific column.
 int getCountByTab(Tab tab)
          Get a count of all Gagdets on a tab.
 int getCountByTabColumn(Tab tab, int column)
          Get a count of all Gagdets on a tab.
 boolean reorderGadgets(String[] column1, String[] column2, Tab tab)
          Reorder gadgets
 
Methods inherited from interface nl.surfnet.coin.shared.service.GenericService
createCriteria, delete, detachFromSession, findAll, findByExample, findByExample, findById, getCount, getPersistentClass, saveOrUpdate, saveOrUpdate
 

Method Detail

getCountByTab

int getCountByTab(Tab tab)
Get a count of all Gagdets on a tab.

Parameters:
tab - tab where gadgets reside on
Returns:

getCountByTabColumn

int getCountByTabColumn(Tab tab,
                        int column)
Get a count of all Gagdets on a tab.

Parameters:
tab - tab where gadgets reside on
column - column where gadget resides on
Returns:

getByTabColumn

List<Gadget> getByTabColumn(Tab tab,
                            int column)
Get a all Gagdets on a tab for a specific column.

Parameters:
tab - tab where gadgets reside on
column - column where gadget resides on
Returns:

reorderGadgets

boolean reorderGadgets(String[] column1,
                       String[] column2,
                       Tab tab)
Reorder gadgets

Parameters:
column1 - new order for column 1
column2 - new order for column 2
tab - tab where gadgets reside on
Returns:

clearFirstSpot

void clearFirstSpot(Tab tab)
Increase the order of all gadgets of one specific tab with one

Parameters:
tab - the tab


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