|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TabService
Service for managing tabs
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface nl.surfnet.coin.shared.service.GenericService |
|---|
createCriteria, delete, detachFromSession, findAll, findByExample, findByExample, findById, getCount, getPersistentClass, saveOrUpdate, saveOrUpdate |
| Method Detail |
|---|
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't
int 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 owner
ClonedTab cloneTab(Tab tab,
List<Gadget> sharedGadgets)
tab - the tab to clone.sharedGadgets - the List containing the Gadgets
ClonedTabList<Tab> getTabsByOwner(String ownerId)
ownerId@return -
List of all Gadgets
Tab findByIdAndOwner(Long id,
String ownerId)
id - 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 | |||||||||