|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.bom.BOMUtility
A convenient class to set or retrieve BOM info from Windchill back end
for ESI's need.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private TaskHelper |
taskHelper
|
private ESITransactionUtility |
txnUtility
|
Constructor Summary | |
BOMUtility()
|
Method Summary | |
IeCollection |
getBOM(String objectID,
boolean delta,
boolean bomPart,
boolean componentParts,
boolean alternates,
boolean substitutes,
boolean referenceDesignators,
boolean lineNumbers,
String mulitLevel,
boolean documents,
String configSpec,
String auth,
String wcAdapter,
String transactionID)
getBOM RPC processor. |
void |
getBOM(WTPart part,
boolean delta,
boolean bomPart,
boolean componentParts,
boolean alternates,
boolean substitutes,
boolean referenceDesignators,
boolean lineNumbers,
String mulitLevel,
boolean documents,
String configSpec,
String auth,
String wcAdapter,
VdbBuilder builder)
RPC processor when called from getECN RPC. |
Collection |
getBOMUfids(String baseUFID,
int depth)
Returns a list of multilevel BOM UFIDs. |
private TaskHelper |
getTaskHelper()
|
private ESITransactionUtility |
getTxnUtility()
|
static boolean |
hasPartUsages(WTPart part)
|
boolean |
isBom(WTPart part)
Returns true if the given part has any children (connected to a WTPartMaster
via a
WTPartUsageLink ) or was ever released by ESI to any target
as a BOM. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(BOMUtility thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private TaskHelper taskHelper
private ESITransactionUtility txnUtility
Constructor Detail |
public BOMUtility()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(BOMUtility thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public Collection getBOMUfids(String baseUFID, int depth) throws ESIException
depth
is 1,
returns the root part UFID.
baseUFID
- The UFID of root object.depth
- the level of BOM , default is 1 ( i.e. returns root bom itself ).
ESIException
public final IeCollection getBOM(String objectID, boolean delta, boolean bomPart, boolean componentParts, boolean alternates, boolean substitutes, boolean referenceDesignators, boolean lineNumbers, String mulitLevel, boolean documents, String configSpec, String auth, String wcAdapter, String transactionID) throws WTException
objectID
- UFID for a WTPart.delta
- If "true", returns only the changes since the last successful export. Default is "true".bomPart
- Should a part be created for the BOM?componentParts
- Should parts be created for the BOM's components?alternates
- If "true", returns alternate part info, default is "false". Only operative if "Parts" = "true".substitutes
- If "true", returns substitute datareferenceDesignators
- If "true", returns Reference Designator data.lineNumbers
- If "true", returns line numbers info, no line numbers info otherwise.mulitLevel
- The number of levels of BOM, default is 1.documents
- If "true", returns associated documents info, default is "false".Only operative if "Parts" = "true".configSpec
- The Config Spec. value to use when navigating the BOM. See the Query-Tree Webject documentation for acceptable and default values.auth
- This parameter contains authentication information from I*E.wcAdapter
- This parameter contains the name of the Windchill adapter.transactionID
- The TransactionID of the ESITransaction that is related to this RPC request.
WTException
public final void getBOM(WTPart part, boolean delta, boolean bomPart, boolean componentParts, boolean alternates, boolean substitutes, boolean referenceDesignators, boolean lineNumbers, String mulitLevel, boolean documents, String configSpec, String auth, String wcAdapter, VdbBuilder builder) throws WTException
part
- The assembly part for the top-level BOM.delta
- If "true", returns only the changes since the last successful export. Default is "true".bomPart
- Should a part be created for the BOM?componentParts
- Should parts be created for the BOM's components?alternates
- If "true", returns alternate part info, default is "false". Only operative if "Parts" = "true".substitutes
- If "true", returns substitute datareferenceDesignators
- If "true", returns Reference Designator data.lineNumbers
- If "true", returns line numbers info, no line numbers info otherwise.mulitLevel
- The number of levels of BOM, default is 1.documents
- If "true", returns associated documents info, default is "false".Only operative if "Parts" = "true".configSpec
- The Config Spec. value to use when navigating the BOM. See the Query-Tree Webject documentation for acceptable and default values.auth
- This parameter contains authentication information from I*E.wcAdapter
- This parameter contains the name of the Windchill adapter.builder
- The VdbBuilder to use when creating output.
WTException
public final boolean isBom(WTPart part) throws WTException
WTPartMaster
via a
WTPartUsageLink
) or was ever released by ESI to any target
as a BOM. Otherwise returns false
part
- The WTPart to be evaluated.
WTException
private ESITransactionUtility getTxnUtility()
private TaskHelper getTaskHelper()
public static boolean hasPartUsages(WTPart part) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |