com.ptc.windchill.cadx.multirevise
Class ReviseAllFormTaskDelegate
java.lang.Object
wt.templateutil.processor.FormTaskDelegate
com.ptc.windchill.cadx.multirevise.ReviseAllFormTaskDelegate
- All Implemented Interfaces:
- ContextHolder, Serializable
- public class ReviseAllFormTaskDelegate
- extends FormTaskDelegate
- implements Serializable
Supported API: true
Extendable: false
- See Also:
- Serialized Form
Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Method Summary |
private void |
debugPrint(RevisionControlled vcObj)
|
private HashMap |
getAllWSEPMDocuments(EPMWorkspace activeWS)
|
private static Folder |
getFolderFromDisplayLocation(String folderDisplayName,
boolean isFolderPathConversionReqd,
WTContainer contextContainer)
(Method copied from CheckinFormTaskDelegate, temp fix, needs a complete solution as mentioned in the note below)
get WC folder object from folder "display" name
This method is special for baseline because of following reasons
1 - It is too late to change the code so that instead of sending from client to server the folder path we send the folder oid
2.1 - If current context is Windchill PDM, the folder passed will not require conversion
2.2 - If current context is either Windchill PDMLink or PJL, the folder path will require conversion and will start with //... |
private int |
getInAllSelectedObjects(RevisionControlled obj,
Vector v)
|
private RevisionControlled |
getObjectFromOid(String oid)
|
private ReviseOptions |
getReviseoptionsForAssocWTParts(RevisionControlled vcObj,
Folder reviseFolder,
LifeCycleTemplateMaster lifeCycle,
TeamTemplate teamTemplate)
|
private void |
listRevisedObjects(Vector revisedObjs)
|
void |
processAction(ContentHTTPStream contentStream)
Deprecated. |
private QueryResult |
reviseObjects(Vector inputObjects)
|
private Versioned |
revisePartAlone(Versioned originalVersion,
TeamTemplate teamTemplate,
ReviseOptions.ObjectOptions options)
Note: This method may be moved to a common package for better reuse. |
private ReviseOptions |
updateReviseOptions(RevisionControlled vcObj,
Folder reviseFolder,
LifeCycleTemplateMaster lifeCycle,
TeamTemplate teamTemplate)
|
private void |
updateWorkSpaceAfterRevise(QueryResult result,
String activeWS,
HashMap wsDocs)
|
Methods inherited from class wt.templateutil.processor.FormTaskDelegate |
addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, deleteFormDataFromSession, getContextAction, getContextClassName, getContextObj, getContextProperties, getFormData, getQueryData, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getState, getStatus, saveFormDataInSession, setContextAction, setContextClassName, setContextObj, setContextProperties, setFormData, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setState, setStatus, switchPages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
downloadFlag
private String downloadFlag
VERBOSE
private static boolean VERBOSE
ReviseAllFormTaskDelegate
public ReviseAllFormTaskDelegate()
processAction
public void processAction(ContentHTTPStream contentStream)
throws Exception
- Deprecated.
- Processed the desired action and then updates the state so that
the desired response page can be generated.
Use the addToResponse
methods to pass back messages on the status/results of the action.
Supported API: true
- Specified by:
processAction
in class FormTaskDelegate
- Parameters:
contentStream
-
- Throws:
Exception
reviseObjects
private QueryResult reviseObjects(Vector inputObjects)
updateWorkSpaceAfterRevise
private void updateWorkSpaceAfterRevise(QueryResult result,
String activeWS,
HashMap wsDocs)
throws Exception
- Throws:
Exception
getInAllSelectedObjects
private int getInAllSelectedObjects(RevisionControlled obj,
Vector v)
throws WTException
- Throws:
WTException
getObjectFromOid
private RevisionControlled getObjectFromOid(String oid)
throws WTException
- Throws:
WTException
revisePartAlone
private Versioned revisePartAlone(Versioned originalVersion,
TeamTemplate teamTemplate,
ReviseOptions.ObjectOptions options)
throws WTException,
WTPropertyVetoException
- Note: This method may be moved to a common package for better reuse.
But for now it is kept here and is a copy from the original method in revise.
This method is used to revise parts alone i.e. it does not revise the documents
associated with the part being revised
- Throws:
WTException
WTPropertyVetoException
listRevisedObjects
private void listRevisedObjects(Vector revisedObjs)
getAllWSEPMDocuments
private HashMap getAllWSEPMDocuments(EPMWorkspace activeWS)
throws WTException
- Throws:
WTException
updateReviseOptions
private ReviseOptions updateReviseOptions(RevisionControlled vcObj,
Folder reviseFolder,
LifeCycleTemplateMaster lifeCycle,
TeamTemplate teamTemplate)
debugPrint
private void debugPrint(RevisionControlled vcObj)
getReviseoptionsForAssocWTParts
private ReviseOptions getReviseoptionsForAssocWTParts(RevisionControlled vcObj,
Folder reviseFolder,
LifeCycleTemplateMaster lifeCycle,
TeamTemplate teamTemplate)
throws WTException
- Throws:
WTException
getFolderFromDisplayLocation
private static Folder getFolderFromDisplayLocation(String folderDisplayName,
boolean isFolderPathConversionReqd,
WTContainer contextContainer)
throws WTException
- (Method copied from CheckinFormTaskDelegate, temp fix, needs a complete solution as mentioned in the note below)
get WC folder object from folder "display" name
This method is special for baseline because of following reasons
1 - It is too late to change the code so that instead of sending from client to server the folder path we send the folder oid
2.1 - If current context is Windchill PDM, the folder passed will not require conversion
2.2 - If current context is either Windchill PDMLink or PJL, the folder path will require conversion and will start with //...
- Throws:
WTException