Package com.ptc.wvs.common.ui
Class PublisherAction
java.lang.Object
com.ptc.wvs.common.ui.ProcessingAction
com.ptc.wvs.common.ui.PublisherAction
Helper class for creating the action string that can be passed as an argument to Publisher.doPublish methods. The
action string contains specific options for the publishing job.
The format of the action string is: name1=value1,name2=value2
The use of the toString method will return the action string with the correct format. Note: as "=" and "," are used
as separators, name and value can not contain these characters and they will be removed.
The following is an example of how to use the PublisherAction:
<param-set-name> Optional. <param-set-name> Optional.
Supported API: true
Extendable: false
PublisherAction publisherAction = new PublisherAction();
publisherAction.addAction(PublisherAction.POSASSY, "true");
publisherAction.addAction(PublisherAction.QUEUEPRIORITY, "H");
Publisher publisher = new Publisher();
publisher.doPublish(false, false, objRef, configRef, partConfigRef,
false, "repname", "repdesc", Publisher.PART, PublisherAction.toString());
The following is the grammar for the PUBRULENAME action.
pubrulename=Supported API: true
Extendable: false
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAction String Name for the CAD Part name to be used Value can be: a CAD Part name that exists in the CAD data
Supported API: truestatic final StringAction String Name for the CAD Form name to be used Value can be: a CAD Form name that exists in the CAD data
Supported API: truestatic final StringAction String Name for the file on a WTDocument to be published If not specified all files will be published, assuming they have a worker associated.static final StringAction String Name for setting how preconverted EDZ data will be published Value can be: "false" - use preconverted EDZ file if it exists (default) "true" - ignore any preconverted EDZ file
Supported API: truestatic final StringAction String Name for the "job info string" to be passed to the job Value can be: a string which must not contain the '=' or ',' characters The string is written to the file "wvsinfo.properties", as the property "jobinfo".static final StringAction String Name for setting publishing as positioning assembly Value can be: "false" - publish normally (default) "true" - publish as a positioning assembly
Supported API: truestatic final StringAction String Name for setting the processing type for the publish job.static final StringAction String Name for setting how referenced data will be published Value can be: "false" - do not publish dependents (default) "true" - publish dependents "republish" - republish dependents
Supported API: trueFields inherited from class com.ptc.wvs.common.ui.ProcessingAction
QUEUEPRIORITY, QUEUESET -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newPublisherActionobject.PublisherAction(String name, String value) Create a newPublisherActionobject, specifying an action Neither name or value can be null
Supported API: true -
Method Summary
Methods inherited from class com.ptc.wvs.common.ui.ProcessingAction
addAction, getActions, isSet, isSynchronous, removeSynchronous, toString
-
Field Details
-
PROCESSTYPE
Action String Name for setting the processing type for the publish job. Value can be: "0" - publish process marked out of date (default) "1" - only publish ie. no mark out of date "2" - only mark out of date, ie no publish
Supported API: true- See Also:
-
REFERENCEDFILES
Action String Name for setting how referenced data will be published Value can be: "false" - do not publish dependents (default) "true" - publish dependents "republish" - republish dependents
Supported API: true- See Also:
-
POSASSY
Action String Name for setting publishing as positioning assembly Value can be: "false" - publish normally (default) "true" - publish as a positioning assembly
Supported API: true- See Also:
-
CADREPNAME
Action String Name for the CAD Form name to be used Value can be: a CAD Form name that exists in the CAD data
Supported API: true- See Also:
-
CADINSTNAME
Action String Name for the CAD Part name to be used Value can be: a CAD Part name that exists in the CAD data
Supported API: true- See Also:
-
DOCUMENTFILE
Action String Name for the file on a WTDocument to be published If not specified all files will be published, assuming they have a worker associated. Value can be: a file name which is content on the WTDocument
Supported API: true- See Also:
-
JOBINFO
Action String Name for the "job info string" to be passed to the job Value can be: a string which must not contain the '=' or ',' characters The string is written to the file "wvsinfo.properties", as the property "jobinfo". This file can be read by a worker custom hook or the generic worker etc
Supported API: true- See Also:
-
IGNOREPRECONVERTEDEDZ
Action String Name for setting how preconverted EDZ data will be published Value can be: "false" - use preconverted EDZ file if it exists (default) "true" - ignore any preconverted EDZ file
Supported API: true- See Also:
-
-
Constructor Details
-
PublisherAction
public PublisherAction()Create a newPublisherActionobject.
Supported API: true -
PublisherAction
Create a newPublisherActionobject, specifying an action Neither name or value can be null
Supported API: true- Parameters:
name- action namevalue- action value
-