Package wt.change2.workset
Interface WTWorkSetService
The interface describing the services available for workset
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
StandardWTWorkSetServiceWTWorkSetHelper
-
Method Summary
Modifier and TypeMethodDescriptioncreateWTWorkSetComponentLinks(WTWorkSet workset, WTCollection components) Given a WTWorkset and a collection of Changeable2 components, the created WTWorkSetComponentLink links between the workset and Changeble2 components will be returned in a WTCollection.getComponents(WTWorkSet worksets) Given a WTWorkset object, a collection of its components will be returned in a WTCollection
Supported API: truegetComponents(WTWorkSet worksets, boolean onlyOtherSide) Given a WTWorkset object, a collection of its components will be returned in a WTCollection, if onlyOtherSide is true.getComponents(WTCollection worksets) Given a collection of WTWorkset objects, a keyed map will be returned such that the collection of the components for each workset is mapped with the workset.getComponents(WTCollection worksets, boolean onlyOtherSide) Given a collection of WTWorkset objects, a keyed map will be returned such that the collection of the components for each workset is mapped with the workset, if onlyOtherSide is true.getInValidReferenceDocuments(WorkSet workSet, WTCollection documents) Given a work set object and a collection of document objects determine if the documents are work set referemce document types and return the collection of invalid reference documents.getLatestRelatedWorkSets(Changeable2 changeable) Retrieve a collection of latest related Work Sets for a given changeable.Retrieve a collection of the Work Sets that are linked to the document through the WTWorkSetReferenceLinks link
Supported API: truegetReferenceDocumentLinks(WTWorkSet workSet) Retrieve a collection of the WTWorkSetReferenceLink links that the work set is linked to
Supported API: truegetReferenceWTDocumentMasters(WTWorkSet workSet) Retrieve a collection of the WTDocumentMasters that are linked to the work set through the WTWorkSetReferenceLinks link
Supported API: truegetReferenceWTDocuments(WTWorkSet workSet) Retrieve a collection of the WTDocuments that are linked to the work set through the WTWorkSetReferenceLinks link
Supported API: truegetValidComponentForWorkSet(TypeIdentifier workset_typeId, WTCollection changeables) Given a collection of changeables, return the collection of WorkSet type components.getValidComponentForWorkSet(WTWorkSet workset, WTCollection changeables) Given a collection of changeables, return the collection of WorkSet type components.getValidComponentTypeNamesForWorkSet(TypeIdentifier tid, WTContainer container, boolean toExternalForm) Returns the List String type names for eachin the List of valid Workset components. getValidComponentTypeNamesForWorkSet(WTWorkSet workset, boolean toExternalForm) Returns the List String type names for eachin the List of valid Workset components. getValidReferenceDocuments(WorkSet workSet, WTCollection documents) Given a work set object and a collection of document objects determine if the documents are work set referemce document types and return the collection of valid reference documents.Gets the list Work Set reference documentTypeIdentifier.booleanisValidComponentTypeForWorkSet(TypeIdentifier workSet_type_id, TypeIdentifier component_type_id, WTContainer container) Given a Work Set and a changeable type identifier determine if it is a Work Set component type.booleanisValidComponentTypeForWorkSet(Changeable2 changeable, WTContainerRef containerRef) Given a changeable type object determine if it is a Work Set component type.booleanisValidComponentTypeForWorkSet(WTWorkSet workSet, Changeable2 changeable) Given a Work Set and a changeable type object determine if it is a Work Set component type.booleanisValidReferenceDocument(WorkSet workSet, Document document) Given a work set object and document object determine if it is a work set referemce document type.removeWTWorkSetComponentLinks(WTWorkSet workset, WTCollection components) Given a WTWorkset and a collection of Changeable2 components, the WTWorkSetComponentLink links between the workset and any of the components will be deleted and returned in a WTCollection.
-
Method Details
-
createWTWorkSetComponentLinks
WTCollection createWTWorkSetComponentLinks(WTWorkSet workset, WTCollection components) throws WTException Given a WTWorkset and a collection of Changeable2 components, the created WTWorkSetComponentLink links between the workset and Changeble2 components will be returned in a WTCollection.
Supported API: true- Parameters:
workset-components-- Returns:
- WTCollection
- Throws:
WTException
-
getComponents
Given a WTWorkset object, a collection of its components will be returned in a WTCollection
Supported API: true- Parameters:
worksets-- Returns:
- WTCollection
- Throws:
WTException
-
getComponents
Given a WTWorkset object, a collection of its components will be returned in a WTCollection, if onlyOtherSide is true. Otherwise, a collection of its WTWorkSetComponentLink links will be returned.
Supported API: true- Parameters:
worksets-onlyOtherSide-- Returns:
- WTCollection
- Throws:
WTException
-
getComponents
Given a collection of WTWorkset objects, a keyed map will be returned such that the collection of the components for each workset is mapped with the workset.
Supported API: true- Parameters:
worksets-- Returns:
- WTKeyedMap
- Throws:
WTException
-
getComponents
Given a collection of WTWorkset objects, a keyed map will be returned such that the collection of the components for each workset is mapped with the workset, if onlyOtherSide is true. Otherwise, a collection of the WTWorkSetComponentLink for each workset is mapped with the workset in the keyed map returned.
Supported API: true- Parameters:
worksets-onlyOtherSide-- Returns:
- WTKeyedMap
- Throws:
WTException
-
removeWTWorkSetComponentLinks
WTCollection removeWTWorkSetComponentLinks(WTWorkSet workset, WTCollection components) throws WTException Given a WTWorkset and a collection of Changeable2 components, the WTWorkSetComponentLink links between the workset and any of the components will be deleted and returned in a WTCollection.
Supported API: true- Parameters:
workset-components-- Returns:
- WTCollection
- Throws:
WTException
-
getLatestRelatedWorkSets
Retrieve a collection of latest related Work Sets for a given changeable.
Supported API: true- Parameters:
changeable-- Returns:
- A collection of
wt.change2.workset.WorkSet - Throws:
WTException
-
isValidComponentTypeForWorkSet
boolean isValidComponentTypeForWorkSet(WTWorkSet workSet, Changeable2 changeable) throws WTException Given a Work Set and a changeable type object determine if it is a Work Set component type.
Supported API: true- Parameters:
workSet- A Work Set type objectchangeable- Awt.change2.Changeable2type object- Returns:
- True when the changeable is a Work Set component type.
- Throws:
WTException
-
isValidComponentTypeForWorkSet
boolean isValidComponentTypeForWorkSet(Changeable2 changeable, WTContainerRef containerRef) throws WTException Given a changeable type object determine if it is a Work Set component type.
Supported API: true- Parameters:
changeable- Awt.change2.Changeable2type objectcontainerRef-- Returns:
- True when the changeable is a Work Set component type.
- Throws:
WTException
-
isValidComponentTypeForWorkSet
boolean isValidComponentTypeForWorkSet(TypeIdentifier workSet_type_id, TypeIdentifier component_type_id, WTContainer container) throws WTException Given a Work Set and a changeable type identifier determine if it is a Work Set component type.
Supported API: true- Parameters:
workSet_type_id- A Work Set type identifiercomponent_type_id- Awt.change2.Changeable2type identifier- Returns:
- True when the changeable is a Work Set component type.
- Throws:
WTException
-
getValidComponentForWorkSet
WTCollection getValidComponentForWorkSet(WTWorkSet workset, WTCollection changeables) throws WTException Given a collection of changeables, return the collection of WorkSet type components.
Supported API: true- Parameters:
workset-changeables- A collection of changeables.- Returns:
- The collection of components. An empty collection is returned if there are no references or if the list doesn't contain a component.
- Throws:
WTException
-
getValidComponentForWorkSet
WTCollection getValidComponentForWorkSet(TypeIdentifier workset_typeId, WTCollection changeables) throws WTException Given a collection of changeables, return the collection of WorkSet type components.
Supported API: true- Parameters:
workset_typeId- Work Set type identifierchangeables- A collection of changeables.- Returns:
- The collection of components. An empty collection is returned if there are no references or if the list doesn't contain a component.
- Throws:
WTException
-
getValidComponentTypeNamesForWorkSet
List<String> getValidComponentTypeNamesForWorkSet(WTWorkSet workset, boolean toExternalForm) throws WTException Returns the List String type names for eachin the List of valid Workset components. If the toExternalFormis true the type names in the list will be returned as the external form value of theTypeIdentifier.
Supported API: true- Parameters:
workset-toExternalForm- return the type name of theTypeIdentifierin the external form.- Returns:
- A list String values for the type names of Work Set component types.
- Throws:
WTException
-
getValidComponentTypeNamesForWorkSet
List<String> getValidComponentTypeNamesForWorkSet(TypeIdentifier tid, WTContainer container, boolean toExternalForm) throws WTException Returns the List String type names for eachin the List of valid Workset components. If the toExternalFormis true the type names in the list will be returned as the external form value of theTypeIdentifier.
Supported API: true- Parameters:
tid- A Work Set type identifiercontainer-toExternalForm- return the type name of theTypeIdentifierin the external form.- Returns:
- A list String values for the type names of Work Set component types.
- Throws:
WTException
-
getReferenceDocumentLinks
Retrieve a collection of the WTWorkSetReferenceLink links that the work set is linked to
Supported API: true- Parameters:
workSet-- Returns:
- collection of WTWorkSetReferenceLinks
- Throws:
WTException
-
getReferenceWTDocumentMasters
Retrieve a collection of the WTDocumentMasters that are linked to the work set through the WTWorkSetReferenceLinks link
Supported API: true- Parameters:
workSet-- Returns:
- collection of WTDocumentMaseters
- Throws:
WTException
-
getReferenceWTDocuments
Retrieve a collection of the WTDocuments that are linked to the work set through the WTWorkSetReferenceLinks link
Supported API: true- Parameters:
workSet-- Returns:
- collection of WTDocuments
- Throws:
WTException
-
getReferencedByWorkSets
Retrieve a collection of the Work Sets that are linked to the document through the WTWorkSetReferenceLinks link
Supported API: true- Parameters:
doc-- Returns:
- collection of WTWorkSets
- Throws:
WTException
-
getValidReferenceDocumentTypesForWorkSet
Gets the list Work Set reference documentTypeIdentifier.
Supported API: true- Parameters:
workSet- The work set object.- Returns:
- A list of Work Set reference document types.
- Throws:
WTException
-
isValidReferenceDocument
Given a work set object and document object determine if it is a work set referemce document type.
Supported API: true- Parameters:
workSet- Work set object.document- Document reference object.- Returns:
- True when the document is a Work Set reference document type.
- Throws:
WTException
-
getValidReferenceDocuments
Given a work set object and a collection of document objects determine if the documents are work set referemce document types and return the collection of valid reference documents.
Supported API: true- Parameters:
workSet- Work set object.documents- collection of document objects.- Returns:
- The collection of valid document references.
- Throws:
WTException
-
getInValidReferenceDocuments
WTCollection getInValidReferenceDocuments(WorkSet workSet, WTCollection documents) throws WTException Given a work set object and a collection of document objects determine if the documents are work set referemce document types and return the collection of invalid reference documents.
Supported API: true- Parameters:
workSet- Work set object.documents- collection of document objects.- Returns:
- The collection of invalid document references.
- Throws:
WTException
-