com.sap.portal.wpc.api.content

Interface IWPCContentRegistration

All Superinterfaces:
IService

public interface IWPCContentRegistration
extends IService

Enables to register and unregister custom implementations of IContentProvider and IContentHandler

 SAP API Classification:
This interface is intended to be used only and may not be implemented by client code.

Field Summary
static String KEY
           
 
Method Summary
 void notifyOnContentModification(com.sap.security.api.IUser user, String objectID, String contentHandlerID)
          Deprecated. - Instead use the interface IWPCContentHandling Notifies WPC that the content of an existing content item was modified
 boolean registerContentHandler(String contentHandlerID, IContentHandler contentHandler)
          Registers the IContentHandler object.
 boolean registerContentProvider(String contentProviderID, IContentProvider contentProvider)
          Registers the IContentProvider object.
 boolean unregisterContentHandler(String contentHandlerID)
          Unregisters the specified IContentHandler object.
 boolean unregisterContentProvider(String contentProviderID)
          Unregisters the specified IContentProvider object.
 
Methods inherited from interface com.sapportals.portal.prt.service.IService
afterInit, configure, destroy, getContext, getKey, init, release
 

Field Detail

KEY

static final String KEY
See Also:
Constant Field Values
Method Detail

registerContentProvider

boolean registerContentProvider(String contentProviderID,
                                IContentProvider contentProvider)
                                throws RegistrationException
Registers the IContentProvider object.

Parameters:
contentProviderID - the ID of the content provider object
contentProvider - the content provider object to be registered
Returns:
true in case of success
Throws:
RegistrationException - in case of unexpected failure

registerContentHandler

boolean registerContentHandler(String contentHandlerID,
                               IContentHandler contentHandler)
                               throws RegistrationException
Registers the IContentHandler object.

Parameters:
contentHandlerID - the ID of the content handler object
contentHandler - the content handler object to be registered
Returns:
true in case of success
Throws:
RegistrationException - in case of unexpected failure

unregisterContentProvider

boolean unregisterContentProvider(String contentProviderID)
                                  throws RegistrationException
Unregisters the specified IContentProvider object.

Parameters:
contentProviderID - the ID of the content provider object to unregister
Returns:
true in case of success
Throws:
RegistrationException - in case of unexpected failure

unregisterContentHandler

boolean unregisterContentHandler(String contentHandlerID)
                                 throws RegistrationException
Unregisters the specified IContentHandler object.

Parameters:
contentHandlerID - the ID of the content handler object to unregister
Returns:
true in case of success
Throws:
RegistrationException - in case of unexpected failure

notifyOnContentModification

void notifyOnContentModification(com.sap.security.api.IUser user,
                                 String objectID,
                                 String contentHandlerID)
Deprecated. - Instead use the interface IWPCContentHandling Notifies WPC that the content of an existing content item was modified

Parameters:
user - the user who is editing the page
objectID - the design time ID of the object that was modified
contentHandlerID - the ID of the content handler object
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