com.sap.portal.favorites

Interface IFavoritesProvider


Deprecated.

@Deprecated
public interface IFavoritesProvider

Provider of favorites from a specific data source. can be used for integration of external favorites with portal favorites. Implement the methods of this interface to organize and manage favorites


Method Summary
 IFavorite addFavorite(com.sap.security.api.IUser user, String title, String navigationTarget, String parentFolder, boolean isFolder)
          Deprecated. Add a new Favorite to the container of Favorites represented by this Provider.
 void deleteFavorite(com.sap.security.api.IUser user, String favoriteID)
          Deprecated. Delete the specified favorite for the current user
 List<IFavorite> getFavoritesList(com.sap.security.api.IUser user, Locale locale)
          Deprecated. Adds the specified favorite to the list of favorites for the current user
 String getID()
          Deprecated. Returns the ID of the provider of favorites
 IFavorite moveFavorite(com.sap.security.api.IUser user, String favoriteID, IFavorite.Position position)
          Deprecated. Moves the specified favorite in it's current folder
 IFavorite moveFavoriteToFolder(com.sap.security.api.IUser user, String favoriteID, String folderID)
          Deprecated. Moves the specified favorite to another folder
 IFavorite renameFavorite(com.sap.security.api.IUser user, String favoriteID, String newTitle)
          Deprecated. Renames the specified favorite for the current user
 

Method Detail

getFavoritesList

List<IFavorite> getFavoritesList(com.sap.security.api.IUser user,
                                 Locale locale)
                                 throws FavoriteOperationFailedException
Deprecated. 
Adds the specified favorite to the list of favorites for the current user

Parameters:
user - the current user
locale - the user's locale
Returns:
A list of IFavorite objects for the specified user
Throws:
FavoriteOperationFailedException - If the list of favorites cannot be created

addFavorite

IFavorite addFavorite(com.sap.security.api.IUser user,
                      String title,
                      String navigationTarget,
                      String parentFolder,
                      boolean isFolder)
                      throws FavoriteOperationFailedException
Deprecated. 
Add a new Favorite to the container of Favorites represented by this Provider.

Parameters:
user - the current user
title - The title of the favorite
navigationTarget - the navigation target URL of the favorite
parentFolder - the folder to which to add the new favorite. null means the root folder.
isFolder - A Boolaen whether to create a new folder or a new favorite
Returns:
The newly added IFavorite
Throws:
FavoriteOperationFailedException - indicates that adding the favorite failed
FavoriteExistsException - indicates that adding the favorite failed because such favorite already exists. You can either throw this exception or add this favorite with a different title

deleteFavorite

void deleteFavorite(com.sap.security.api.IUser user,
                    String favoriteID)
                    throws FavoriteOperationFailedException
Deprecated. 
Delete the specified favorite for the current user

Parameters:
user - the current user
favoriteID - The ID of the favorite
Throws:
FavoriteOperationFailedException - indicates that deleting the favorite failed

renameFavorite

IFavorite renameFavorite(com.sap.security.api.IUser user,
                         String favoriteID,
                         String newTitle)
                         throws FavoriteOperationFailedException
Deprecated. 
Renames the specified favorite for the current user

Parameters:
user - the current user
favoriteID - The ID of the favorite
newTitle - The new title of the favorite
Returns:
The renamed IFavorite
Throws:
FavoriteOperationFailedException

moveFavorite

IFavorite moveFavorite(com.sap.security.api.IUser user,
                       String favoriteID,
                       IFavorite.Position position)
                       throws FavoriteOperationFailedException
Deprecated. 
Moves the specified favorite in it's current folder

Parameters:
user - the current user
favoriteID - The ID of the favorite
position - the IFavorite.Position to move to
Returns:
the IFavorite that has been moved
Throws:
FavoriteOperationFailedException

moveFavoriteToFolder

IFavorite moveFavoriteToFolder(com.sap.security.api.IUser user,
                               String favoriteID,
                               String folderID)
                               throws FavoriteOperationFailedException
Deprecated. 
Moves the specified favorite to another folder

Parameters:
user - the current user
favoriteID - The ID of the favorite
folderID - The ID of the folder to which to move the favorite
Returns:
the IFavorite that has been moved
Throws:
FavoriteOperationFailedException

getID

String getID()
Deprecated. 
Returns the ID of the provider of favorites

Returns:
The ID of the provider of favorites
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/navigation/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice