Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi.
Can anyone give me description for com.ptc.ddl.wtutil.ContentHolderHelper.class ?
There is no javadoc for it.
The description of method setContents(ContentHolder paramContentHolder, byte[] paramArrayOfByte, ContentRoleType paramContentRoleType, String paramString1, String paramString2, boolean paramBoolean) is of special interest.
What are paramString1, paramString2, paramBoolean?
Should i use this method to attach Primary Content for WTDocument? Is there any other way to attach file to WTDocument?
Thanks.
The com.ptc.ddl.wtutil.ContentHolderHelper class is not part of the supported API.
You should use wt.content.ContentHelper and wt.content.ContentServerHelper instead.
One other way is to use IE Task with following webject.
<ie:webject name="Add-ContentItems" type="ACT">
<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueSeparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>
<ie:param name="GROUP_OUT" data="primaryContent"/>
<ie:param name="OBJECT_REF" data="$(mydocument[]obid[])"/>
<ie:param name="PRIMARY" data="TRUE"/>
<ie:param name="SESSION_ID" data="$(session[]session_id[])"/>
<ie:param name="BLOB_COUNT" data="1"/>
</ie:webject>
