Package com.ptc.wvs.common.ui
Class Publisher
java.lang.Object
com.ptc.wvs.common.ui.Publisher
- All Implemented Interfaces:
Serializable
Methods associated with the submission of data to be published by WVS
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intStructure traversal type for publishing EPM is EPMDocument structure traversal, for when publishing EPMDocuments
Supported API: truestatic final intStructure traversal type for publishing EPM_PLUS_PART is EPMDocument structure traversal, for when publishing EPMDocuments and including non-built WTParts in the result
Supported API: truestatic final intCAD Structure traversal type for publishing EPMDocuments to provide same result as the Visualization Tab
Supported API: truestatic final intStructure traversal type for publishing NONE is no structure traversal, for when publishnig WTDocuments for example
Supported API: truestatic final intStructure traversal type for publishing PART is WTPart structure traversal, for when publishing WTPart structure
Supported API: truestatic final intStructure traversal type for publishing PART_AND_EPM is Part structure traversal, for when publishing Parts and including associated EPMDocuments in the result
Supported API: true -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoPublish(boolean viewableLink, boolean forceRepublish, String objectReference, NavigationCriteria navigationCriteria, NavigationCriteria partNavigationCriteria, boolean defaultRep, String repName, String repDescription, int structureType, String actionString, int jobSource) Attempts to publish a Representable generating a RepresentationbooleandoPublish(boolean viewableLink, boolean forceRepublish, String objectReference, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType, String actionString, int jobSource) Attempts to publish a Representable generating a RepresentationReturns an HTML fragment used to launch ProductView from the last data to be set by a call to doPublish, when viewableLink was true
Supported API: trueReturns an object reference of the Represetation generated from the last call to doPublish, when viewableLink was true
Supported API: truebooleanDetermines if access was denied for the publish request, especially when the publish request was not successful.booleanDetermines if job already exists in queue
Supported API: truebooleanReturns the status to indicate that the EPMDocument is marked as not publishable following a doPublish or republishRepresentation
Supported API: truebooleanrepublishRepresentation(String objectReference, String repRef, int jobSource) Attempts to republish an existing Representation of a Representatable
-
Field Details
-
NONE
public static final int NONEStructure traversal type for publishing NONE is no structure traversal, for when publishnig WTDocuments for example
Supported API: true- See Also:
-
EPM
public static final int EPMStructure traversal type for publishing EPM is EPMDocument structure traversal, for when publishing EPMDocuments
Supported API: true- See Also:
-
PART
public static final int PARTStructure traversal type for publishing PART is WTPart structure traversal, for when publishing WTPart structure
Supported API: true- See Also:
-
EPM_PLUS_PARTS
public static final int EPM_PLUS_PARTSStructure traversal type for publishing EPM_PLUS_PART is EPMDocument structure traversal, for when publishing EPMDocuments and including non-built WTParts in the result
Supported API: true- See Also:
-
PART_AND_EPM
public static final int PART_AND_EPMStructure traversal type for publishing PART_AND_EPM is Part structure traversal, for when publishing Parts and including associated EPMDocuments in the result
Supported API: true- See Also:
-
EPM_WC
public static final int EPM_WCCAD Structure traversal type for publishing EPMDocuments to provide same result as the Visualization Tab
Supported API: true- See Also:
-
-
Constructor Details
-
Publisher
public Publisher()No-arg constructor for this Publisher class.
Supported API: true
-
-
Method Details
-
getViewableLink
Returns an HTML fragment used to launch ProductView from the last data to be set by a call to doPublish, when viewableLink was true
Supported API: true- Returns:
- String HTML fragment to launch ProductView
-
getViewableObjRef
Returns an object reference of the Represetation generated from the last call to doPublish, when viewableLink was true
Supported API: true- Returns:
- String objectreference
-
isMarkedNotPublishable
public boolean isMarkedNotPublishable()Returns the status to indicate that the EPMDocument is marked as not publishable following a doPublish or republishRepresentation
Supported API: true- Returns:
- boolean not publishable flag
-
isAccessDenied
public boolean isAccessDenied()Determines if access was denied for the publish request, especially when the publish request was not successful.
Supported API: true- Returns:
- true if access was denied. Returns false if access was granted.
-
isJobAlreadyExist
public boolean isJobAlreadyExist()Determines if job already exists in queue
Supported API: true- Returns:
- true if already exists
-
doPublish
public boolean doPublish(boolean viewableLink, boolean forceRepublish, String objectReference, ConfigSpec configSpec, ConfigSpec partConfigSpec, boolean defaultRep, String repName, String repDescription, int structureType, String actionString, int jobSource) Attempts to publish a Representable generating a Representation- Parameters:
viewableLink- If true and the data has already been published, the viewable data will be passed back to allow access by getViewableLinkforceRepublish- Overwrites an existing representation should one already existobjectReference- Reference of the Representable to be publishedconfigSpec- The EPM Config Spec to be used during the product structure tree walk, if null, as-stored or latest is used.partConfigSpec- The Part Config Spec to be used during the product structure tree walk, if null, latest is used.defaultRep- Should the created representation be the default or not. The first representation in always default.repName- Name of The representation to be created, if null default name will be usedrepDescription- Description of the representation to be created , if null no description will be usedstructureType- The type of structure walk to be performed, NONE, EPM, PART, EPM_PLUS_PARTSactionString- Option String, see PublisherAction class, if no options can be nulljobSource- Source that submitted the job, 0=unknown, 1=manual, 2=checkin, 3=schedule- Returns:
- boolean true if the representation that the publish job would create already exists (and forceRepublish is false). In this case if viewableLink is true
then the information to view the existing representation can be obtained with getViewableLink(). If the publish job has not be submitted because
the object being publish was marked not to be published then isMarkedNotPublishable() will return true. false if the business object does not have
a representation already existed.
Supported API: true
-
republishRepresentation
Attempts to republish an existing Representation of a Representatable- Parameters:
objectReference- Reference of the Representable to be publishedrefRef- Reference of the RepresentationjobSource- Source that submitted the job, 0=unknown, 1=manual, 2=checkin, 3=schedule- Returns:
- boolean true if successful
Supported API: true
-