com.sap.netweaver.bc.rf.mi.content

Interface IMutableContentManager

All Superinterfaces:
IContentManager

public interface IMutableContentManager
extends IContentManager

Read-And-Write interface describing a repository sub manager for content. Each resource may provide content modifyable through this interface. Content may be anything implementing the IContent interface.


Method Summary
 void setContent(IResourceHandle resourceHandle, IMutableContent content, boolean compareETags)
          Set content of the resource.
 
Methods inherited from interface com.sap.netweaver.bc.rf.mi.content.IContentManager
getContent, getContent
 

Method Detail

setContent

void setContent(IResourceHandle resourceHandle,
                IMutableContent content,
                boolean compareETags)
                throws ResourceException,
                       ContentMetadataMismatchException
Set content of the resource. The metadata of the content will be updated atomically during the set call if supported by the repository manager (e.g. for etag and last-modified-by timestamp).

Parameters:
resourceHandle - resource handle
content - content
compareETags - when true, the content will only be set, when the actual entity tag is up-to-date, i.e. the content wasn't modified between the getContent() and the setContent() call
Throws:
ResourceException - when content can't be written
ContentMetadataMismatchException - when content metadata doesn't match call or content, e.g. because compareETags is true, but eTag doesn't match or because content length was specified but doesn't match with content itself
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2012 SAP AG Complete Copyright Notice