SAP NetWeaver '04

com.sapportals.wcm.repository.service.feedback
Interface IFeedback

[contained in: com.sap.km.cm.repository.service.base.par - km.shared.repository.service.feedback_api.jar]
public interface IFeedback

The interface IFeedback represents a service for handling feedback related to resources. Feedback is always assigned to a resource.
Permissions are required to give or view feedback for a resource:

The feedback service can be configured. It offers a method to determine the current configuration.


Method Summary
 boolean addFeedback(IResource resource, java.lang.String Text)
          Adds a feedback item to the specified resource.
 boolean addFeedback(IResource resource, java.lang.String Text, com.sapportals.portal.security.usermanagement.IUMPrincipal receiver)
          Adds a feedback item to the specified resource.
 boolean delFeedback(IResource resource, IResource fedbackres)
          Deletes a feedback item belonging to a resource
 IResourceList getFeedback(IResource resource)
          Gets all feedback for a specifed resource sorted by creation date.
 int getFeedbackCount(IResource resource)
          Returns number of feedback items that exist for a resource.
 java.util.Properties getProperties()
          Gets all configuration data for this service.
 boolean isSecure()
          Checks if service is set to be a secure service.
 

Method Detail

addFeedback

public boolean addFeedback(IResource resource,
                           java.lang.String Text)
                    throws WcmException
Adds a feedback item to the specified resource. The author of the feedback is identified by the resource context.
Parameters:
resource - the resource for which the feedback is given
Text - text of the feedback
Returns:
Boolean to indicate whether storage of feedback was successful or failed

addFeedback

public boolean addFeedback(IResource resource,
                           java.lang.String Text,
                           com.sapportals.portal.security.usermanagement.IUMPrincipal receiver)
                    throws WcmException
Adds a feedback item to the specified resource. The author of the feedback is identified by the resource context. Optionally, a notification recipient can be named.
Parameters:
resource - the resource for which the feedback is given
Text - text of the feedback
receiver - recipient of a "New Feedback" notification
Returns:
Boolean to indicate whether storage of feedback was successful/failed
See Also:
IUMPrincipal

getFeedback

public IResourceList getFeedback(IResource resource)
Gets all feedback for a specifed resource sorted by creation date.
Parameters:
resource - the resource for which feedback exists
Returns:
list of resources that store feedback

delFeedback

public boolean delFeedback(IResource resource,
                           IResource fedbackres)
Deletes a feedback item belonging to a resource
Parameters:
resource - resource for which the feedback exists
fedbackres - resource that stores the feedback to be deleted
Returns:
Boolean to indicate whether deletion of feedback was successful or failed

getProperties

public java.util.Properties getProperties()
Gets all configuration data for this service.
Returns:
all configuration data as Java properties

getFeedbackCount

public int getFeedbackCount(IResource resource)
Returns number of feedback items that exist for a resource. A user only receives the feedback items he/she is permitted to see.
Parameters:
resource - resource for which feedback exists
Returns:
the number of feedback items that are assigned to the resource

isSecure

public boolean isSecure()
Checks if service is set to be a secure service. It is possible to configure the service so that no htmlb editor is used.
Returns:
true, if the service is set to be secure, otherwise false

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.