Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
CSSDK API to copy a file
sureshm
Hi friends,
I was just checking to find CSSDK API to copy a file in teamsite. I found there is a copy method in com.interwoven.cssdk.filesys.CSFile. But CSFile is an interface.
I hope there should be some CSSDK class implementing the above CSFile interface to override the copy method.
I tried a lot but could not find that. Please help me how to
copy/rename
a file using
CSSDK
.
Thank you.
regards,
suresh
TS/LS 7.2.1, Linux5.1
Find more posts tagged with
Comments
Rick Poulin
Just about all non-trivial classes in the CSSDK are interfaces because you're not meant to instantiate them directly. The underlying implementation (whichever one you choose, Java or SOAP), manages the TeamSite connection and creates the objects for you.
Your starting point is the CSClient object, which you obtain in different ways depending on where and how your code is being called. From there, csclient.getFile(new CSVpath("/default/main/blah")) is one of the many ways to get a reference to a CSFile, which you can then copy.
I know search here sucks, but surely you can try a few things and find some examples.