com.ptc.wvs.client.pview
Class PViewHelper

java.lang.Object
  extended bycom.ptc.wvs.client.pview.PViewHelper

public class PViewHelper
extends Object

PViewHelper contains a number of conveience methods for accessing data in Windchill to obtain information which is useful when implementing the PView bean in a Windchill Application/Applet.

Supported API: false

Extendable: false


Nested Class Summary
static class PViewHelper.Server
          Server side implementations
 
Field Summary
private static boolean debug
           
 
Constructor Summary
PViewHelper()
           
 
Method Summary
static Vector getDefaultMarkups(Persistable p)
           
static PViewOLData getOLFileURL(Representable representable)
          Locates the URL to the viewable representation
static PViewOLData getOLFileURL(Representable representable, boolean includeProperties)
          Locates the URL to the viewable representation
static Vector getOLFileURL(Vector representables)
          Locates the URLs to the viewables associated to the representables
static Vector getOLFileURL(Vector representables, boolean includeProperties)
          Locates the URLs to the viewables associated to the representables
static Hashtable getPartProperties(Persistable p)
           
static String getPrefValue(String node, String key)
          Returns the value of a preference stored in Windchill
static byte[] getThumbnailData(Persistable p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private static boolean debug
Constructor Detail

PViewHelper

public PViewHelper()
Method Detail

getThumbnailData

public static byte[] getThumbnailData(Persistable p)

getOLFileURL

public static PViewOLData getOLFileURL(Representable representable)
Locates the URL to the viewable representation

Parameters:
representable - the representable whose viewable is to be located
Returns:
the URL to the content in Windchill

getOLFileURL

public static PViewOLData getOLFileURL(Representable representable,
                                       boolean includeProperties)
Locates the URL to the viewable representation

Parameters:
representable - the representable whose viewable is to be located
Returns:
the URL to the content in Windchill

getOLFileURL

public static Vector getOLFileURL(Vector representables)
Locates the URLs to the viewables associated to the representables

Parameters:
representables - the representables whose viewables are to be located
Returns:
the URLs to the content in Windchill

getOLFileURL

public static Vector getOLFileURL(Vector representables,
                                  boolean includeProperties)
Locates the URLs to the viewables associated to the representables

Parameters:
representables - the representables whose viewables are to be located
Returns:
the URLs to the content in Windchill

getPrefValue

public static String getPrefValue(String node,
                                  String key)
Returns the value of a preference stored in Windchill

Parameters:
node - the prefernce node
key - the key to the preference
Returns:
the value of the preference

getPartProperties

public static Hashtable getPartProperties(Persistable p)

getDefaultMarkups

public static Vector getDefaultMarkups(Persistable p)