com.ptc.windchill.cadx.common.util
Class ContentUtilities

java.lang.Object
  extended bycom.ptc.windchill.cadx.common.util.ContentUtilities

public class ContentUtilities
extends Object


Field Summary
private static String CLOSE_TAG
           
private static String OPEN_TAG
           
static String SECONDARY_CONTENT_EXCLUDE_ROLES
           
private static boolean VERBOSE
           
 
Constructor Summary
ContentUtilities()
           
 
Method Summary
static String getViewContentURL(ApplicationData app, ContentHolder holder, String objName)
          For the specified ApplicationData object, get the view content url.
static boolean hasValidPrimaryContent(ContentHolder contentHolderObject)
          For the specified ContentHolder object, check if it has valid primary content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_TAG

private static final String OPEN_TAG
See Also:
Constant Field Values

CLOSE_TAG

private static final String CLOSE_TAG
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE

SECONDARY_CONTENT_EXCLUDE_ROLES

public static final String SECONDARY_CONTENT_EXCLUDE_ROLES
See Also:
Constant Field Values
Constructor Detail

ContentUtilities

public ContentUtilities()
Method Detail

hasValidPrimaryContent

public static boolean hasValidPrimaryContent(ContentHolder contentHolderObject)
For the specified ContentHolder object, check if it has valid primary content. To figure it out, get the list of ContentItem excluding some of the secondary and thumbnail contents. If such list is not empty, then this content holder is having valid primary content. The logic in this method has been adapted from the getContent() method of com.ptc.windchill.cadx.caddoc.CADDocProcessorService class and should be tweaked if there are changes to that method.


getViewContentURL

public static String getViewContentURL(ApplicationData app,
                                       ContentHolder holder,
                                       String objName)
                                throws WTException
For the specified ApplicationData object, get the view content url. Also resolves teh TAGs added in X05 for file name. e.g. {&CAD_NAME}, NUMBER etc See wt.epm.util.EPMContentHelper

Throws:
WTException