com.ptc.wvs.server.publish
Class Publish

java.lang.Object
  extended bycom.ptc.wvs.server.publish.Publish
All Implemented Interfaces:
RemoteAccess

public class Publish
extends Object
implements RemoteAccess

The server side method to submit a publish job.



Supported API: false

Extendable: false


Field Summary
private static int BUFSIZ
           
static String CAD_FILE
           
static String CAD_TYPE
           
static String CLIP_REP_STRING
           
static String COMMA
           
static String CONFIG_SPEC
           
private static boolean createPublishAudit
           
private static String csvFileDateFormat
           
static String CUR_CONT
           
static String DATA_SOURCE_TYPE
           
static String DOCUMENT_FILE
           
static String DOCUMENT_PUBLISH
           
static String FILE_NAME
           
static String FILENAME_HDR
           
private static Method filterPublishMethod
           
static String GENERATE_THUMBNAIL
           
static int JOB_REQUEST_CADCLIENTSIDE
           
static int JOB_REQUEST_CADLOCAL
           
static int JOB_REQUEST_CADPUBLISH
           
static int JOB_REQUEST_CLIPBOARD
           
static int JOB_REQUEST_DOCLOCAL
           
static int JOB_REQUEST_DOCPUBLISH
           
static int JOB_REQUEST_LOADER
           
static int JOB_REQUEST_PARTPUBLISH
           
static int JOB_REQUEST_PRECONVERTED
           
static int JOB_REQUEST_UNKNOWN
           
static int JOB_SOURCE_EVENT
           
static int JOB_SOURCE_MANUAL
           
static int JOB_SOURCE_SCHEDULE
           
static int JOB_SOURCE_UNKNOWN
           
private static String jspDirectory
           
static String NAME_HDR
           
static String OBJ_REF
           
private static boolean onlyPublishClientSideViewables
           
private static String publishRepCADTypes
           
private static String publishRepDocTypes
           
private static File pubLogDir
           
private static File pubTempUploadDir
           
static String REP_DEFAULT
           
static String REP_DESC
           
static String REP_NAME
           
static String SYNCHRONOUS
           
private static boolean VERBOSE
           
static String WVS_PUBLISH_JOBS
           
private static WVSProperties wvsProperties
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
Publish()
           
 
Method Summary
static boolean createPublishAudit(Persistable p, boolean success, PublishJob publishJob)
          Create an entry in PublishAudit

Supported API: false
static boolean createVeto(Persistable p, boolean thumbnailOnly, boolean isPosAssy, String desc)
          Create an entry in Prohibition list

Supported API: false
static Boolean createVeto(String number, String containerRef, boolean thumbnailOnly, boolean isPosAssy, String desc)
          Create an entry in Prohibition list

Supported API: false
static void deleteVeto(String objref)
          Delete an entry from Prohibition list

Supported API: false
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, Persistable p, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType)
          First checks to see if there is viewable data which is suitable if so this is returned.
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, Persistable p, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType, String actionString)
          First checks to see if there is viewable data which is suitable if so this is returned.
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, Persistable p, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType, String actionString, int jobSource)
          First checks to see if there is viewable data which is suitable if so this is returned.
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType)
          First checks to see if there is viewable data which is suitable if so this is returned.
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType, String actionString)
          First checks to see if there is viewable data which is suitable if so this is returned.
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType, String actionString, int jobSource)
          First checks to see if there is viewable data which is suitable if so this is returned.
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, String configReference, String partConfigReference, boolean defaultRep, String repName, String repDescription, int structureType)
          First checks to see if there is viewable data which is suitable if so this is returned.
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, String configReference, String partConfigReference, boolean defaultRep, String repName, String repDescription, int structureType, String actionString)
          First checks to see if there is viewable data which is suitable if so this is returned.
static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, String configReference, String partConfigReference, boolean defaultRep, String repName, String repDescription, int structureType, String actionString, int jobSource)
          First checks to see if there is viewable data which is suitable if so this is returned.
static void doPublishRep(HTTPRequest request, HTTPResponse response)
           
static void doPublishRep(HTTPRequest request, HTTPResponse response, InputStream is)
          Process the saving of a representation from preconverted data this is called with post from a multipart/form-data html form

Supported API: false
static void doStatisticsSave(HTTPRequest request, HTTPResponse response)
          Process the saving of a statistics csv file

Supported API: false
static void endMultiPublish()
           
private static String formatTime(Timestamp t, Locale locale)
           
static String getActionString(File actionFile)
          get the action file as a string

Supported API: false
static String[] getCADRepList(Persistable p, ConfigSpec cs, Locale locale)
           
static String[] getCADRepList(String objRef, ConfigSpec cs, Locale locale)
          Gets the potential list of CAD "reps" that the user can choose to publish.
static String getDocumentPublishableFileList(String objRef)
          Gets HTLM OPTION fagments that lists a WTDocuments publishable files if the input object is not a WTDocument, return null, if the WTDocument dooes not have an publishable file, returns ""

Supported API: false
static String getPublishRepCADTypes(Locale locale)
          Gets HTLM OPTION fagments that lists the EPMAuthoringAppType's that can be used to load/convert CAD data in new representation wizard

Supported API: false
static String getPublishRepGatewayURL()
          Gets the Gateway URL to upload a new representation

Supported API: false
static List[] getStatisticsList(String containerRef, String filterType, String fromDate, String toDate, Locale locale)
          List information for publish statistics summary

Supported API: false
static String getStatisticsSaveGatewayURL()
          Gets the Gateway URL to save publish statistics as a csv file

Supported API: false
static ArrayList getVetoList(String containerRef)
          List entries in Prohibition list

Supported API: false
static String[][] getVetoSearch(String name, String number, String containerRef)
          Search for EPMDoc Masters with the name numbeer in the container

Supported API: false
private static Timestamp parseJobTime(long in)
           
private static Timestamp parseWorkerTime(String in)
           
static QueryResult queryPublishStatistics(String containerRef, String filterType, String fromDate, String toDate, Locale locale)
           
static Object[] republishRepresentation(Representable object, Representation rep)
          Recreate the existing representation

Supported API: false
static Object[] republishRepresentation(Representable object, Representation rep, int jobSource)
           
static Object[] republishRepresentation(Representation rep)
          Recreate the existing representation

Supported API: false
static Object[] republishRepresentation(String repReference)
          Recreate the existing representation

Supported API: false
static Object[] republishRepresentation(String objectReference, String repReference)
          Recreate the existing representation

Supported API: false
static Object[] republishRepresentation(String objectReference, String repReference, int jobSource)
           
static void republishRepresentationsOf(Persistable p, Persistable updateFor)
           
static void republishRepresentationsOf(WTValuedMap map)
          republish representations on p that are derived from the updateFor persistable

Supported API: false
static void startMultiPublish()
           
static Boolean testPublishFilterFalse(Persistable p, Boolean publishFromDB)
           
static Boolean testPublishFilterTrue(Persistable p, Boolean publishFromDB)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILENAME_HDR

public static final String FILENAME_HDR
See Also:
Constant Field Values

NAME_HDR

public static final String NAME_HDR
See Also:
Constant Field Values

REP_NAME

public static final String REP_NAME
See Also:
Constant Field Values

REP_DESC

public static final String REP_DESC
See Also:
Constant Field Values

REP_DEFAULT

public static final String REP_DEFAULT
See Also:
Constant Field Values

OBJ_REF

public static final String OBJ_REF
See Also:
Constant Field Values

DATA_SOURCE_TYPE

public static final String DATA_SOURCE_TYPE
See Also:
Constant Field Values

CLIP_REP_STRING

public static final String CLIP_REP_STRING
See Also:
Constant Field Values

CAD_TYPE

public static final String CAD_TYPE
See Also:
Constant Field Values

CAD_FILE

public static final String CAD_FILE
See Also:
Constant Field Values

GENERATE_THUMBNAIL

public static final String GENERATE_THUMBNAIL
See Also:
Constant Field Values

FILE_NAME

public static final String FILE_NAME
See Also:
Constant Field Values

SYNCHRONOUS

public static final String SYNCHRONOUS
See Also:
Constant Field Values

DOCUMENT_PUBLISH

public static final String DOCUMENT_PUBLISH
See Also:
Constant Field Values

DOCUMENT_FILE

public static final String DOCUMENT_FILE
See Also:
Constant Field Values

CONFIG_SPEC

public static final String CONFIG_SPEC
See Also:
Constant Field Values

CUR_CONT

public static final String CUR_CONT
See Also:
Constant Field Values

WVS_PUBLISH_JOBS

public static final String WVS_PUBLISH_JOBS
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values

JOB_REQUEST_UNKNOWN

public static final int JOB_REQUEST_UNKNOWN
See Also:
Constant Field Values

JOB_REQUEST_CADPUBLISH

public static final int JOB_REQUEST_CADPUBLISH
See Also:
Constant Field Values

JOB_REQUEST_DOCPUBLISH

public static final int JOB_REQUEST_DOCPUBLISH
See Also:
Constant Field Values

JOB_REQUEST_PARTPUBLISH

public static final int JOB_REQUEST_PARTPUBLISH
See Also:
Constant Field Values

JOB_REQUEST_CADCLIENTSIDE

public static final int JOB_REQUEST_CADCLIENTSIDE
See Also:
Constant Field Values

JOB_REQUEST_CADLOCAL

public static final int JOB_REQUEST_CADLOCAL
See Also:
Constant Field Values

JOB_REQUEST_DOCLOCAL

public static final int JOB_REQUEST_DOCLOCAL
See Also:
Constant Field Values

JOB_REQUEST_PRECONVERTED

public static final int JOB_REQUEST_PRECONVERTED
See Also:
Constant Field Values

JOB_REQUEST_CLIPBOARD

public static final int JOB_REQUEST_CLIPBOARD
See Also:
Constant Field Values

JOB_REQUEST_LOADER

public static final int JOB_REQUEST_LOADER
See Also:
Constant Field Values

JOB_SOURCE_UNKNOWN

public static final int JOB_SOURCE_UNKNOWN
See Also:
Constant Field Values

JOB_SOURCE_MANUAL

public static final int JOB_SOURCE_MANUAL
See Also:
Constant Field Values

JOB_SOURCE_EVENT

public static final int JOB_SOURCE_EVENT
See Also:
Constant Field Values

JOB_SOURCE_SCHEDULE

public static final int JOB_SOURCE_SCHEDULE
See Also:
Constant Field Values

BUFSIZ

private static final int BUFSIZ
See Also:
Constant Field Values

pubTempUploadDir

private static File pubTempUploadDir

pubLogDir

private static File pubLogDir

jspDirectory

private static String jspDirectory

publishRepCADTypes

private static String publishRepCADTypes

publishRepDocTypes

private static String publishRepDocTypes

VERBOSE

private static boolean VERBOSE

wvsProperties

private static WVSProperties wvsProperties

onlyPublishClientSideViewables

private static boolean onlyPublishClientSideViewables

createPublishAudit

private static boolean createPublishAudit

csvFileDateFormat

private static String csvFileDateFormat

filterPublishMethod

private static Method filterPublishMethod
Constructor Detail

Publish

public Publish()
Method Detail

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 String objectReference,
                                 String configReference,
                                 String partConfigReference,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
objectReference - The object for which a viewable is requested
configReference - the EPM configSpec to be applied when traversing a structure
partConfigReference - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 String objectReference,
                                 String configReference,
                                 String partConfigReference,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType,
                                 String actionString)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
objectReference - The object for which a viewable is requested
configReference - the EPM configSpec to be applied when traversing a structure
partConfigReference - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
actionString - string representation of the action XML file contents
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 String objectReference,
                                 String configReference,
                                 String partConfigReference,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType,
                                 String actionString,
                                 int jobSource)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
objectReference - The object for which a viewable is requested
configReference - the EPM configSpec to be applied when traversing a structure
partConfigReference - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
actionString - string representation of the action XML file contents
jobSource - int of source that submitted the job, 0=unknown, 1=manual, 2=checkin, 3=schedule
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 String objectReference,
                                 ConfigSpec configSpec,
                                 ConfigSpec partConfigSpec,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
objectReference - The object for which a viewable is requested
configSpec - the EPM configSpec to be applied when traversing a structure
partConfigSpec - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 String objectReference,
                                 ConfigSpec configSpec,
                                 ConfigSpec partConfigSpec,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType,
                                 String actionString)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
objectReference - The object for which a viewable is requested
configSpec - the EPM configSpec to be applied when traversing a structure
partConfigSpec - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
actionString - string representation of the action XML file contents
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 String objectReference,
                                 ConfigSpec configSpec,
                                 ConfigSpec partConfigSpec,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType,
                                 String actionString,
                                 int jobSource)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
