|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.common.ui.Visualizer
Methods responsible for the viewing of Representations
Supported API: false
Field Summary | |
static int |
CLIPBOARD_LINK
|
private static String |
CONFIG_SERVER_CLASS
|
private static String |
createDialogWindow
|
static int |
DEFAULT_ICON
|
static int |
DELETE_LINK
|
static int |
HAS_MARKUP_ICON
|
static int |
MAKE_DEFAULT
|
static int |
NUMBER_OF_VISDATA
|
static int |
PART_VIEW_LINK
|
static int |
PRINT_LINK
|
static int |
PRODUCTVIEW_LINK
|
static int |
PRODUCTVIEWLITE_LINK
|
static int |
PV_PS_LINK
|
static int |
REFRESH_LINK
|
static int |
REP_CONFIG_SPEC
|
static int |
REP_DATE_CREATED
|
static int |
REP_DESCRIPTION
|
static int |
REP_NAME
|
static int |
REPRESENTATIONS
|
static int |
SAVE_ZIP_LINK
|
private static boolean |
SERVER
|
private static String |
SERVER_CLASS
|
static int |
THUMBNAIL_LINK
|
static int |
THUMBNAIL_VIEWER_LINK
|
private static String |
thumbViewerJS
|
private static boolean |
thumbViewerJSEachCall
|
private static WVSProperties |
wvsProperties
|
Constructor Summary | |
Visualizer()
|
Method Summary | |
String |
getAddToClipboardHTML(String representableRef,
String representationRef)
Returns the HTML to add an entry to the clipboard Supported API: false |
String |
getAddToClipboardHTML(String representableRef,
String representationRef,
Locale locale)
Returns the HTML to add an entry to the clipboard Supported API: false |
String |
getAddToClipboardURL(String representableRef,
String representationRef)
Returns the URL to add an entry to the clipboard Supported API: false |
Vector |
getAllMarkupData(String representableObjectReference,
String representationObjectReference)
Returns information about all markups associated to a representable for manipulation by a UI. |
Vector |
getAllMarkupData(String representableObjectReference,
String representationObjectReference,
Locale locale)
Returns information about all markups associated to a representable for manipulation by a UI. |
Vector |
getAllVisualizationData(String representableObjectReference)
Returns information about all representations associated to a representable for manipulation by a UI. |
Vector |
getAllVisualizationData(String representableObjectReference,
Locale locale)
Returns information about all representations associated to a representable for manipulation by a UI. |
static String[] |
getClipboardData(String representableObjectReference,
String representationObjectReference)
Returns information for display in the clipboard for the specified representation of the representable Supported API: false |
static String[] |
getClipboardData(String representableObjectReference,
String representationObjectReference,
String ContainerOid,
Locale locale)
Returns information for display in the clipboard for the specified representation of the representable Supported API: false |
static String |
getCreateDialogWindow()
Returns the JavaScript to create the Dialog Window function creationDialogWindow This should be called once per page Supported API: false |
String |
getDefaultThumbnailURL(String objectReference)
Returns the URL to the Thumbnail Image for the default representation of the representable Supported API: false |
static String |
getDefaultViewHTML(String objectReference,
Boolean displayThumbnail,
Boolean forListing)
Returns the HTML fragment for default representation of the representable which will launch ProductView Supported API: false |
static String |
getDefaultViewHTML(String objectReference,
Boolean displayThumbnail,
Boolean forListing,
Locale locale)
Returns the HTML fragment for default representation of the representable which will launch ProductView Supported API: false |
static String |
getDefaultViewURL(String objectReference)
Returns the URL to the ProductView ED file for the default representation of the representable Supported API: false |
String[] |
getDefaultVisualizationData(String representableObjectReference,
Boolean forListing)
Returns a set of HTML fragments to allow the default representation to be manipulated by a UI. |
String[] |
getDefaultVisualizationData(String representableObjectReference,
Boolean forListing,
Locale locale)
Returns a set of HTML fragments to allow the default representation to be manipulated by a UI. |
String[] |
getMarkupData(String objectReference,
Locale locale)
Returns markup data array ofr the markup obkect Supported API: false |
String |
getMarkupsURL(String objectReference)
Returns the URL to add show the Markup page for an object Supported API: false |
static String |
getModifyPreferenceURL()
Determines the current user Client Preference Supported API: false |
static String |
getPartStructureBasicURL(String objectReference,
String configString,
Integer levels)
Returns the URL, for viewing the WTPart structure Supported API: false |
static String[] |
getPartStructureCreateRepFormHTML(String objectReference,
Integer levels,
Integer type,
Locale locale)
Returns HTML fragments for creating a representation for the WTPart structure. |
static String |
getPartStructureED(String objectReference,
ConfigSpec configSpec,
Integer levels)
Returns ED file content for viewing the WTPart structure. |
static String |
getPartStructureED(String objectReference,
String configString,
Integer levels)
Returns ED file content for viewing the WTPart structure. |
static String[] |
getPartStructureFormHTML(String objectReference,
Integer levels,
Integer type,
Locale locale)
Returns HTML fragments for viewing the WTPart structure. |
static String |
getPartStructureHTML(String objectReference,
String configString,
Integer levels)
Returns the HTML fragment for viewing the WTPart structure Supported API: false |
static String |
getPartStructureHTML(String objectReference,
String configString,
Integer levels,
Locale locale)
Returns the HTML fragment for viewing the WTPart structure, the users current WTPartConfigSpec will be used. |
static String |
getPartStructureHTML(String objectReference,
String configString,
Integer levels,
Locale locale,
Boolean displayThumbnail,
Boolean forListing)
Returns the HTML fragment for viewing the WTPart structure, the users current WTPartConfigSpec will be used. |
String |
getPartStructurePublishHTML(String objectReference)
Returns a set of HTML fragment to allow publishing of a deault representation from the HTML Product Structure page. |
String[] |
getPartStructurePVandViewThumbnailLinkHTML(String objectReference)
Returns 2 HTML fragments to view in PV and view the thumbnail of the default representation from the HTML Product Structure page. |
static WTKeyedMap |
getPartStructurePVandViewThumbnailLinkHTML(WTCollection collection)
Returns 2 HTML fragments to view in PV and view the thumbnail of the default representation from the HTML Product Structure page. |
String |
getPartStructurePVHTML(String objectReference)
Returns a set of HTML fragment to allow ProductView to be launched from the NAME link on the HTML Product Structure page. |
static WTKeyedMap |
getPartStructurePVHTML(WTCollection collection)
Returns a set of HTML fragment to allow ProductView to be launched from the NAME link on the HTML Product Structure page. |
static String |
getPartStructureURL(String objectReference,
String configString,
Integer levels)
Returns the URL, including javascript new window, for viewing the WTPart structure Supported API: false |
String |
getPartStructureViewThumbnailLinkHTML(String objectReference)
Returns a set of HTML fragment to view the thumbnail of the default representation from the HTML Product Structure page. |
static WTKeyedMap |
getPartStructureViewThumbnailLinkHTML(WTCollection collection)
Returns a set of HTML fragment to view the thumbnail of the default representation from the HTML Product Structure page. |
static String |
getPreference(String key,
String defaultValue)
Retrieve the preference value Supported API: false |
String |
getPrintHTML(String representableRef,
String representationRef)
Returns the HTML to print a representation Supported API: false |
String |
getPrintHTML(String representableRef,
String representationRef,
Locale locale)
Returns the HTML to print a representation Supported API: false |
String |
getPrintURL(String representableRef,
String representationRef)
Returns the URL to print a representation Supported API: false |
static String |
getPVConfigURL(String objectReference,
String ContainerOid,
boolean fromClip,
Locale locale)
Returns URL to get productview config information from Supported API: false |
String |
getRepresentationsURL(String objectReference)
Returns the URL to add show the Representations page for an object Supported API: false |
String |
getThumbnailURL(String objectReference)
Returns the URL to the Thumbnail Image for the representation Supported API: false |
static String[] |
getVisualizationData(String representableObjectReference,
String representationObjectReference,
Boolean forListing)
Returns a set of HTML fragments to allow the specified representation to be manipulated by a UI. |
static String[] |
getVisualizationData(String representableObjectReference,
String representationObjectReference,
Boolean forListing,
Locale locale)
Returns a set of HTML fragments to allow the specified representation to be manipulated by a UI. |
static boolean |
isAdministrator(String objectReference)
is the user an administrator (on the container) Supported API: false |
static void |
setPreference(String key,
String value)
Retrieve the preference value Supported API: false |
static String |
setSessionValue(String key,
String value)
Add to Session variable to the method server Supported API: false |
static boolean |
useStandardPVPreference()
Determines the current user Client Preference Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String SERVER_CLASS
private static final String CONFIG_SERVER_CLASS
private static final boolean SERVER
public static final int PRODUCTVIEW_LINK
public static final int THUMBNAIL_LINK
public static final int CLIPBOARD_LINK
public static final int PRINT_LINK
public static final int DEFAULT_ICON
public static final int HAS_MARKUP_ICON
public static final int REP_NAME
public static final int REP_DESCRIPTION
public static final int REP_CONFIG_SPEC
public static final int REP_DATE_CREATED
public static final int DELETE_LINK
public static final int REFRESH_LINK
public static final int MAKE_DEFAULT
public static final int REPRESENTATIONS
public static final int PART_VIEW_LINK
public static final int PRODUCTVIEWLITE_LINK
public static final int THUMBNAIL_VIEWER_LINK
public static final int PV_PS_LINK
public static final int SAVE_ZIP_LINK
public static final int NUMBER_OF_VISDATA
private static WVSProperties wvsProperties
private static boolean thumbViewerJSEachCall
private static String thumbViewerJS
private static String createDialogWindow
Constructor Detail |
public Visualizer()
Method Detail |
public static String getCreateDialogWindow()
public String[] getDefaultVisualizationData(String representableObjectReference, Boolean forListing)
representableObjectReference
- The object reference of the representableforListing
- Specifies if the resulting HTML is to be using in a listing
public String[] getDefaultVisualizationData(String representableObjectReference, Boolean forListing, Locale locale)
representableObjectReference
- The object reference of the representableforListing
- Specifies if the resulting HTML is to be using in a listinglocale
- Specifies locale for ALT tags
public static String[] getVisualizationData(String representableObjectReference, String representationObjectReference, Boolean forListing)
representableObjectReference
- The object reference of the representablerepresentationObjectReference
- The object reference of the representationforListing
- Specifies if the resulting HTML is to be using in a listing
public static String[] getVisualizationData(String representableObjectReference, String representationObjectReference, Boolean forListing, Locale locale)
representableObjectReference
- The object reference of the representablerepresentationObjectReference
- The object reference of the representationforListing
- Specifies if the resulting HTML is to be using in a listinglocale
- Specifies locale for ALT tags
public Vector getAllVisualizationData(String representableObjectReference)
representableObjectReference
- The object reference of the representable
public Vector getAllVisualizationData(String representableObjectReference, Locale locale)
representableObjectReference
- The object reference of the representablelocale
- Specifies locale for ALT tags
public Vector getAllMarkupData(String representableObjectReference, String representationObjectReference)
representableObjectReference
- The object reference of the representablerepresentationObjectReference
- The object reference of the representation
public Vector getAllMarkupData(String representableObjectReference, String representationObjectReference, Locale locale)
representableObjectReference
- The object reference of the representablerepresentationObjectReference
- The object reference of the representationlocale
- Specifies locale for ALT tags
public static String[] getClipboardData(String representableObjectReference, String representationObjectReference)
representableObjectReference
- The object reference of the representablerepresentationObjectReference
- The object reference of the representation
public static String[] getClipboardData(String representableObjectReference, String representationObjectReference, String ContainerOid, Locale locale)
representableObjectReference
- The object reference of the representablerepresentationObjectReference
- The object reference of the representationContainerOid
- The object reference of the container in the context this is added to clipboardlocale
- Specifies locale
public static String getDefaultViewHTML(String objectReference, Boolean displayThumbnail, Boolean forListing)
objectReference
- The object reference of the representabledisplayThumbnail
- If TRUE the thumbnail will be exposed in the html, if not, an icon will be displayed.forListing
- If TRUE, the HTML will be for a result table
public static String getDefaultViewHTML(String objectReference, Boolean displayThumbnail, Boolean forListing, Locale locale)
objectReference
- The object reference of the representabledisplayThumbnail
- If TRUE the thumbnail will be exposed in the html, if not, an icon will be displayed.forListing
- If TRUE, the HTML will be for a result tablelocale
- Specifies locale for ALT tags
public static String getDefaultViewURL(String objectReference)
objectReference
- The object reference of the representable
public String getDefaultThumbnailURL(String objectReference)
objectReference
- The object reference of the representable
public String getThumbnailURL(String objectReference)
objectReference
- The object reference of the representation
public String getAddToClipboardURL(String representableRef, String representationRef)
representableRef
- The object reference of the representablerepresentationRef
- The object reference of the representation
public String getAddToClipboardHTML(String representableRef, String representationRef)
representableRef
- The object reference of the representablerepresentationRef
- The object reference of the representation
public String getAddToClipboardHTML(String representableRef, String representationRef, Locale locale)
representableRef
- The object reference of the representablerepresentationRef
- The object reference of the representationlocale
- Specifies locale for ALT tags
public String getPrintURL(String representableRef, String representationRef)
representableRef
- The object reference of the representablerepresentationRef
- The object reference of the representation
public String getPrintHTML(String representableRef, String representationRef)
representableRef
- The object reference of the representablerepresentationRef
- The object reference of the representation
public String getPrintHTML(String representableRef, String representationRef, Locale locale)
representableRef
- The object reference of the representablerepresentationRef
- The object reference of the representationlocale
- Specifies locale for ALT tags
public String getRepresentationsURL(String objectReference)
objectReference
- The object reference whos Representations table is to be returned
public String getMarkupsURL(String objectReference)
objectReference
- The object reference whos markups table is to be returned
public String[] getMarkupData(String objectReference, Locale locale)
objectReference
- The object reference whos markups data is to be returnedlocale
- Specifies locale for ALT tags
public static String getPartStructureBasicURL(String objectReference, String configString, Integer levels)
objectReference
- The object reference of the WTPartconfigString
- a String representation of the ConfigSpec or nulllevels
- Specifies number of levels to traverse, -1 = all
public static String getPartStructureURL(String objectReference, String configString, Integer levels)
objectReference
- The object reference of the WTPartconfigString
- a String representation of the ConfigSpec or nulllevels
- Specifies number of levels to traverse, -1 = all
public static String getPartStructureHTML(String objectReference, String configString, Integer levels)
objectReference
- The object reference of the WTPartconfigString
- a String representation of the ConfigSpec or nulllevels
- Specifies number of levels to traverse, -1 = all
public static String getPartStructureHTML(String objectReference, String configString, Integer levels, Locale locale)
objectReference
- The object reference of the WTPartconfigString
- a String representation of the ConfigSpec or nulllevels
- Specifies number of levels to traverse, -1 = alllocale
- Specifies locale for ALT tags
public static String getPartStructureHTML(String objectReference, String configString, Integer levels, Locale locale, Boolean displayThumbnail, Boolean forListing)
objectReference
- The object reference of the WTPartconfigString
- a String representation of the ConfigSpec or nulllevels
- Specifies number of levels to traverse, -1 = alllocale
- Specifies locale for ALT tagsdisplayThumbnail
- If TRUE the thumbnail will be exposed in the html, if not, an icon will be displayed.forListing
- If TRUE, the HTML will be for a result table
public static String[] getPartStructureFormHTML(String objectReference, Integer levels, Integer type, Locale locale)
objectReference
- The object reference of the WTPartlevels
- Specifies number of levels to traverse, -1 = alltype
- Specifies visible type, 1=text only(default), 2=icon only, 3= text & iconlocale
- Specifies locale for ALT tags
public static String[] getPartStructureCreateRepFormHTML(String objectReference, Integer levels, Integer type, Locale locale)
objectReference
- The object reference of the WTPartlevels
- Specifies number of levels to traverse, -1 = alltype
- Specifies visible type, 1=text only(default), 2=icon only, 3= text & iconlocale
- Specifies locale for ALT tags
public static String getPartStructureED(String objectReference, String configString, Integer levels)
objectReference
- The object reference of the WTPartconfigString
- a String representation of the ConfigSpec or nulllevels
- Specifies number of levels to traverse, -1 = all
public static String getPartStructureED(String objectReference, ConfigSpec configSpec, Integer levels)
objectReference
- The object reference of the WTPartconfigSpec
- the (WTPart)ConfigSpec or nulllevels
- Specifies number of levels to traverse, -1 = all
public static String setSessionValue(String key, String value)
key
- the key objectvalue
- the value object (null deletes the key)
public static boolean useStandardPVPreference()
public static String getModifyPreferenceURL()
public static String getPreference(String key, String defaultValue)
key
- the key object
public static void setPreference(String key, String value) throws WTException
key
- the key object
WTException
public String getPartStructurePVHTML(String objectReference)
objectReference
- The object reference of the representable
public String getPartStructureViewThumbnailLinkHTML(String objectReference)
objectReference
- The object reference of the representable
public String[] getPartStructurePVandViewThumbnailLinkHTML(String objectReference)
objectReference
- The object reference of the representable
public String getPartStructurePublishHTML(String objectReference)
objectReference
- The object reference of the representable
public static String getPVConfigURL(String objectReference, String ContainerOid, boolean fromClip, Locale locale)
objectReference
- The object reference for context of config infofromClip
- is this viewing from the clipboardlocale
- the locale
public static boolean isAdministrator(String objectReference)
objectReference
- The container, can be null
public static WTKeyedMap getPartStructurePVHTML(WTCollection collection)
collection
- a WTCollection of objects
public static WTKeyedMap getPartStructureViewThumbnailLinkHTML(WTCollection collection)
collection
- a WTCollection of objects
public static WTKeyedMap getPartStructurePVandViewThumbnailLinkHTML(WTCollection collection)
collection
- a WTCollection of objects
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |