Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
CSSDK Help
mpal
Hi,
How to get list of templates using CSSDK. Is there any API available?
Thanks in advance
Mpal
Find more posts tagged with
Comments
curiousmaverick
Not sure about CSSDK.
But if that is not available, you may consider reading the list from templating.cfg.
Venus00
You can find the CSSDK API at "iw-home/cssdk/docs/'. its a jar file download it and extract it, you will get the complete API docs.
mpal
I went through the mentioned API doc and tried to retrieve the categories and templates with the API available but it is failing with the exception as below -
com.interwoven.cssdk.access.CSInvalidRoleException: (no such role)
at com.interwoven.cssdk.util.jni.UtilServiceAdapterImpl.getTemplateCategories(Native Method)
at com.interwoven.cssdk.util.impl.CSTemplatingImpl.getTemplateCategories(CSTemplatingImpl.java:87)
at CreateTemplate.main(CreateTemplate.java:97)
The client object which is created is having role as 'null'. (client.getCurrentRole() is retrieved as null) evethough client object is created by passing the role.
Please could anyone shed some lights on this..
Env : Solaris 10, TS 6.7.1 SP1 & CSSDK 3.1.0