objectReference - The object for which a viewable is requested
configSpec - the EPM configSpec to be applied when traversing a structure
partConfigSpec - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
actionString - string representation of the action XML file contents
jobSource - int of source that submitted the job, 0=unknown, 1=manual, 2=checkin, 3=schedule
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 Persistable p,
                                 ConfigSpec configSpec,
                                 ConfigSpec partConfigSpec,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
p - The object for which a viewable is requested
configSpec - the EPM configSpec to be applied when traversing a structure
partConfigSpec - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 Persistable p,
                                 ConfigSpec configSpec,
                                 ConfigSpec partConfigSpec,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType,
                                 String actionString)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
p - The object for which a viewable is requested
configSpec - the EPM configSpec to be applied when traversing a structure
partConfigSpec - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
actionString - string representation of the action XML file contents
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

doPublish

public static Object[] doPublish(boolean viewableLink,
                                 boolean forceRepublish,
                                 Persistable p,
                                 ConfigSpec configSpec,
                                 ConfigSpec partConfigSpec,
                                 boolean defaultRep,
                                 String repName,
                                 String repDescription,
                                 int structureType,
                                 String actionString,
                                 int jobSource)
First checks to see if there is viewable data which is suitable if so this is returned. Otherwise publish job is created and submitted to a processing queue.

Supported API: false

Parameters:
viewableLink - If TRUE the view information is returned
forceRepublish - If TRUE re-prublishes the data even if it exists
p - The object for which a viewable is requested
configSpec - the EPM configSpec to be applied when traversing a structure
partConfigSpec - the Part configSpec to be applied when traversing a structure
defaultRep - flag to indicate this should be created as the default representation
repName - name for created representation
repDescription - description for created representation
structureType - type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
actionString - string representation of the action XML file contents
jobSource - int of source that submitted the job, 0=unknown, 1=manual, 2=checkin, 3=schedule
Returns:
Object[] arg0 Boolean denoting success of request arg1 The URL to the viewable information content arg2 The object reference of the viewable information

startMultiPublish

public static void startMultiPublish()

endMultiPublish

public static void endMultiPublish()

testPublishFilterTrue

public static Boolean testPublishFilterTrue(Persistable p,
                                            Boolean publishFromDB)

testPublishFilterFalse

public static Boolean testPublishFilterFalse(Persistable p,
                                             Boolean publishFromDB)

republishRepresentation

public static Object[] republishRepresentation(String repReference)
Recreate the existing representation

Supported API: false

Parameters:
repReference - the Representation
Returns:
Object[] success or failure

republishRepresentation

public static Object[] republishRepresentation(Representation rep)
Recreate the existing representation

Supported API: false

Parameters:
rep - the Representation
Returns:
Object[] success or failure

republishRepresentation

public static Object[] republishRepresentation(String objectReference,
                                               String repReference)
Recreate the existing representation

Supported API: false

Parameters:
objectReference - the Representable
repReference - the Representation
Returns:
Object[] success or failure

republishRepresentation

public static Object[] republishRepresentation(String objectReference,
                                               String repReference,
                                               int jobSource)

republishRepresentation

public static Object[] republishRepresentation(Representable object,
                                               Representation rep)
Recreate the existing representation

Supported API: false

Parameters:
object - the Representable
rep - the Representation
Returns:
Object[] success or failure

republishRepresentation

public static Object[] republishRepresentation(Representable object,
                                               Representation rep,
                                               int jobSource)

republishRepresentationsOf

public static void republishRepresentationsOf(WTValuedMap map)
                                       throws Exception
republish representations on p that are derived from the updateFor persistable

Supported API: false

Throws:
Exception

republishRepresentationsOf

public static void republishRepresentationsOf(Persistable p,
                                              Persistable updateFor)

getActionString

public static String getActionString(File actionFile)
get the action file as a string

Supported API: false

Parameters:
actionFile - the action file

getPublishRepGatewayURL

public static String getPublishRepGatewayURL()
Gets the Gateway URL to upload a new representation

Supported API: false

Returns:
String the gateway URL

getPublishRepCADTypes

public static String getPublishRepCADTypes(Locale locale)
Gets HTLM OPTION fagments that lists the EPMAuthoringAppType's that can be used to load/convert CAD data in new representation wizard

Supported API: false

Returns:
String the HTML OPTION fragment

getCADRepList

public static String[] getCADRepList(String objRef,
                                     ConfigSpec cs,
                                     Locale locale)
