info.magnolia.ui.admincentral.shellapp.favorites
Class FavoritesPresenter
java.lang.Object
info.magnolia.ui.admincentral.shellapp.favorites.FavoritesPresenter
- All Implemented Interfaces:
- FavoritesView.Listener
public final class FavoritesPresenter
- extends Object
- implements FavoritesView.Listener
Presenter for Favorites.
Method Summary |
void |
addFavorite(JcrNewNodeAdapter favorite)
|
void |
addGroup(JcrNewNodeAdapter newGroup)
|
JcrNewNodeAdapter |
createNewFavoriteSuggestion(String location,
String title,
String icon)
|
JcrNewNodeAdapter |
createNewGroupSuggestion()
|
JcrNewNodeAdapter |
determinePreviousLocation()
|
void |
editFavorite(String relPath,
String newTitle)
|
void |
editGroup(String relPath,
String newTitle)
|
Map<String,String> |
getAvailableGroupsNames()
|
void |
goToLocation(String location)
|
void |
moveFavorite(String relPath,
String group)
|
void |
orderFavoriteAfter(String relPath,
String sibling)
|
void |
orderFavoriteBefore(String relPath,
String sibling)
|
void |
orderGroupAfter(String relPath,
String sibling)
|
void |
orderGroupBefore(String relPath,
String sibling)
|
void |
removeFavorite(String relPath)
|
void |
removeGroup(String relPath)
|
FavoritesView |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FavoritesPresenter
@Inject
public FavoritesPresenter(FavoritesView view,
FavoritesManager favoritesManager,
AppDescriptorRegistry appDescriptorRegistry,
info.magnolia.i18nsystem.I18nizer i18nizer)
start
public FavoritesView start()
removeFavorite
public void removeFavorite(String relPath)
- Specified by:
removeFavorite
in interface FavoritesView.Listener
addFavorite
public void addFavorite(JcrNewNodeAdapter favorite)
- Specified by:
addFavorite
in interface FavoritesView.Listener
moveFavorite
public void moveFavorite(String relPath,
String group)
- Specified by:
moveFavorite
in interface FavoritesView.Listener
orderFavoriteBefore
public void orderFavoriteBefore(String relPath,
String sibling)
- Specified by:
orderFavoriteBefore
in interface FavoritesView.Listener
orderFavoriteAfter
public void orderFavoriteAfter(String relPath,
String sibling)
- Specified by:
orderFavoriteAfter
in interface FavoritesView.Listener
orderGroupBefore
public void orderGroupBefore(String relPath,
String sibling)
- Specified by:
orderGroupBefore
in interface FavoritesView.Listener
orderGroupAfter
public void orderGroupAfter(String relPath,
String sibling)
- Specified by:
orderGroupAfter
in interface FavoritesView.Listener
goToLocation
public void goToLocation(String location)
- Specified by:
goToLocation
in interface FavoritesView.Listener
determinePreviousLocation
public JcrNewNodeAdapter determinePreviousLocation()
createNewFavoriteSuggestion
public JcrNewNodeAdapter createNewFavoriteSuggestion(String location,
String title,
String icon)
- Returns:
- a
JcrNewNodeAdapter
used to pre-populate a form in the UI with a suggestion for a new favorite.
createNewGroupSuggestion
public JcrNewNodeAdapter createNewGroupSuggestion()
getAvailableGroupsNames
public Map<String,String> getAvailableGroupsNames()
editFavorite
public void editFavorite(String relPath,
String newTitle)
- Specified by:
editFavorite
in interface FavoritesView.Listener
addGroup
public void addGroup(JcrNewNodeAdapter newGroup)
- Specified by:
addGroup
in interface FavoritesView.Listener
editGroup
public void editGroup(String relPath,
String newTitle)
- Specified by:
editGroup
in interface FavoritesView.Listener
removeGroup
public void removeGroup(String relPath)
- Specified by:
removeGroup
in interface FavoritesView.Listener
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.