com.ptc.windchill.uwgm.cadx.cancelcheckout
Class CancelCheckoutJSHelper

java.lang.Object
  extended bycom.ptc.windchill.uwgm.cadx.cancelcheckout.CancelCheckoutJSHelper

class CancelCheckoutJSHelper
extends Object


Field Summary
private static char CHAR_DOUBLE_QUOTE
           
private static char CHAR_NEWLINE
           
private static char CHAR_SINGLE_QUOTE
           
private static String INCLUDEDAS_DRAWING
           
private static String JAVA_SCRIPT_FUNCTION_BEGIN
           
private static String JAVA_SCRIPT_FUNCTION_END
           
private static String JAVA_SCRIPT_MODEL_DATA
           
private static String JAVA_SCRIPT_MODEL_ROW_DATA_ARRAY_END
           
private static String JAVA_SCRIPT_PARAM_END
           
private static String JAVA_SCRIPT_PARAM_SEPARATOR
           
private static String JAVA_SCRIPT_ROW_DATA_ARRAY_START
           
private static String OBJECT_ACTION_OBJ_PROPS
           
private static String RESOURCE
           
private static String[] rulesArray
           
private static String STRING_NEWLINE
           
private static String STRING_SEPARATOR
           
 
Constructor Summary
(package private) CancelCheckoutJSHelper()
           
 
Method Summary
static void addRules(PrintWriter out, Locale locale)
           
static boolean canBeCancelCheckedOut(Workable doc, EPMWorkspace workspace)
           
static String getDocumentScript(EPMDocumentInfo infoObj, int index, EPMWorkspace workspace, Locale locale)
           
static String getJSModelDefinition()
           
private static String getLinkForObject(Workable object, String number)
           
static String getOid(Persistable obj)
           
static String getPartScript(WTPart part, int[] includedBy, String objPDMType, String objPDMStatus, String objAuthStatus, String objAuthApp, int index, EPMWorkspace workspace, Locale locale)
           
static boolean isCancelCheckoutPossible(Workable object, WTContainer container)
           
private static String processType(WTObject obj)
           
static void writeServerDataRepresentation(PrintWriter printWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAR_DOUBLE_QUOTE

private static final char CHAR_DOUBLE_QUOTE
See Also:
Constant Field Values

CHAR_SINGLE_QUOTE

private static final char CHAR_SINGLE_QUOTE
See Also:
Constant Field Values

CHAR_NEWLINE

private static final char CHAR_NEWLINE
See Also:
Constant Field Values

OBJECT_ACTION_OBJ_PROPS

private static final String OBJECT_ACTION_OBJ_PROPS
See Also:
Constant Field Values

INCLUDEDAS_DRAWING

private static final String INCLUDEDAS_DRAWING
See Also:
Constant Field Values

STRING_NEWLINE

private static final String STRING_NEWLINE
See Also:
Constant Field Values

STRING_SEPARATOR

private static final String STRING_SEPARATOR
See Also:
Constant Field Values

JAVA_SCRIPT_FUNCTION_BEGIN

private static final String JAVA_SCRIPT_FUNCTION_BEGIN
See Also:
Constant Field Values

JAVA_SCRIPT_FUNCTION_END

private static final String JAVA_SCRIPT_FUNCTION_END
See Also:
Constant Field Values

JAVA_SCRIPT_PARAM_SEPARATOR

private static final String JAVA_SCRIPT_PARAM_SEPARATOR
See Also:
Constant Field Values

JAVA_SCRIPT_PARAM_END

private static final String JAVA_SCRIPT_PARAM_END
See Also:
Constant Field Values

JAVA_SCRIPT_MODEL_DATA

private static final String JAVA_SCRIPT_MODEL_DATA
See Also:
Constant Field Values

JAVA_SCRIPT_ROW_DATA_ARRAY_START

private static final String JAVA_SCRIPT_ROW_DATA_ARRAY_START
See Also:
Constant Field Values

JAVA_SCRIPT_MODEL_ROW_DATA_ARRAY_END

private static final String JAVA_SCRIPT_MODEL_ROW_DATA_ARRAY_END
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

rulesArray

private static String[] rulesArray
Constructor Detail

CancelCheckoutJSHelper

CancelCheckoutJSHelper()
Method Detail

getLinkForObject

private static String getLinkForObject(Workable object,
                                       String number)
                                throws WTException
Throws:
WTException

canBeCancelCheckedOut

public static boolean canBeCancelCheckedOut(Workable doc,
                                            EPMWorkspace workspace)
                                     throws WTException
Throws:
WTException

processType

private static String processType(WTObject obj)
                           throws WTException
Throws:
WTException

writeServerDataRepresentation

public static void writeServerDataRepresentation(PrintWriter printWriter)

getJSModelDefinition

public static String getJSModelDefinition()

getPartScript

public static String getPartScript(WTPart part,
                                   int[] includedBy,
                                   String objPDMType,
                                   String objPDMStatus,
                                   String objAuthStatus,
                                   String objAuthApp,
                                   int index,
                                   EPMWorkspace workspace,
                                   Locale locale)
                            throws WTException
Throws:
WTException

getDocumentScript

public static String getDocumentScript(EPMDocumentInfo infoObj,
                                       int index,
                                       EPMWorkspace workspace,
                                       Locale locale)
                                throws WTException
Throws:
WTException

addRules

public static void addRules(PrintWriter out,
                            Locale locale)
                     throws WTException
Throws:
WTException

getOid

public static String getOid(Persistable obj)
                     throws WTException
Throws:
WTException

isCancelCheckoutPossible

public static boolean isCancelCheckoutPossible(Workable object,
                                               WTContainer container)
                                        throws WTException
Throws:
WTException