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

java.lang.Object
  extended by nl.surfnet.coin.shared.service.GenericServiceHibernateImpl<Gadget>
      extended by nl.surfnet.coin.portal.service.impl.GadgetServiceHibernateImpl
All Implemented Interfaces:
GadgetService, nl.surfnet.coin.shared.service.GenericService<Gadget>

@Component(value="gadgetService")
public class GadgetServiceHibernateImpl
extends nl.surfnet.coin.shared.service.GenericServiceHibernateImpl<Gadget>
implements GadgetService


Constructor Summary
GadgetServiceHibernateImpl()
           
 
Method Summary
 void clearFirstSpot(Tab tab)
          Increase the order of all gadgets of one specific tab with one
 List 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 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

GadgetServiceHibernateImpl

public GadgetServiceHibernateImpl()
Method Detail

getCountByTab

public int getCountByTab(Tab tab)
Description copied from interface: GadgetService
Get a count of all Gagdets on a tab.

Specified by:
getCountByTab in interface GadgetService
Parameters:
tab - tab where gadgets reside on
Returns:

getCountByTabColumn

public int getCountByTabColumn(Tab tab,
                               int column)
Description copied from interface: GadgetService
Get a count of all Gagdets on a tab.

Specified by:
getCountByTabColumn in interface GadgetService
Parameters:
tab - tab where gadgets reside on
column - column where gadget resides on
Returns:

getByTabColumn

public List getByTabColumn(Tab tab,
                           int column)
Description copied from interface: GadgetService
Get a all Gagdets on a tab for a specific column.

Specified by:
getByTabColumn in interface GadgetService
Parameters:
tab - tab where gadgets reside on
column - column where gadget resides on
Returns:

reorderGadgets

public boolean reorderGadgets(String[] column1,
                              String[] column2,
                              Tab tab)
Description copied from interface: GadgetService
Reorder gadgets

Specified by:
reorderGadgets in interface GadgetService
Parameters:
column1 - new order for column 1
column2 - new order for column 2
tab - tab where gadgets reside on
Returns:

clearFirstSpot

public void clearFirstSpot(Tab tab)
Description copied from interface: GadgetService
Increase the order of all gadgets of one specific tab with one

Specified by:
clearFirstSpot in interface GadgetService
Parameters:
tab - the tab


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