|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.part.LineNumberServiceFwd
This service interface defines the API for managing LineNumber
and PublishedLineNumber
information.
LineNumbertHelper
has no helper methodsStandardLineNumbertService
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
LineNumberServiceFwd()
|
Method Summary | |
Hashtable |
findAllPublishedLineNumbers(WTPartMaster partMaster,
View view)
Returns a hash table of PublishedLineNumber objects associated with the given part number (i.e., WTPartMaster) in the given view. |
QueryResult[] |
getBomDifferences(WTPart currentPart,
WTPart previousPart)
Deprecated. |
LineNumber |
getLatestLineNumber(WTPart part)
Returns the largest line number assigned to the part. |
private static Manager |
getManager()
|
boolean |
hasLinksWithoutLineNumbers(WTPart assembly)
Returns true if any of the usage links for the given assembly do not have line numbers.. |
boolean |
isLineNumberPublished(LineNumber number,
WTPartMaster part,
View view)
Returns true if the line number associated with the given part number (i.e., WTPartMaster) in the given view is published. |
boolean |
isLineNumberPublished(WTPartUsageLink usageLink)
Returns true if the line number associated with the given part usage link has been published. |
void |
publishAllLineNumbers(WTPart part)
Publish all the line numbers associated with each of the usage links for the given part assembly. |
void |
publishLineNumber(LineNumber number,
WTPartMaster part,
View view)
Publishes the line number associated with the given part number (i.e., WTPartMaster) in the given view. |
void |
publishLineNumber(WTPartUsageLink usageLink)
Publishes the line number associated with the given part usage link. |
void |
unpublishLineNumber(LineNumber number,
WTPartMaster part,
View view)
Unpublishes the line number associated with the given part number (i.e., WTPartMaster) in the given view. |
void |
unpublishLineNumber(WTPartUsageLink usageLink)
Unpublishes the line number associated with the given part usage link and its view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public LineNumberServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public LineNumber getLatestLineNumber(WTPart part) throws WTException
getLatestLineNumber
in interface LineNumberService
part
-
WTException
public QueryResult[] getBomDifferences(WTPart currentPart, WTPart previousPart) throws WTException
Compares the bill of material of the current WTPart with a previous WTPart. This method only considers the usages links with assigned line numbers.
The element 0 of the returned array is a QueryResult that includes includes the WTPartUsageLinks to identify the line numbered parts that are used by the current WTPart but not by the previous WTPart.
The element 1 of the returned array is a QueryResult that includes includes the WTPartUsageLinks to identify the line numbered parts that are used by the previous WTPart but not by the current WTPart.
The element 2 of the returned array is a QueryResult that includes includes the WTPartUsageLinks to identify the line numbered items that were used in both the current and the previous WTParts but have different usage information (e.g., quantity.)
If one considers that previous WTPart and current WTPart are two versions
of the same master in chronological order, the interpretation is that
the first QueryResult identifies the parts (with their line numbers)
that have been added; the second QueryResult identifies the parts
(with their line numbers) that have been deleted; and the third QueryResult
identifies the parts (with their line numbers) that have had quantity
changes. A replace of one child part for another (at the same line
number) results having entries in both the first and second QueryResults
returned by the method (replace = delete + add).
Supported API: false
getBomDifferences
in interface LineNumberService
currentPart
- previousPart
-
WTException
public void publishLineNumber(WTPartUsageLink usageLink) throws WTException
publishLineNumber
in interface LineNumberService
usageLink
-
WTException
public void publishLineNumber(LineNumber number, WTPartMaster part, View view) throws WTException
publishLineNumber
in interface LineNumberService
number
- part
- view
-
WTException
public void publishAllLineNumbers(WTPart part) throws WTException
publishAllLineNumbers
in interface LineNumberService
part
-
WTException
public boolean isLineNumberPublished(WTPartUsageLink usageLink) throws WTException
isLineNumberPublished
in interface LineNumberService
usageLink
-
WTException
public boolean isLineNumberPublished(LineNumber number, WTPartMaster part, View view) throws WTException
isLineNumberPublished
in interface LineNumberService
number
- part
- view
-
WTException
public void unpublishLineNumber(WTPartUsageLink usageLink) throws WTException
unpublishLineNumber
in interface LineNumberService
usageLink
-
WTException
public void unpublishLineNumber(LineNumber number, WTPartMaster part, View view) throws WTException
unpublishLineNumber
in interface LineNumberService
number
- part
- view
-
WTException
public boolean hasLinksWithoutLineNumbers(WTPart assembly) throws WTException
hasLinksWithoutLineNumbers
in interface LineNumberService
assembly
-
WTException
public Hashtable findAllPublishedLineNumbers(WTPartMaster partMaster, View view) throws WTException
If ht is the hash table returned by this method, then the calling
code can determine whether a given line number has been published
by invoking the following method: ht.get(a_LineNumber). If the
method returns a null, the specified line number is not published.
Supported API: false
findAllPublishedLineNumbers
in interface LineNumberService
partMaster
- view
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |