com.sap.portal.favorites

Interface IFavorite


public interface IFavorite

Represents a direct link to a portal object in the portal list of favorites. A Favorite can represent either an object persisted in the portal, or an object from an external data source, such as KM, that exposes its favorites with the help of an implementation of IFavoritesProvider.


Nested Class Summary
static class IFavorite.Position
          Defines the constants indicating where to move a favorite Relevant for favorites whose provider supports ordering (isOrdered() = true)
static class IFavorite.Type
          Defines the constants indicating the navigation type of the favorite Important: this value is not passed to the function IFavoritesProvider.addFavorite(com.sap.security.api.IUser, java.lang.String, java.lang.String, java.lang.String, boolean), it is decided by the provider
 
Method Summary
 boolean capabilitySupported(Capability capability)
          Indicates whether this favorites supports the specified capability
 Map<String,Object> getAditionalProperties()
          Returns a map of additional properties that you can define
 List<IFavorite> getChildren()
          Returns A list of children of this favorite, if the favorite is a folder
 Date getCreationDate()
          Returns the creation date of the favorite
 String getDescription()
          Returns the description of the favorite (displayed as a tooltip)
 String getID()
          Returns the unique ID of the favorite
 boolean getIsFolder()
          Indicates whether this favorites is a folder
 String getNavigationTarget()
          Returns the navigation target URL of the favorite
 String getTitle()
          Returns the title of the favorite
 int getType()
          Returns the navigation type of the favorite
 

Method Detail

getID

String getID()
Returns the unique ID of the favorite

Returns:
Returns the unique ID of the favorite

getTitle

String getTitle()
Returns the title of the favorite

Returns:
The title of the favorite

getNavigationTarget

String getNavigationTarget()
Returns the navigation target URL of the favorite

Returns:
the navigation target URL of the favorite

getType

int getType()
Returns the navigation type of the favorite

Returns:
An integer value that corresponds to a constant identified by IFavorite.Type

getCreationDate

Date getCreationDate()
Returns the creation date of the favorite

Returns:
The creation date of the favorite

getChildren

List<IFavorite> getChildren()
Returns A list of children of this favorite, if the favorite is a folder

Returns:
A List of child IFavorite objects

getDescription

String getDescription()
Returns the description of the favorite (displayed as a tooltip)

Returns:
the description of the favorite

getIsFolder

boolean getIsFolder()
Indicates whether this favorites is a folder

Returns:
A boolean value indicating whether this favorite is a folder

getAditionalProperties

Map<String,Object> getAditionalProperties()
Returns a map of additional properties that you can define

Returns:
a map of key and value pairs, where the value is an Object

capabilitySupported

boolean capabilitySupported(Capability capability)
Indicates whether this favorites supports the specified capability

Parameters:
capability - the capability constant defined by Capability
Returns:
A boolean value indicating whether this favorite supports the specified capability
See Also:
Capability
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