com.ptc.netmarkets.document
Class NmDocumentCommands

java.lang.Object
  extended bycom.ptc.netmarkets.document.NmDocumentCommands

public class NmDocumentCommands
extends Object



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String DEBUG
           
private static String RESOURCE
           
private static String VALID_EMPTY_FILE
           
 
Constructor Summary
NmDocumentCommands()
           
 
Method Summary
static void addAttachment(NmCommandBean cb)
          

Supported API: false
protected static String calculateName(String a_file_reference)
           
static NmOid create(NmCommandBean cb)
          

Supported API: false
protected static NmDefaultHTMLTableModel createAttachmentsList(String a_reference_encoded_list, String a_name_encoded_list, String a_number_encoded_list, String a_description_encoded_list, String a_separator, WTContainerRef containerRef, String type)
           
static NmHTMLTable createFileTable(NmCommandBean cb)
          This method is used for supporting the drag and drop capability.
static NmOid createFromTemplate(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] disable(NmCommandBean cb)
          

Supported API: false
static void disableDetailsStep(NmCommandBean cb)
           
static void disableImportNameStep(NmCommandBean cb)
           
static void disableNameStep(NmCommandBean cb)
           
static void disableUpdateDetailsStep(NmCommandBean cb)
           
static void download(NmCommandBean cb)
          

Supported API: false
static void edit(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] enable(NmCommandBean cb)
          

Supported API: false
static String encodeField(ArrayList an_array_list, String a_separator)
           
protected static ArrayList encodeFields(NmCommandBean a_command_bean, String a_separator)
           
protected static ArrayList extractValueFromRequest(NmCommandBean a_command_bean, javax.servlet.http.HttpServletRequest an_http_request, ArrayList an_array_list, String a_key1, String a_key2)
           
static NmHTMLTable getAccessForObject(NmCommandBean cb)
           
static NmDocument getDocumentProperties(NmCommandBean cb)
          

Supported API: false
static NmDocument getNmDocument(NmCommandBean cb)
          

Supported API: false
static NmDocument getNmDocument(NmOid oid)
          

Supported API: false
static boolean isTemplate(NmCommandBean cb)
          

Supported API: false
static boolean isTemplate(NmOid oid)
          

Supported API: false
static NmDefaultHTMLTable listAttachments(NmCommandBean cb)
          

Supported API: false
static NmDefaultHTMLTable listHistory(NmCommandBean cb)
          

Supported API: false
protected static ArrayList parseEncodedField(String an_encoded_field, String a_separator)
           
static void rename(NmCommandBean cb)
          

Supported API: false
static void retrieveFileTable(NmCommandBean cb)
           
static void setAccessForObject(NmCommandBean cb)
           
static void typeAvailable(NmCommandBean cb)
           
static void update(NmCommandBean cb)
          

Supported API: false
static void viewInProductView(NmCommandBean cb)
          Command to force document to be loaded in ProductView.
static void wizardCreate(NmCommandBean cb)
          

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

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

DEBUG

private static final String DEBUG

VALID_EMPTY_FILE

private static final String VALID_EMPTY_FILE
Constructor Detail

NmDocumentCommands

public NmDocumentCommands()
Method Detail

create

public static NmOid create(NmCommandBean cb)
                    throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmOid
Throws:
WTException

edit

public static void edit(NmCommandBean cb)
                 throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

update

public static void update(NmCommandBean cb)
                   throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

getDocumentProperties

public static NmDocument getDocumentProperties(NmCommandBean cb)
                                        throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmDocument
Throws:
WTException

listHistory

public static NmDefaultHTMLTable listHistory(NmCommandBean cb)
                                      throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmDefaultHTMLTable
Throws:
WTException

wizardCreate

public static void wizardCreate(NmCommandBean cb)
                         throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

download

public static void download(NmCommandBean cb)
                     throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

createFromTemplate

public static NmOid createFromTemplate(NmCommandBean cb)
                                throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmOid
Throws:
WTException

viewInProductView

public static void viewInProductView(NmCommandBean cb)
                              throws WTException
Command to force document to be loaded in ProductView.

Supported API: false

Parameters:
cb -
Throws:
WTException

createFileTable

public static NmHTMLTable createFileTable(NmCommandBean cb)
                                   throws WTException,
                                          WTPropertyVetoException
This method is used for supporting the drag and drop capability. It is processing the HTTP request to extract the file which have been dropped on the applet and add each of them in the table. It will also memorized the

Supported API: false

Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException
WTPropertyVetoException

enable

public static NmChangeModel[] enable(NmCommandBean cb)
                              throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

disable

public static NmChangeModel[] disable(NmCommandBean cb)
                               throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getNmDocument

public static NmDocument getNmDocument(NmOid oid)
                                throws WTException


Supported API: false

Parameters:
oid -
Returns:
NmDocument
Throws:
WTException

getNmDocument

public static NmDocument getNmDocument(NmCommandBean cb)
                                throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmDocument
Throws:
WTException

isTemplate

public static boolean isTemplate(NmCommandBean cb)
                          throws WTException


Supported API: false

Parameters:
cb -
Returns:
boolean
Throws:
WTException

isTemplate

public static boolean isTemplate(NmOid oid)
                          throws WTException


Supported API: false

Parameters:
oid -
Returns:
boolean
Throws:
WTException

rename

public static void rename(NmCommandBean cb)
                   throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

listAttachments

public static NmDefaultHTMLTable listAttachments(NmCommandBean cb)
                                          throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmDefaultHTMLTable
Throws:
WTException

addAttachment

public static void addAttachment(NmCommandBean cb)
                          throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

getAccessForObject

public static NmHTMLTable getAccessForObject(NmCommandBean cb)
                                      throws WTException
Throws:
WTException

setAccessForObject

public static void setAccessForObject(NmCommandBean cb)
                               throws WTException
Throws:
WTException

disableNameStep

public static void disableNameStep(NmCommandBean cb)
                            throws WTException
Throws:
WTException

disableDetailsStep

public static void disableDetailsStep(NmCommandBean cb)
                               throws WTException
Throws:
WTException

disableImportNameStep

public static void disableImportNameStep(NmCommandBean cb)
                                  throws WTException
Throws:
WTException

disableUpdateDetailsStep

public static void disableUpdateDetailsStep(NmCommandBean cb)
                                     throws WTException
Throws:
WTException

retrieveFileTable

public static void retrieveFileTable(NmCommandBean cb)
                              throws WTException,
                                     WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

wizardMultiCreate

public static void wizardMultiCreate(NmCommandBean cb)
                              throws WTException,
                                     WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

createAttachmentsList

protected static NmDefaultHTMLTableModel createAttachmentsList(String a_reference_encoded_list,
                                                               String a_name_encoded_list,
                                                               String a_number_encoded_list,
                                                               String a_description_encoded_list,
                                                               String a_separator,
                                                               WTContainerRef containerRef,
                                                               String type)

encodeFields

protected static ArrayList encodeFields(NmCommandBean a_command_bean,
                                        String a_separator)

encodeField

public static String encodeField(ArrayList an_array_list,
                                 String a_separator)

calculateName

protected static String calculateName(String a_file_reference)

parseEncodedField

protected static ArrayList parseEncodedField(String an_encoded_field,
                                             String a_separator)

extractValueFromRequest

protected static ArrayList extractValueFromRequest(NmCommandBean a_command_bean,
                                                   javax.servlet.http.HttpServletRequest an_http_request,
                                                   ArrayList an_array_list,
                                                   String a_key1,
                                                   String a_key2)

typeAvailable

public static void typeAvailable(NmCommandBean cb)
                          throws WTException
Throws:
WTException