wt.wvs
Class PIEVisualizer

java.lang.Object
  extended bywt.wvs.PIEVisualizer

public class PIEVisualizer
extends Object

Methods responsible for the launching of ProductView from PIE

Supported API: false


Field Summary
private static boolean debug
           
private static String SERVER_CLASS
           
private static String UTIL_CLASS
           
 
Constructor Summary
PIEVisualizer()
           
 
Method Summary
private static String getConfigSpecString(ConfigSpec configSpec)
           
static String getPartStructurePIEURL(String objectReference, String sid, Integer levels)
          Get the Part Structure HTML which can can use to launch ProductView will the structure expanded

Supported API: false
static String getPartStructurePIEURL(String objectReference, String startPartRef, String startPathRef, String sid, Integer levels)
          Get the Part Structure HTML which can can use to launch ProductView will the structure expanded

Supported API: false
private static String getReferenceFromObject(Object obj)
           
static boolean isPIMSupportInstalled()
          Returns if PIM Support is currently installed

Supported API: false
static boolean isProductViewLiteInstalled()
          Returns if ProductViewLite is currently installed

Supported API: false
static boolean isWVSEnabled()
          Returns if WVS is currently enabled

Supported API: false
static boolean launchProductView(Applet applet, Object obj, ConfigSpec configSpec, int levels)
          Launch ProductView from an Applet

Supported API: false
static boolean launchProductView(Applet applet, Object obj, ConfigSpec configSpec, Object startPartObj, Object startPathObj, int levels)
          Launch ProductView from an Applet

Supported API: false
static boolean launchProductViewRef(Applet applet, String objRef, ConfigSpec configSpec, int levels)
          Launch ProductView from an Applet

Supported API: false
static boolean launchProductViewRef(Applet applet, String objRef, String configSpecString, int levels)
          Launch ProductView from an Applet

Supported API: false
static boolean launchProductViewRef(Applet applet, String objRef, String configSpecString, String startPartRef, String startPathRef, int levels)
          Launch ProductView from an Applet

Supported API: false
static String setSessionValue(String key, String value)
          Add to Session variable to the method server

Supported API: false
static boolean useStandardPVPreference()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_CLASS

private static final String SERVER_CLASS
See Also:
Constant Field Values

UTIL_CLASS

private static final String UTIL_CLASS
See Also:
Constant Field Values

debug

private static boolean debug
Constructor Detail

PIEVisualizer

public PIEVisualizer()
Method Detail

setSessionValue

public static String setSessionValue(String key,
                                     String value)
Add to Session variable to the method server

Supported API: false

Parameters:
key - the key object
value - the value object (null deletes the key)
Returns:
String session ID

getPartStructurePIEURL

public static String getPartStructurePIEURL(String objectReference,
                                            String sid,
                                            Integer levels)
Get the Part Structure HTML which can can use to launch ProductView will the structure expanded

Supported API: false

Parameters:
objectReference - the top level object reference to traverse from
sid - the session id that the config spec (pie_config_spec) has been cached in
levels - the number of levels to open, -1 for all levels
Returns:
String HTML for launching ProductView

getPartStructurePIEURL

public static String getPartStructurePIEURL(String objectReference,
                                            String startPartRef,
                                            String startPathRef,
                                            String sid,
                                            Integer levels)
Get the Part Structure HTML which can can use to launch ProductView will the structure expanded

Supported API: false

Parameters:
objectReference - the top level object reference
startPartRef - the object reference (WTPart) to traverse from
startPathRef - the object reference (PartPathOccurrence) to traverse from
sid - the session id that the config spec (pie_config_spec) has been cached in
levels - the number of levels to open, -1 for all levels
Returns:
String HTML for launching ProductView

isWVSEnabled

public static boolean isWVSEnabled()
Returns if WVS is currently enabled

Supported API: false

Returns:
boolean true is enabled

isProductViewLiteInstalled

public static boolean isProductViewLiteInstalled()
Returns if ProductViewLite is currently installed

Supported API: false

Returns:
boolean true is installed

isPIMSupportInstalled

public static boolean isPIMSupportInstalled()
Returns if PIM Support is currently installed

Supported API: false

Returns:
boolean true is installed

launchProductView

public static boolean launchProductView(Applet applet,
                                        Object obj,
                                        ConfigSpec configSpec,
                                        int levels)
                                 throws Exception
Launch ProductView from an Applet

Supported API: false

Parameters:
applet - the applet to launch from
obj - starting object from where to traverse. his must be persistent
configSpec - the configSpec used to traverse WTPart structure. Null assumes latest. For other object types this will be ignored
levels - number of levels to traverse in the structure
Returns:
true if successfully launched.
Throws:
Exception

launchProductViewRef

public static boolean launchProductViewRef(Applet applet,
                                           String objRef,
                                           ConfigSpec configSpec,
                                           int levels)
                                    throws Exception
Launch ProductView from an Applet

Supported API: false

Parameters:
applet - the applet to launch from
configSpec - the configSpec used to traverse WTPart structure. Null assumes latest. For other object types this will be ignored
levels - number of levels to traverse in the structure
Returns:
true if successfully launched.
Throws:
Exception

launchProductViewRef

public static boolean launchProductViewRef(Applet applet,
                                           String objRef,
                                           String configSpecString,
                                           int levels)
                                    throws Exception
Launch ProductView from an Applet

Supported API: false

Parameters:
applet - the applet to launch from
levels - number of levels to traverse in the structure
Returns:
true if successfully launched.
Throws:
Exception

launchProductView

public static boolean launchProductView(Applet applet,
                                        Object obj,
                                        ConfigSpec configSpec,
                                        Object startPartObj,
                                        Object startPathObj,
                                        int levels)
                                 throws Exception
Launch ProductView from an Applet

Supported API: false

Parameters:
applet - the applet to launch from
obj - starting object from where to traverse. his must be persistent
configSpec - the configSpec used to traverse WTPart structure. Null assumes latest. For other object types this will be ignored
startPartObj - starting WTPart object from where to traverse. his must be persistent
startPathObj - starting PartPathOccurrence object from where to traverse. his must be persistent
levels - number of levels to traverse in the structure
Returns:
true if successfully launched.
Throws:
Exception

launchProductViewRef

public static boolean launchProductViewRef(Applet applet,
                                           String objRef,
                                           String configSpecString,
                                           String startPartRef,
                                           String startPathRef,
                                           int levels)
                                    throws Exception
Launch ProductView from an Applet

Supported API: false

Parameters:
applet - the applet to launch from
levels - number of levels to traverse in the structure
Returns:
true if successfully launched.
Throws:
Exception

getReferenceFromObject

private static String getReferenceFromObject(Object obj)
                                      throws Exception
Throws:
Exception

useStandardPVPreference

public static boolean useStandardPVPreference()

getConfigSpecString

private static String getConfigSpecString(ConfigSpec configSpec)
                                   throws Exception
Throws:
Exception