|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wgmecad.ecad.ClientInterface
Field Summary | |
private static ArgumentMap |
argMap
|
private static ArgumentRegister |
argReg
|
private static String |
IGNORE_THIS_ATTRIBUTE
|
(package private) static org.apache.log4j.Logger |
logger
|
private static SecondaryArgumentMap |
sargMap
|
private static SecondaryArgumentRegister |
sargReg
|
Constructor Summary | |
ClientInterface()
|
Method Summary | |
static void |
addAttributes(DocCreationHelper dch,
Element document,
String type,
ECADAttributes attributes,
Properties attributeProperties)
iterate thru all the ECADAttributDef's for the document type and then create an appropriate Integer, String or Double value based on the attributes type in the ECADAttributDef, set the value to what is read in from the properties file, and then set these values on the document. |
private void |
addAttributesToAllDocs(DocCreationHelper dch,
Element ecadDesign,
Properties attributeProperties,
ECADAttributes attributes)
|
private void |
addBOMsToDOM(Collection asm_nums,
DocCreationHelper dch,
Element ecadDesign,
File bomFile,
String asm_number)
add the BOMs to all the variants |
private void |
addBOMToAssembly(DocCreationHelper dch,
Element ecadDesign,
File bomFile,
String asm_number)
|
void |
cancelCheckout(String functionName,
DesignAll design)
|
private boolean |
checkExistence(File file)
|
void |
checkin(String functionName,
File tempdirpath,
File attrdef_file,
File[] attributeFiles,
File tarFile,
WindchillIntegrationManager im,
ProcessManager pm,
DesignAll design,
boolean checkout)
create new design in Windchill, or checkin existing design. |
private void |
checkoutLegacy(String functionName,
DesignAll design,
File targetPath,
String ecadToolHLI)
|
void |
createnew(String functionName,
File tempdirpath,
File attrdef_file,
File[] attributeFiles,
File tarFile,
WindchillIntegrationManager im,
ProcessManager pm,
DesignAll design)
create new design in Windchill, or checkin existing design. |
private void |
createVariantAssemblyElements(Collection asm_nums,
DocCreationHelper dch,
Element ecadDesign,
DesignAll dsn)
create elements within the DOM for the variant assemblies |
void |
download(String functionName,
DesignAll design,
File targetPath,
boolean checkout)
|
void |
download(String functionName,
DesignAll design,
File boardPath,
File schPath,
boolean checkout)
|
private static String |
fixInvalidValues(ECADAttributesDef attributeDefinition,
String value)
for Integer or Float attributes, make sure that we can construct the appropriate types, and if not, then reset the values to 0 or 0.0 respectively. |
Vector |
getCabinetNames(String solution,
String context)
|
Vector |
getCabinets(String solution,
String context)
|
Vector |
getProducts()
|
Vector |
getProjects()
|
Vector |
getTeams(String solution,
String context)
|
int |
getTotalInitTime()
|
int |
getTotalOperation()
|
int |
getTotalPre()
|
static String |
getVersion(boolean server,
boolean fromClassPath)
|
boolean |
isContextValid(String solution,
String context)
|
boolean |
isDocInWindchill(String number,
String revision,
WTContainerRef containerRef)
|
private boolean |
isEmpty(String string)
|
private static Properties |
loadAttributeProperties(File attributeFile)
|
EPMDocument |
lookupDocument(String number,
String revision,
WTContainerRef containerRef)
|
void |
newRevision(String functionName,
DesignAll design)
|
private static void |
printIrregularPropertiesToSystemOut(File attributeFile)
|
static Properties |
readAttributeProperties(File attributeFile)
|
private ECADAttributes |
readAttributesDefinition(File attrdef_file)
|
private Vector |
splitOnSpaces(String refDess)
|
static String |
toolTypeToHLI(String toolTypeWGM)
|
static String |
toolTypeToWGM(String toolTypeHLI)
|
private static void |
validateAttribute(Properties attrs,
String attrName)
|
static void |
validateWorkspacesForCheckin(DesignAll design,
String function)
|
private void |
verifyFiles(File attrdef_file,
File[] attributeFiles,
File rootDirectory,
File tarFile,
File bomFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String IGNORE_THIS_ATTRIBUTE
private static ArgumentMap argMap
private static ArgumentRegister argReg
private static SecondaryArgumentMap sargMap
private static SecondaryArgumentRegister sargReg
static org.apache.log4j.Logger logger
Constructor Detail |
public ClientInterface()
Method Detail |
private void verifyFiles(File attrdef_file, File[] attributeFiles, File rootDirectory, File tarFile, File bomFile) throws FileNotFoundException
FileNotFoundException
private boolean checkExistence(File file) throws FileNotFoundException
FileNotFoundException
private static void validateAttribute(Properties attrs, String attrName) throws MissingAttributeException
MissingAttributeException
public static Properties readAttributeProperties(File attributeFile) throws FileNotFoundException, IOException, MissingAttributeException, BoardSameAsAssemblyNumException
FileNotFoundException
IOException
MissingAttributeException
BoardSameAsAssemblyNumException
private static Properties loadAttributeProperties(File attributeFile) throws IOException
IOException
private static void printIrregularPropertiesToSystemOut(File attributeFile) throws IOException
IOException
private ECADAttributes readAttributesDefinition(File attrdef_file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static void addAttributes(DocCreationHelper dch, Element document, String type, ECADAttributes attributes, Properties attributeProperties) throws IllegalArgumentException
document
- - where to set these attributestype
- - what type of document to treat this as - for the purposed of getting its defined attributes
IllegalArgumentException
private static String fixInvalidValues(ECADAttributesDef attributeDefinition, String value)
attributeDefinition
- value
-
public void createnew(String functionName, File tempdirpath, File attrdef_file, File[] attributeFiles, File tarFile, WindchillIntegrationManager im, ProcessManager pm, DesignAll design) throws WindchillFunctionException
functionName
- tempdirpath
- attrdef_file
- tarFile
- im
- design
-
DesignNotInWindchillException
WindchillFunctionException
DesignNotCheckedOutException
MissingAttributeException
ECADPropertiesMissingException
CancelledException
BoardSameAsAssemblyNumException
public void checkin(String functionName, File tempdirpath, File attrdef_file, File[] attributeFiles, File tarFile, WindchillIntegrationManager im, ProcessManager pm, DesignAll design, boolean checkout) throws WindchillFunctionException
functionName
- tempdirpath
- attrdef_file
- tarFile
- im
- design
-
DesignNotInWindchillException
WindchillFunctionException
DesignNotCheckedOutException
MissingAttributeException
ECADPropertiesMissingException
CancelledException
BoardSameAsAssemblyNumException
private void addBOMsToDOM(Collection asm_nums, DocCreationHelper dch, Element ecadDesign, File bomFile, String asm_number)
asm_nums
- dch
- ecadDesign
- bomFile
- asm_number
- private void createVariantAssemblyElements(Collection asm_nums, DocCreationHelper dch, Element ecadDesign, DesignAll dsn)
asm_nums
- dch
- ecadDesign
- dsn
- private void addBOMToAssembly(DocCreationHelper dch, Element ecadDesign, File bomFile, String asm_number) throws MissingAssemblyException
MissingAssemblyException
private Vector splitOnSpaces(String refDess)
private void addAttributesToAllDocs(DocCreationHelper dch, Element ecadDesign, Properties attributeProperties, ECADAttributes attributes)
public void cancelCheckout(String functionName, DesignAll design) throws WindchillFunctionException
WindchillFunctionException
public void newRevision(String functionName, DesignAll design) throws WindchillFunctionException
WindchillFunctionException
private boolean isEmpty(String string)
private void checkoutLegacy(String functionName, DesignAll design, File targetPath, String ecadToolHLI) throws WTException
WTException
public void download(String functionName, DesignAll design, File targetPath, boolean checkout) throws WTException, WindchillFunctionException
WTException
WindchillFunctionException
public void download(String functionName, DesignAll design, File boardPath, File schPath, boolean checkout) throws WTException, WindchillFunctionException
WTException
WindchillFunctionException
public boolean isContextValid(String solution, String context)
public Vector getCabinetNames(String solution, String context) throws WTException
WTException
public Vector getCabinets(String solution, String context) throws WTException
WTException
public Vector getTeams(String solution, String context) throws WTException
WTException
public Vector getProducts() throws WTException
WTException
public Vector getProjects() throws WTException
WTException
public static String toolTypeToHLI(String toolTypeWGM)
public static String toolTypeToWGM(String toolTypeHLI)
public EPMDocument lookupDocument(String number, String revision, WTContainerRef containerRef) throws WTException
WTException
public boolean isDocInWindchill(String number, String revision, WTContainerRef containerRef) throws WTException
WTException
public int getTotalPre()
getTotalPre
in interface IRegisterProgress
public int getTotalOperation()
getTotalOperation
in interface IRegisterProgress
public int getTotalInitTime()
getTotalInitTime
in interface IRegisterProgress
public static String getVersion(boolean server, boolean fromClassPath) throws UnableToGetDataFromServerException
UnableToGetDataFromServerException
public static void validateWorkspacesForCheckin(DesignAll design, String function) throws DesignNotInWindchillException, DesignNotCheckedOutException, DesignPartsInSameWorkspaceException, DesignPartsNotInSameWorkspaceException
DesignNotInWindchillException
DesignNotCheckedOutException
DesignPartsInSameWorkspaceException
DesignPartsNotInSameWorkspaceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |