|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.server.publish.Publish
The server side method to submit a publish job.
Supported API: false
Extendable: false
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 |
public static final String FILENAME_HDR
public static final String NAME_HDR
public static final String REP_NAME
public static final String REP_DESC
public static final String REP_DEFAULT
public static final String OBJ_REF
public static final String DATA_SOURCE_TYPE
public static final String CLIP_REP_STRING
public static final String CAD_TYPE
public static final String CAD_FILE
public static final String GENERATE_THUMBNAIL
public static final String FILE_NAME
public static final String SYNCHRONOUS
public static final String DOCUMENT_PUBLISH
public static final String DOCUMENT_FILE
public static final String CONFIG_SPEC
public static final String CUR_CONT
public static final String WVS_PUBLISH_JOBS
public static final String COMMA
public static final int JOB_REQUEST_UNKNOWN
public static final int JOB_REQUEST_CADPUBLISH
public static final int JOB_REQUEST_DOCPUBLISH
public static final int JOB_REQUEST_PARTPUBLISH
public static final int JOB_REQUEST_CADCLIENTSIDE
public static final int JOB_REQUEST_CADLOCAL
public static final int JOB_REQUEST_DOCLOCAL
public static final int JOB_REQUEST_PRECONVERTED
public static final int JOB_REQUEST_CLIPBOARD
public static final int JOB_REQUEST_LOADER
public static final int JOB_SOURCE_UNKNOWN
public static final int JOB_SOURCE_MANUAL
public static final int JOB_SOURCE_EVENT
public static final int JOB_SOURCE_SCHEDULE
private static final int BUFSIZ
private static File pubTempUploadDir
private static File pubLogDir
private static String jspDirectory
private static String publishRepCADTypes
private static String publishRepDocTypes
private static boolean VERBOSE
private static WVSProperties wvsProperties
private static boolean onlyPublishClientSideViewables
private static boolean createPublishAudit
private static String csvFileDateFormat
private static Method filterPublishMethod
Constructor Detail |
public Publish()
Method Detail |
public static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, String configReference, String partConfigReference, boolean defaultRep, String repName, String repDescription, int structureType)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsobjectReference
- The object for which a viewable is requestedconfigReference
- the EPM configSpec to be applied when traversing a structurepartConfigReference
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
public static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, String configReference, String partConfigReference, boolean defaultRep, String repName, String repDescription, int structureType, String actionString)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsobjectReference
- The object for which a viewable is requestedconfigReference
- the EPM configSpec to be applied when traversing a structurepartConfigReference
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTSactionString
- string representation of the action XML file contents
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)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsobjectReference
- The object for which a viewable is requestedconfigReference
- the EPM configSpec to be applied when traversing a structurepartConfigReference
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTSactionString
- string representation of the action XML file contentsjobSource
- int of source that submitted the job, 0=unknown, 1=manual, 2=checkin, 3=schedule
public static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsobjectReference
- The object for which a viewable is requestedconfigSpec
- the EPM configSpec to be applied when traversing a structurepartConfigSpec
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
public static Object[] doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType, String actionString)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsobjectReference
- The object for which a viewable is requestedconfigSpec
- the EPM configSpec to be applied when traversing a structurepartConfigSpec
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTSactionString
- string representation of the action XML file contents
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)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsobjectReference
- The object for which a viewable is requestedconfigSpec
- the EPM configSpec to be applied when traversing a structurepartConfigSpec
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTSactionString
- string representation of the action XML file contentsjobSource
- int of source that submitted the job, 0=unknown, 1=manual, 2=checkin, 3=schedule
public static Object[] doPublish(boolean viewableLink, boolean forceRepublish, Persistable p, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsp
- The object for which a viewable is requestedconfigSpec
- the EPM configSpec to be applied when traversing a structurepartConfigSpec
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTS
public static Object[] doPublish(boolean viewableLink, boolean forceRepublish, Persistable p, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType, String actionString)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsp
- The object for which a viewable is requestedconfigSpec
- the EPM configSpec to be applied when traversing a structurepartConfigSpec
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTSactionString
- string representation of the action XML file contents
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)
viewableLink
- If TRUE the view information is returnedforceRepublish
- If TRUE re-prublishes the data even if it existsp
- The object for which a viewable is requestedconfigSpec
- the EPM configSpec to be applied when traversing a structurepartConfigSpec
- the Part configSpec to be applied when traversing a structuredefaultRep
- flag to indicate this should be created as the default representationrepName
- name for created representationrepDescription
- description for created representationstructureType
- type of structure to traverse, eg. EDRHelper.EPM or EDRHelper.EPM_PLUS_PARTSactionString
- string representation of the action XML file contentsjobSource
- int of source that submitted the job, 0=unknown, 1=manual, 2=checkin, 3=schedule
public static void startMultiPublish()
public static void endMultiPublish()
public static Boolean testPublishFilterTrue(Persistable p, Boolean publishFromDB)
public static Boolean testPublishFilterFalse(Persistable p, Boolean publishFromDB)
public static Object[] republishRepresentation(String repReference)
repReference
- the Representation
public static Object[] republishRepresentation(Representation rep)
rep
- the Representation
public static Object[] republishRepresentation(String objectReference, String repReference)
objectReference
- the RepresentablerepReference
- the Representation
public static Object[] republishRepresentation(String objectReference, String repReference, int jobSource)
public static Object[] republishRepresentation(Representable object, Representation rep)
object
- the Representablerep
- the Representation
public static Object[] republishRepresentation(Representable object, Representation rep, int jobSource)
public static void republishRepresentationsOf(WTValuedMap map) throws Exception
Exception
public static void republishRepresentationsOf(Persistable p, Persistable updateFor)
public static String getActionString(File actionFile)
actionFile
- the action filepublic static String getPublishRepGatewayURL()
public static String getPublishRepCADTypes(Locale locale)
public static String[] getCADRepList(String objRef, ConfigSpec cs, Locale locale)
public static String[] getCADRepList(Persistable p, ConfigSpec cs, Locale locale)
public static String getDocumentPublishableFileList(String objRef)
public static void doPublishRep(HTTPRequest request, HTTPResponse response, InputStream is) throws WTException, PropertyVetoException, IOException
WTException
PropertyVetoException
IOException
public static void doPublishRep(HTTPRequest request, HTTPResponse response) throws WTException, PropertyVetoException, IOException
WTException
PropertyVetoException
IOException
public static Boolean createVeto(String number, String containerRef, boolean thumbnailOnly, boolean isPosAssy, String desc)
number
- EPMDoc number to addcontainerRef
- container EPMDoc is inthumbnailOnly
- only probibit thumbnails not publishingdesc
- description of why this is probihited
public static boolean createVeto(Persistable p, boolean thumbnailOnly, boolean isPosAssy, String desc)
p
- the persistablethumbnailOnly
- only probibit thumbnails not publishingdesc
- description of why this is probihited
public static void deleteVeto(String objref)
objref
- the probibition objectpublic static ArrayList getVetoList(String containerRef)
containerRef
- container who's objects should be included in the list
public static String[][] getVetoSearch(String name, String number, String containerRef)
name
- EPMDoc Master NamecontainerRef
- container
public static boolean createPublishAudit(Persistable p, boolean success, PublishJob publishJob)
p
- the persistablesuccess
- if job was successful or not
private static Timestamp parseJobTime(long in)
private static Timestamp parseWorkerTime(String in)
public static String getStatisticsSaveGatewayURL()
public static List[] getStatisticsList(String containerRef, String filterType, String fromDate, String toDate, Locale locale) throws WTException, PropertyVetoException
containerRef
- container who's publish summaries should be included
WTException
PropertyVetoException
public static void doStatisticsSave(HTTPRequest request, HTTPResponse response) throws WTException, PropertyVetoException, IOException
WTException
PropertyVetoException
IOException
private static String formatTime(Timestamp t, Locale locale)
public static QueryResult queryPublishStatistics(String containerRef, String filterType, String fromDate, String toDate, Locale locale) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |