com.ptc.windchill.cadx
Class NewEPMDocumentHelper

java.lang.Object
  extended bycom.ptc.windchill.cadx.NewEPMDocumentHelper

public class NewEPMDocumentHelper
extends Object


Constructor Summary
NewEPMDocumentHelper()
           
 
Method Summary
static void appendNewEPMDocumentProps(NewEPMDocument newEPMDoc, Hashtable props)
          Append to props the properties the NewEPMDocument properties.
static NewEPMDocument createNewEPMDocument(HTTPRequest request)
          Create a new NewEPMDocument based on the values found in the HTTPRequest query string or form data.
static String getCADName(Hashtable props)
          Returns cad name value if it is specified in props; otherwise null is returned.
static String getCADName(HTTPRequest request)
          Returns cad name value if it is specified in the HTTPRequest's query string or form data; otherwise null is returned.
static String getLocalid(Hashtable props)
          Returns localid value if it is specified in props; otherwise null is returned.
static String getLocalid(HTTPRequest request)
          Returns localid value if it is specified in the HTTPRequest's query string or form data; otherwise null is returned.
static boolean hasMissingDependents(Hashtable props)
          Returns true if props contains the missing dependents property value of true; otherwise false is returned.
static boolean hasMissingDependents(HTTPRequest request)
          Returns true if HTTPRequest's query string or form data contains the missing dependents property value of true; otherwise false is returned.
static boolean isLocalidInProps(Hashtable props)
          Returns true if props contains the localid property value of true; otherwise false is returned.
static boolean isPlaceHolder(Hashtable props)
          Returns true if props contains the place holder property value of true; otherwise false is returned.
static boolean isPlaceHolder(HTTPRequest request)
          Returns true if HTTPRequest's query string or form data contains the place holder property value of true; otherwise false is returned.
private static boolean isProperty(Hashtable props, String propKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewEPMDocumentHelper

public NewEPMDocumentHelper()
Method Detail

createNewEPMDocument

public static NewEPMDocument createNewEPMDocument(HTTPRequest request)
Create a new NewEPMDocument based on the values found in the HTTPRequest query string or form data.


appendNewEPMDocumentProps

public static void appendNewEPMDocumentProps(NewEPMDocument newEPMDoc,
                                             Hashtable props)
Append to props the properties the NewEPMDocument properties.


isProperty

private static boolean isProperty(Hashtable props,
                                  String propKey)

isPlaceHolder

public static boolean isPlaceHolder(Hashtable props)
Returns true if props contains the place holder property value of true; otherwise false is returned.


hasMissingDependents

public static boolean hasMissingDependents(Hashtable props)
Returns true if props contains the missing dependents property value of true; otherwise false is returned.


isLocalidInProps

public static boolean isLocalidInProps(Hashtable props)
Returns true if props contains the localid property value of true; otherwise false is returned.


isPlaceHolder

public static boolean isPlaceHolder(HTTPRequest request)
Returns true if HTTPRequest's query string or form data contains the place holder property value of true; otherwise false is returned.


hasMissingDependents

public static boolean hasMissingDependents(HTTPRequest request)
Returns true if HTTPRequest's query string or form data contains the missing dependents property value of true; otherwise false is returned.


getCADName

public static String getCADName(HTTPRequest request)
Returns cad name value if it is specified in the HTTPRequest's query string or form data; otherwise null is returned.


getCADName

public static String getCADName(Hashtable props)
Returns cad name value if it is specified in props; otherwise null is returned.


getLocalid

public static String getLocalid(HTTPRequest request)
Returns localid value if it is specified in the HTTPRequest's query string or form data; otherwise null is returned.


getLocalid

public static String getLocalid(Hashtable props)
Returns localid value if it is specified in props; otherwise null is returned.