Submit a IWHole

How do you submit a IWHole....

right now i am deleting a IWSimpleFile using the destroy() method, but when i try to submit i am submitting the original IWSimpleFile object instance and getting the following exception

com.interwoven.api.service.IWServiceManagedObject$InvalidException: Invalid service managed object.

I assume this is because i am submitting a IWSimpleFile and the submit process expects a IWHole object. However i cannot find anyway to get a handle on a IWHole object. If i try to lookup the file i just deleted then IWPathNamedObject.lookupByPath will return null.

can anyone shed some light on how this is done?

Comments

  • Hi,
    To get hold of an IWHole object, you would need to call IWHole hole = (IWHole)IWPathNamedObject.lookupByPath(<service>, <path>, true);

    hope this helps.



    Best Regards,
    Narendra
  • booya... worked like a charm

    i wouldn't have guessed that's what lookThroughInvisiblePathNamedObjects meant :-/ .....

    thnx for the tip.
TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs