Skip to Content
0
Former Member
Nov 28, 2008 at 04:02 PM

repository manager read file contents even whenit is not necessary

25 Views

Hello SAP guru,

I have written a repository manager for NW04s based on a SAP example (from Thilo Brandt). It is working but the performances are not good

In the menu Content administration/KM content/root, I click on the folder created as root for my repository manager (let s say root >myDir), my repository manager not only request the contents of the directory (ie list of files and sub directories) but also the contents of the files.

This behaviour is problematic as I can have huge files and I do not see why the content of a file is needed as long as a file content display/edit is not requested

If I put a breakpoint of the function that triggers these unwanted reads, I find out that these reads are triggered because getContent(IResourceHandle ) is called. (fonction in my class SimpleContentManager (extends AbstractSubManager implements IMutableContentManager)

It is normal that this function request the file contents as it is used for the display of the contents

Why this function is called when it is not necessary in my point of view ??

This function is called from a SAP internal function in com.sapportals.wcm.repository.ContentImpl2 at line 49

Any idea why I have this behaviour ?