com.sap.portal.wpc.api.content.provider

Interface IContentProvider


public interface IContentProvider

Implement this interface to integrate a custom content provider.


Method Summary
 ContentDescriptor getContentDescriptor(String contentDescriptorID)
          Should return the ContentDescriptor object specified by the ID.
 ContentDescriptor[] getContentDescriptors(com.sap.security.api.IUser user, Locale locale, String pageID)
          Should return an array of ContentDescriptor objects, to be displayed in the content panel during page editing.
 String getDescription(com.sap.security.api.IUser user, Locale locale)
          Should return the description of this content provider.
 boolean getExpandedByDefault()
          Determines whether the tile of this content provider is expanded or collapsed by default when opening the page content editor.
 String getID()
          Should return the ID of this content provider.
 String getName(com.sap.security.api.IUser user, Locale locale)
          Should return the name of this content provider.
 

Method Detail

getID

String getID()
Should return the ID of this content provider.

Returns:
the content provider ID

getName

String getName(com.sap.security.api.IUser user,
               Locale locale)
Should return the name of this content provider.

Parameters:
user - the user who is editing the page
locale - the user's locale
Returns:
the name of this content provider

getDescription

String getDescription(com.sap.security.api.IUser user,
                      Locale locale)
Should return the description of this content provider.

Parameters:
user - the user who is editing the page
locale - the user's locale
Returns:
the description of this content provider

getContentDescriptors

ContentDescriptor[] getContentDescriptors(com.sap.security.api.IUser user,
                                          Locale locale,
                                          String pageID)
Should return an array of ContentDescriptor objects, to be displayed in the content panel during page editing.

Parameters:
user - the user who is editing the page
locale - the user's locale
pageID - the ID of the page that is being edited
Returns:
an array of ContentDescriptor objects

getContentDescriptor

ContentDescriptor getContentDescriptor(String contentDescriptorID)
Should return the ContentDescriptor object specified by the ID.

Parameters:
contentDescriptorID - the ID of a ContentDescriptor object of this content provider
Returns:
the ContentDescriptor object that corresponds to the specified ID

getExpandedByDefault

boolean getExpandedByDefault()
Determines whether the tile of this content provider is expanded or collapsed by default when opening the page content editor.

Returns:
true for 'Expanded' false for 'Collapsed'
Access Rights

This class can be accessed from:


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


Copyright 2015 SAP AG Complete Copyright Notice