|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.shared.service.GenericServiceHibernateImpl<Tab>
nl.surfnet.coin.portal.service.impl.TabServiceHibernateImpl
@Component(value="tabService") public class TabServiceHibernateImpl
| Constructor Summary | |
|---|---|
TabServiceHibernateImpl()
|
|
| Method Summary | |
|---|---|
ClonedTab |
cloneTab(Tab tab,
List<Gadget> sharedGadgets)
Clone a tab. |
protected List<Tab> |
findByCriteria(org.hibernate.criterion.Criterion... criterion)
|
Tab |
findByIdAndOwner(Long id,
String ownerId)
Finds a tab by Id and owner |
List<Tab> |
findFavorites(String ownerId,
boolean favorites)
Find favorites. |
int |
getCountByOwner(String ownerId,
boolean favorites)
Get a count of all tabs. |
List<Tab> |
getTabsByOwner(String ownerId)
Get all the tabs of a person. |
boolean |
reorderTabs(String[] newOrder,
String ownerId,
boolean favorites)
Reorder favorite tabs. |
| Methods inherited from class nl.surfnet.coin.shared.service.GenericServiceHibernateImpl |
|---|
createCriteria, delete, detachFromSession, findAll, 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 |
|---|
public TabServiceHibernateImpl()
| Method Detail |
|---|
public List<Tab> findFavorites(String ownerId,
boolean favorites)
findFavorites in interface TabServiceownerId - the String with the Id of the ownerfavorites - true for all favorites, false for non-favorites.
public boolean reorderTabs(String[] newOrder,
String ownerId,
boolean favorites)
TabService
reorderTabs in interface TabServicenewOrder - the String[] containing the new orderownerId - the String with the Id of the owner
true if the reordering was succesful false if it wasn't
public int getCountByOwner(String ownerId,
boolean favorites)
TabService
getCountByOwner in interface TabServiceownerId - the String with the Id of the ownerfavorites - boolean indicating the favorite nature.
int the number of all tabs by the given owner
public ClonedTab cloneTab(Tab tab,
List<Gadget> sharedGadgets)
TabService
cloneTab in interface TabServicetab - the tab to clone.sharedGadgets - the List containing the Gadgets
ClonedTabprotected List<Tab> findByCriteria(org.hibernate.criterion.Criterion... criterion)
findByCriteria in class nl.surfnet.coin.shared.service.GenericServiceHibernateImpl<Tab>public List<Tab> getTabsByOwner(String ownerId)
TabService
getTabsByOwner in interface TabServiceList of all Gadgets
public Tab findByIdAndOwner(Long id,
String ownerId)
findByIdAndOwner in interface TabServiceid - of the TabownerId - the String with the Id of the owner
null if it can't be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||