Package wt.part
Interface LineNumberService
- All Known Implementing Classes:
StandardLineNumberService
This service interface defines the API for managing
Supported API: true
Extendable: false
LineNumber
and PublishedLineNumber information.
- Cookie: None
- Helper:
LineNumbertHelperhas no helper methods - Service implementation:
StandardLineNumbertService
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionfindAllPublishedLineNumbers(WTPartMaster partMaster, View view) Returns a hash table of PublishedLineNumber objects associated with the given part number (i.e., WTPartMaster) in the given view.getLatestLineNumber(WTPart part) Returns the largest line number assigned to the part.booleanhasLinksWithoutLineNumbers(WTPart assembly) Returns true if any of the usage links for the given assembly do not have line numbers..booleanisLineNumberPublished(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.booleanisLineNumberPublished(WTPartUsageLink usageLink) Returns true if the line number associated with the given part usage link has been published.voidpublishAllLineNumbers(WTPart part) Publish all the line numbers associated with each of the usage links for the given part assembly.voidpublishLineNumber(LineNumber number, WTPartMaster part, View view) Publishes the line number associated with the given part number (i.e., WTPartMaster) in the given view.voidpublishLineNumber(WTPartUsageLink usageLink) Publishes the line number associated with the given part usage link.voidunpublishLineNumber(LineNumber number, WTPartMaster part, View view) Unpublishes the line number associated with the given part number (i.e., WTPartMaster) in the given view.voidunpublishLineNumber(WTPartUsageLink usageLink) Unpublishes the line number associated with the given part usage link and its view.
-
Method Details
-
getLatestLineNumber
Returns the largest line number assigned to the part. The method takes at the largest line number assigned to the given part plus the largest line number published for the given part and returns the larger one to the caller.
Supported API: true- Parameters:
part-- Returns:
- LineNumber
- Throws:
WTException
-
publishLineNumber
Publishes the line number associated with the given part usage link. The line number must be unique given the parent part of the usage link and the view that it is in. This method throws a WTException if the uniqueness constraint is violated.
Supported API: true- Parameters:
usageLink-- Throws:
WTException
-
publishLineNumber
Publishes the line number associated with the given part number (i.e., WTPartMaster) in the given view. The line number must be unique for the given part and view. This method throws a WTException if the uniqueness constraint is violated.
Supported API: true- Parameters:
number-part-view-- Throws:
WTException
-
publishAllLineNumbers
Publish all the line numbers associated with each of the usage links for the given part assembly. A WTException is thrown if a uniqueness constraint is violated.
Supported API: true- Parameters:
part-- Throws:
WTException
-
isLineNumberPublished
Returns true if the line number associated with the given part usage link has been published.
Supported API: true- Parameters:
usageLink-- Returns:
- boolean
- Throws:
WTException
-
isLineNumberPublished
Returns true if the line number associated with the given part number (i.e., WTPartMaster) in the given view is published.
Supported API: true- Parameters:
number-part-view-- Returns:
- boolean
- Throws:
WTException
-
unpublishLineNumber
Unpublishes the line number associated with the given part usage link and its view.
Supported API: true- Parameters:
usageLink-- Throws:
WTException
-
unpublishLineNumber
Unpublishes the line number associated with the given part number (i.e., WTPartMaster) in the given view. The line number must be unique for the given part and view. This method throws a WTException if the uniqueness constraint is violated.
Supported API: true- Parameters:
number-part-view-- Throws:
WTException
-
hasLinksWithoutLineNumbers
Returns true if any of the usage links for the given assembly do not have line numbers..
Supported API: true- Parameters:
assembly-- Returns:
- boolean
- Throws:
WTException
-
findAllPublishedLineNumbers
Returns a hash table of PublishedLineNumber objects associated with the given part number (i.e., WTPartMaster) in the given view.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: true- Parameters:
partMaster-view-- Returns:
- Hashtable
- Throws:
WTException
-