Gets the potential list of CAD "reps" that the user can choose to publish. Useg by the new Representation wizard

Supported API: false

Returns:
String[] of the reps names. [0] is the display message. [1] - [n] are the rep names, if known. User can still type names in. If return is null then there can be no reps.

getCADRepList

public static String[] getCADRepList(Persistable p,
                                     ConfigSpec cs,
                                     Locale locale)

getDocumentPublishableFileList

public static String getDocumentPublishableFileList(String objRef)
Gets HTLM OPTION fagments that lists a WTDocuments publishable files if the input object is not a WTDocument, return null, if the WTDocument dooes not have an publishable file, returns ""

Supported API: false

Returns:
String the HTML OPTION fragment

doPublishRep

public static void doPublishRep(HTTPRequest request,
                                HTTPResponse response,
                                InputStream is)
                         throws WTException,
                                PropertyVetoException,
                                IOException
Process the saving of a representation from preconverted data this is called with post from a multipart/form-data html form

Supported API: false

Throws:
WTException
PropertyVetoException
IOException

doPublishRep

public static void doPublishRep(HTTPRequest request,
                                HTTPResponse response)
                         throws WTException,
                                PropertyVetoException,
                                IOException
Throws:
WTException
PropertyVetoException
IOException

createVeto

public static Boolean createVeto(String number,
                                 String containerRef,
                                 boolean thumbnailOnly,
                                 boolean isPosAssy,
                                 String desc)
Create an entry in Prohibition list

Supported API: false

Parameters:
number - EPMDoc number to add
containerRef - container EPMDoc is in
thumbnailOnly - only probibit thumbnails not publishing
desc - description of why this is probihited
Returns:
success

createVeto

public static boolean createVeto(Persistable p,
                                 boolean thumbnailOnly,
                                 boolean isPosAssy,
                                 String desc)
Create an entry in Prohibition list

Supported API: false

Parameters:
p - the persistable
thumbnailOnly - only probibit thumbnails not publishing
desc - description of why this is probihited
Returns:
success

deleteVeto

public static void deleteVeto(String objref)
Delete an entry from Prohibition list

Supported API: false

Parameters:
objref - the probibition object

getVetoList

public static ArrayList getVetoList(String containerRef)
List entries in Prohibition list

Supported API: false

Parameters:
containerRef - container who's objects should be included in the list
Returns:
ArrayList containing String[] of data.

getVetoSearch

public static String[][] getVetoSearch(String name,
                                       String number,
                                       String containerRef)
Search for EPMDoc Masters with the name numbeer in the container

Supported API: false

Parameters:
name - EPMDoc Master Name
containerRef - container
Returns:
String[] of EPMDOc numbers

createPublishAudit

public static boolean createPublishAudit(Persistable p,
                                         boolean success,
                                         PublishJob publishJob)
Create an entry in PublishAudit

Supported API: false

Parameters:
p - the persistable
success - if job was successful or not
Returns:
publishJob the publish job

parseJobTime

private static Timestamp parseJobTime(long in)

parseWorkerTime

private static Timestamp parseWorkerTime(String in)

getStatisticsSaveGatewayURL

public static String getStatisticsSaveGatewayURL()
Gets the Gateway URL to save publish statistics as a csv file

Supported API: false

Returns:
String the gateway URL

getStatisticsList

public static List[] getStatisticsList(String containerRef,
                                       String filterType,
                                       String fromDate,
                                       String toDate,
                                       Locale locale)
                                throws WTException,
                                       PropertyVetoException
List information for publish statistics summary

Supported API: false

Parameters:
containerRef - container who's publish summaries should be included
Returns:
ArrayList containing String[] of data
Throws:
WTException
PropertyVetoException

doStatisticsSave

public static void doStatisticsSave(HTTPRequest request,
                                    HTTPResponse response)
                             throws WTException,
                                    PropertyVetoException,
                                    IOException
Process the saving of a statistics csv file

Supported API: false

Throws:
WTException
PropertyVetoException
IOException

formatTime

private static String formatTime(Timestamp t,
                                 Locale locale)

queryPublishStatistics

public static QueryResult queryPublishStatistics(String containerRef,
                                                 String filterType,
                                                 String fromDate,
                                                 String toDate,
                                                 Locale locale)
                                          throws WTException,
                                                 WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException