public interface TabService extends nl.surfnet.coin.shared.service.GenericService<Tab>
| Modifier and Type | Method and Description |
|---|---|
ClonedTab |
cloneTab(Tab tab,
List<Gadget> sharedGadgets)
Clone a tab.
|
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.
|
List<Tab> findFavorites(String ownerId, boolean favorites)
ownerId - the String with the Id of the ownerfavorites - true for all favorites, false for non-favorites.boolean reorderTabs(String[] newOrder, String ownerId, boolean favorites)
newOrder - the String[] containing the new orderownerId - the String with the Id of the owner{@link - boolean} saying whether these tabs are favorites or not.true if the reordering was succesful false if it wasn'tint getCountByOwner(String ownerId, boolean favorites)
ownerId - the String with the Id of the ownerfavorites - boolean indicating the favorite nature.int the number of all tabs by the given ownerCopyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.