com.ptc.hli.ecad.behaviors
Class CheckinAction
java.lang.Object
com.ptc.hli.ecad.behaviors.AbstractHLIAction
com.ptc.hli.ecad.behaviors.CheckinAction
- Direct Known Subclasses:
- CheckinCheckoutAction
- public class CheckinAction
- extends AbstractHLIAction
Fields inherited from class com.ptc.hli.ecad.behaviors.AbstractHLIAction |
children, CONTEXT_ATTR, CONTEXT_ATTR_VALUE, DOWNLOAD_PATH_ATTR, DOWNLOAD_PATH_ATTR_VALUE, FALSE_ATTR_VALUE, NUMBER_ATTR, NUMBER_ATTR_VALUE, parameters, parent, REVISION_ATTR, REVISION_ATTR_VALUE, SOLUTION_ATTR, SOLUTION_ATTR_VALUE, TRUE_ATTR_VALUE, XML_FILE_NAME_ATTR, XML_FILE_NAME_ATTR_VALUE, ZIP_FILE_NAME_ATTR, ZIP_FILE_NAME_ATTR_VALUE |
Method Summary |
void |
executeEnd()
|
void |
executeStart()
|
private static boolean |
fileIsReady(String fileName)
|
private static HashMap |
getCheckedOutECADDocs(Baseline baseline)
|
protected void |
hook(Vector objectsToCheckin,
String wsname)
|
private static void |
invokeAppendBlockToFileInCache(RemoteMethodServer methodServer,
String serverFileName,
byte[] block)
|
private static String |
invokeCreateFileInCache(RemoteMethodServer methodServer,
String shortFileName)
|
private static Boolean |
invokeEcadServerCheckin(RemoteMethodServer methodServer,
byte[] xmlFileData,
String zipFileName,
Vector objectsToCheckin,
EPMAsStoredConfig storedConfig,
EPMCheckpoint checkPoint)
|
private void |
serverInterface()
|
private static String |
streamFileToServer(RemoteMethodServer methodServer,
String localFileName)
|
private static byte[] |
toByteArray(InputStream inputStream)
|
Methods inherited from class com.ptc.hli.ecad.behaviors.AbstractHLIAction |
addChild, destroy, getBaseline, getBehaviorParameter, getBehaviorRoot, getEPMDocument, getName, getParameter, getParent, getTargetEPMDocument, getWorkspaceName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER_CLASS
private static final String SERVER_CLASS
SERVER
private static final boolean SERVER
ECADHLIRESOURCE
private static final String ECADHLIRESOURCE
- See Also:
- Constant Field Values
worker
private XMLtoWindchillAdaptor worker
storedConfig
private EPMAsStoredConfig storedConfig
xmlFileName
private String xmlFileName
zipFileName
private String zipFileName
CheckinAction
public CheckinAction(HashMap _parameters)
executeStart
public void executeStart()
throws WTException
- Overrides:
executeStart
in class AbstractHLIAction
- Throws:
WTException
executeEnd
public void executeEnd()
throws WTException,
WTPropertyVetoException
- Overrides:
executeEnd
in class AbstractHLIAction
- Throws:
WTException
WTPropertyVetoException
hook
protected void hook(Vector objectsToCheckin,
String wsname)
throws WTException
- Throws:
WTException
getCheckedOutECADDocs
private static HashMap getCheckedOutECADDocs(Baseline baseline)
throws WTException
- Throws:
WTException
fileIsReady
private static boolean fileIsReady(String fileName)
serverInterface
private void serverInterface()
throws WTException,
WTPropertyVetoException
- Throws:
WTException
WTPropertyVetoException
streamFileToServer
private static String streamFileToServer(RemoteMethodServer methodServer,
String localFileName)
throws WTException
- Throws:
WTException
invokeCreateFileInCache
private static String invokeCreateFileInCache(RemoteMethodServer methodServer,
String shortFileName)
throws WTException
- Throws:
WTException
invokeAppendBlockToFileInCache
private static void invokeAppendBlockToFileInCache(RemoteMethodServer methodServer,
String serverFileName,
byte[] block)
throws WTException
- Throws:
WTException
invokeEcadServerCheckin
private static Boolean invokeEcadServerCheckin(RemoteMethodServer methodServer,
byte[] xmlFileData,
String zipFileName,
Vector objectsToCheckin,
EPMAsStoredConfig storedConfig,
EPMCheckpoint checkPoint)
throws WTException
- Throws:
WTException
toByteArray
private static byte[] toByteArray(InputStream inputStream)
throws Exception
- Throws:
Exception