Skip to Content
0
Former Member
Oct 09, 2006 at 02:50 AM

The return value of copyResource in IMutableNamespaceManager

14 Views

Hi,

What should copyResource() return? In javadoc I see it should return <u>a list of new resource identifiers (IRid) of all copied resources</u>, so in my code:

l.add(cd.getDestinationDescriptor().getParentCollectionRid().add(handle.getNode().getName()));
return l;

However, after copy, there's an error java.lang.ClassCastException at com.sapportals.wcm.repository.GeneralImpl2.internalCopyManager(GeneralImpl2.java:583), while the copy operation indeed succeed.

So what's wrong with my code?

Thanks,

Ray