|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.change2.StandardChangeService2
Standard server-side implementation of the ChangeService2 interfaces. The public, static methods in this class are accessed through the syntax:
ChangeHelper2.service.[method]
Use the newStandardChangeService2
static factory method(s),
not the StandardChangeService2
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
ChangeService2
,
ChangeService2Fwd
,
ChangeHelper2
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
private static String |
OID
|
private static int |
PC_QUERY_SIZE
|
private static boolean |
proIInstalled
|
private static String |
RESOURCE
|
private static String |
ROLE_A
|
private static String |
ROLE_B
|
private static boolean |
USE_FOLDER_DELEGATE
|
private static boolean |
USE_LIFECYCLE_DELEGATE
|
private static boolean |
VERBOSE
|
private static boolean |
WINDCHILL_PDM
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.change2.ChangeService2 |
PENDING_ORDER_STATES, PENDING_REQUEST_STATES |
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardChangeService2()
|
Method Summary | |
protected void |
assignLocation(ChangeItemIfc target)
Assign a folder or cabinet location through a delegate. |
protected ChangeItemIfc |
assignLocation(ChangeItemIfc target,
ChangeItemIfc source)
Assign a folder or cabinet location through a delegate, based on the folder or cabinet of another change object. |
protected ChangeItemIfc |
changeFolder(ChangeItemIfc target,
ChangeItemIfc source)
|
private void |
checkChangeItemLock(Lockable target)
|
private void |
checkChangeItemModification(Persistable target,
String messageID)
|
protected void |
checkDeleteOfChangeable(Changeable2 deleteTarget)
On a PersistenceManager PRE-DELETE event, prevent deleting a Changeable object that is attached to a change object. |
protected void |
checkDeleteOfChangeableCollection(WTArrayList target_list)
|
protected void |
checkDeleteOfChangeRecord(ChangeRecordIfc target)
|
protected void |
checkLocation(FolderEntry target)
|
protected void |
checkModifyOfAffectedActivityData(AffectedActivityData target)
|
protected void |
checkModifyOfChangeRecord(ChangeRecordIfc target)
|
protected void |
checkModifyOfRelevantAnalysisData(RelevantAnalysisData target)
|
protected void |
checkModifyOfRelevantRequestData2(RelevantRequestData2 target)
|
protected void |
checkStoreOfAffectedActivityData(AffectedActivityData target)
|
protected void |
checkStoreOfChangeRecord(ChangeRecordIfc target)
|
protected void |
checkStoreOfFormalizedBy(FormalizedByIfc target)
|
protected void |
checkStoreOfRelevantAnalysisData(RelevantAnalysisData target)
|
protected void |
checkStoreOfRelevantRequestData2(RelevantRequestData2 target)
|
protected void |
checkStoreOfReportedAgainst(ReportedAgainst target)
|
protected void |
chooseLifeCycle(ChangeItemIfc ci)
|
protected void |
copyChangeableLinks(Changeable2 original,
Changeable2 working)
|
protected void |
copyChangeableLinks(WTKeyedMap changeable_map,
WTCollection changeable_list)
|
AddressedByIfc |
deleteAddressedBy(ChangeRequestIfc cr,
ChangeOrderIfc co)
Delete the AddressedByIfc relationship implied by the two arguments. |
AffectedActivityData |
deleteAffectedActivityData(AffectedActivityData aad)
Delete the AffectedActivityData relationship only. |
AnalysisActivityIfc |
deleteAnalysisActivity(AnalysisActivityIfc aa)
Deletes the concrete subclass of AnalysisActivityIfc from the database. |
ChangeActivityIfc |
deleteChangeActivity(ChangeActivityIfc ca)
Deletes the concrete subclass of ChangeActivityIfc from the database. |
ChangeInvestigationIfc |
deleteChangeInvestigation(ChangeInvestigationIfc ci)
Deletes the concrete subclass of ChangeInvestigationIfc from the database. |
ChangeIssueIfc |
deleteChangeIssue(ChangeIssueIfc ci)
Deletes the concrete subclass of ChangeIssueIfc from the database. |
protected void |
deleteChangeLinks(WTCollection changeableList)
Delete change item links with given changeables |
ChangeOrderIfc |
deleteChangeOrder(ChangeOrderIfc co)
Deletes the concrete subclass of ChangeOrderIfc from the database. |
ChangeProposalIfc |
deleteChangeProposal(ChangeProposalIfc cp)
Deletes the concrete subclass of ChangeProposalIfc from the database. |
ChangeRecord2 |
deleteChangeRecord(ChangeRecord2 cr)
Delete the ChangeRecord2 relationship only. |
ChangeRequestIfc |
deleteChangeRequest(ChangeRequestIfc cr)
Deletes the concrete subclass of ChangeRequestIfc from the database. |
FormalizedByIfc |
deleteFormalizedBy(ChangeRequestIfc cr,
ChangeIssueIfc ci)
Delete the FormalizedByIfc relationship implied by the two arguments. |
FormalizedByIfc |
deleteFormalizedBy(Class linkClass,
ChangeRequestIfc cr,
ChangeIssueIfc ci)
Delete the FormalizedByIfc relationship implied by the three arguments. |
RelevantAnalysisData |
deleteRelevantAnalysisData(RelevantAnalysisData rad)
Delete the RelevantAnalysisData relationship only. |
private static void |
dispatchVetoableEvent(String eventType,
Object eventTarget,
Object secondaryEventTarget)
|
private void |
emitCAStateChangedEvent(ChangeActivity2 ca)
|
Set |
filterForPendingChanges(Set changeable2Refs)
Queries the database to compute the subset of the argument set of references to persistent Changeable2 objects whose members have pending changes. |
private WTArrayList |
filterTargets(WTCollection targets)
|
ChangeRequestIfc |
findChangeRequest(Object theObject)
Uses Change2DelegateFactory and FindChangeRequestDelegate mechanism to find the change request associated with the object passed in. |
private void |
fixDomainAssignment(CabinetMember target,
FolderEntry source)
Silently fixes the domain assignment of the non-Foldered target change object to match that of the source change object only if the cabinet previously assigned by the rules service (i.e., not assigned by a ChooseFolderDelegate) resulted in an incorrect domain assignment. |
QueryResult |
getAffectingChangeActivities(Changeable2 changeable)
Returns a QueryResult of ChangeActivity2 objects related to the given Changeable2 object by the AffectedActivityData assocation. |
QueryResult |
getAffectingChangeActivities(Changeable2 changeable,
boolean onlyChangeActivities)
Returns a QueryResult of ChangeActivity2 objects related to the given Changeable2 object by the AffectedActivityData assocation. |
QueryResult |
getAnalysisActivities(Changeable2 changeable)
Retrieves the AnalysisActivity objects related to the given Changeable2 object by the RelevantAnalysisData assocation. |
QueryResult |
getAnalysisActivities(Changeable2 changeable,
boolean onlyAnalysisActivities)
Retrieves the AnalysisActivity objects related to the given Changeable2 object by the RelevantAnalysisData assocation. |
QueryResult |
getAnalysisActivities(ChangeAnalysisIfc ca)
Retrieves the AnalysisActivityIfc objects related to the given ChangeAnalysisIfc object by the DetailedByIfc assocation. |
QueryResult |
getAnalysisActivities(ChangeAnalysisIfc ca,
boolean onlyAnalysisActivities)
Retrieves the AnalysisActivityIfc objects related to the given ChangeAnalysisIfc object by the DetailedByIfc assocation. |
private SearchCondition |
getAttachedSc(Class link_class,
String other_role,
long[] target_ids)
|
QueryResult |
getChangeables(AnalysisActivityIfc aa)
Retrieves the Changeable2 objects related to the given AnalysisActivityIfc object by the ResearchedByIfc assocation. |
QueryResult |
getChangeables(AnalysisActivityIfc aa,
boolean onlyChangeables)
Retrieves the Changeable2 objects related to the given AnalysisActivityIfc object by the RelevantAnalysisData assocation. |
QueryResult |
getChangeables(ChangeIssueIfc changeIssue)
Retrieves the Changeable2 objects related to the given ChangeIssueIfc object by the ReportedAgainst association. |
QueryResult |
getChangeables(ChangeIssueIfc changeIssue,
boolean onlyChangeables)
Retrieves the Changeable2 objects related to the given ChangeIssueIfc object by the Reported Against association. |
QueryResult |
getChangeables(ChangeRequestIfc cr)
Retrieves the Changeable2 objects related to the given ChangeRequestIfc object by the RelevantRequestDataIfc assocation. |
QueryResult |
getChangeables(ChangeRequestIfc cr,
boolean onlyChangeables)
Retrieves the Changeable2 objects related to the given ChangeRequestIfc object by the RelevantRequestDataIfc assocation. |
QueryResult |
getChangeablesAfter(ChangeActivityIfc ca)
Retrieves the Changeable2 objects related to the given ChangeActivityIfc object by the ChangeRecord2 assocation. |
QueryResult |
getChangeablesAfter(ChangeActivityIfc ca,
boolean onlyChangeables)
Retrieves the Changeable2 objects related to the given ChangeActivityIfc object by the ChangeRecord2 assocation. |
QueryResult |
getChangeablesAfter(ChangeOrderIfc co)
Retrieves the Changeable2 objects related to the given ChangeOrderIfc object through its IncludedInIfc association with its ChangeActivityIfc and then by their ChangeRecord2 assocations. |
QueryResult |
getChangeablesAfter(ChangeOrderIfc co,
boolean onlyChangeables)
Retrieves the Changeable2 objects related to the given ChangeOrderIfc object through its IncludedInIfc associations with its ChangeActivityIfc object and then by their ChangeRecord2 assocations. |
QueryResult |
getChangeablesBefore(ChangeActivityIfc ca)
Retrieves the Changeable2 objects related to the given ChangeActivityIfc object by the AffectedActivityData assocation. |
QueryResult |
getChangeablesBefore(ChangeActivityIfc ca,
boolean onlyChangeables)
Retrieves the Changeable2 objects related to the given ChangeActivityIfc object by the AffectedActivityData assocation. |
QueryResult |
getChangeablesBefore(ChangeOrderIfc co)
Retrieves the Changeable2 objects related to the given ChangeOrderIfc object through the IncludedInIfc association with each of its ChangeActivityIfc objects and then by their AffectedActivityData assocation. |
QueryResult |
getChangeablesBefore(ChangeOrderIfc co,
boolean onlyChangeables)
Retrieves the Changeable2 objects related to the given ChangeOrderIfc object through the IncludedInIfc association of each of its ChangeActivityIfc object and then by their AffectedActivityData assocations. |
QueryResult |
getChangeActivities(ChangeOrderIfc co)
Retrieves the ChangeActivityIfc objects related to the given ChangeOrderIfc object by the IncludedInIfc assocation. |
QueryResult |
getChangeActivities(ChangeOrderIfc co,
boolean onlyChangeActivities)
Retrieves the ChangeActivityIfc objects related to the given ChangeOrderIfc object by the IncludedInIfc assocation. |
QueryResult |
getChangeAnalysis(AnalysisActivityIfc aa)
Retrieves the ChangeAnalysisIfc object related to the given AnalysisActivityIfc object by the DetailedByIfc assocation. |
QueryResult |
getChangeAnalysis(AnalysisActivityIfc aa,
boolean onlyChangeAnalysis)
Retrieves the ChangeAnalysisIfc object related to the given AnalysisActivityIfc object by the DetailedByIfc assocation. |
QueryResult |
getChangeInvestigations(ChangeRequestIfc cr)
Retrieves the ChangeInvestigationIfc objects related to the given ChangeRequestIfc object by the ResearchedByIfc assocation. |
QueryResult |
getChangeInvestigations(ChangeRequestIfc cr,
boolean onlyChangeInvestigations)
Retrieves the ChangeInvestigationIfc objects related to the given ChangeRequestIfc object by the ResearchedByIfc assocation. |
QueryResult |
getChangeIssues(ChangeRequestIfc cr)
Retrieves the ChangeIssueIfc objects related to the given ChangeRequestIfc object by the FormalizedByIfc assocation. |
QueryResult |
getChangeIssues(ChangeRequestIfc cr,
boolean onlyChangeIssues)
Retrieves the ChangeIssueIfc objects related to the given ChangeRequestIfc object by the FormalizedByIfc assocation. |
ChangeItem |
getChangeItem(Class theClass,
long id)
Retrieves the ChangeItem object that corresponds to the given Class and id. |
ChangeItem |
getChangeItem(String oid)
Retrieves the ChangeItem object that corresponds to the given oid. |
QueryResult |
getChangeOrder(ChangeActivityIfc ca)
Retrieves the ChangeOrderIfc object related to the given ChangeActivityIfc object by the IncludedInIfc assocation. |
QueryResult |
getChangeOrder(ChangeActivityIfc ca,
boolean onlyChangeActivity)
Retrieves the ChangeOrderIfc object related to the given ChangeActivityIfc object by the IncludedInIfc assocation. |
QueryResult |
getChangeOrders(ChangeRequestIfc cr)
Retrieves the ChangeOrderIfc objects related to the given ChangeRequestIfc object by the AddressedByIfc assocation. |
QueryResult |
getChangeOrders(ChangeRequestIfc cr,
boolean onlyChangeOrders)
Retrieves the ChangeOrderIfc objects related to the given ChangeRequestIfc object by the AddressedByIfc assocation. |
QueryResult |
getChangeProposals(ChangeRequestIfc cr)
Retrieves the ChangeProposalIfc objects related to the given ChangeRequestIfc object by the ResearchedByIfc assocation. |
QueryResult |
getChangeProposals(ChangeRequestIfc cr,
boolean onlyChangeProposals)
Retrieves the ChangeProposalIfc objects related to the given ChangeRequestIfc object by the ResearchedByIfc assocation. |
QueryResult |
getChangeRequest(ChangeAnalysisIfc ca)
Retrieves the ChangeRequestIfc object related to the given ChangeAnalysisIfc object by the ResearchedByIfc assocation. |
QueryResult |
getChangeRequest(ChangeAnalysisIfc ca,
boolean onlyChangeRequest)
Retrieves the ChangeRequestIfc object related to the given ChangeAnalysisIfc object by the ResearchedByIfc assocation. |
QueryResult |
getChangeRequest(ChangeIssueIfc ci)
Retrieves the ChangeRequestIfc object related to the given ChangeIssueIfc object by the FormalizedByIfc assocation. |
QueryResult |
getChangeRequest(ChangeIssueIfc ci,
boolean onlyChangeRequest)
Retrieves the ChangeRequestIfc object related to the given ChangeIssueIfc object by the FormalizedByIfc assocation. |
QueryResult |
getChangeRequest(ChangeOrderIfc co)
Retrieves the ChangeRequestIfc object related to the given ChangeOrderIfc object by the AddressedByIfc assocation. |
QueryResult |
getChangeRequest(ChangeOrderIfc co,
boolean onlyChangeRequest)
Retrieves the ChangeRequestIfc object related to the given ChangeOrderIfc object by the AddressedByIfc assocation. |
QueryResult |
getChangingChangeActivities(Changeable2 changeable)
Returns a QueryResult of ChangeActivity2 objects related to the given Changeable2 object by the ChangeRecord2 assocation. |
QueryResult |
getChangingChangeActivities(Changeable2 changeable,
boolean onlyChangeActivities)
Returns a QueryResult of ChangeActivity2 objects related to the given Changeable2 object by the ChangeRecord2 assocation. |
private long[] |
getChunk(long[] ids,
int i)
|
TableModel |
getCMIIBaseline(WTPart assembly)
Queries the database to compute whether the argument reference to a persistent Changeable2 object has a pending change. |
String |
getConceptualClassname()
Deprecated. |
private String |
getDisplayName(Class object)
|
private List |
getEffectivity(Changeable2 doc,
WTPart part)
|
ChangeRequest2 |
getFormalizingChangeRequest(ChangeIssue ci)
Retrieves the ChangeRequest2 object that formalizes the given ChangeIssue object. |
private long |
getId(Persistable obj)
|
QueryResult |
getImplementedChangeActivities(Changeable2 changeable)
Returns a QueryResult of ChangeActivity2 objects related to the given Changeable2 object by the ChangeRecord2 assocation. |
QueryResult |
getImplementedChangeActivities(Changeable2 changeable,
boolean onlyChangeActivities)
Returns a QueryResult of ChangeActivity2 objects related to the given Changeable2 object by the ChangeRecord2 assocation. |
private ObjectIdentifier |
getOid(Object object)
Returns object's associated oid. |
private String |
getOidString(Object object)
Returns String representation of the object's oid (debugging). |
QueryResult |
getProblemProducts(ChangeIssueIfc changeIssue)
Retrieves the WTProductMaster objects related to the given ChangeIssueIfc object by the ProblemProduct association. |
QueryResult |
getProblemProducts(ChangeIssueIfc changeIssue,
boolean onlyProducts)
Retrieves the WTProductMaster objects related to the given ChangeIssueIfc object by the ProblemProduct association. |
QueryResult |
getRelevantChangeRequests(Changeable2 changeable)
Returns a QueryResult of ChangeRequest2 objects related to the given Changeable2 object by the RelevantRequestData2 association. |
QueryResult |
getRelevantChangeRequests(Changeable2 changeable,
boolean onlyChangeRequests)
Returns a QueryResult of ChangeRequest2 objects related to the given Changeable2 object by the RelevantRequestData2 association. |
Folder |
getRelevantFolder(ChangeItemIfc changeItem)
Returns the folder that is 'relevant' for the argument change object. |
QueryResult |
getReportedAgainstChangeIssue(Changeable2 changeable)
Returns a QueryResult of ChangeIssues objects related to the given Changeable2 object by the ReportedAgainst assocation. |
private ArrayList |
getRow(Changeable2 doc,
String item_ad,
String ad,
WTPart part)
|
private List |
getRows(int level,
Set partUsages,
String item_ad,
View view)
|
private List |
getRows(int level,
WTPartUsageLink usage,
String item_ad,
View view)
|
private Set |
getRows(Set changeables,
String item_ad,
String ad,
WTPart part)
|
QueryResult |
getSubjectProducts(ChangeRequestIfc cr)
Retrieves the WTProductMaster objects related to the given ChangeRequestIfc object by the SubjectProductIfc assocation. |
QueryResult |
getSubjectProducts(ChangeRequestIfc cr,
boolean onlyProducts)
Retrieves the WTProductMaster objects related to the given ChangeRequestIfc object by the SubjectProductIfc assocation. |
QueryResult |
getUniqueAffectingChangeOrders(Changeable2 changeable)
Returns a QueryResult of unique ChangeOrder2 objects that are indirectly related to the given Changeable2 object. |
QueryResult |
getUniqueImplementedChangeOrders(Changeable2 changeable)
Returns a QueryResult of unique ChangeOrder2 objects that are indirectly related to the given Changeable2 object. |
private String |
getVersionInfo(Changeable2 changeable)
|
private void |
handleLifeCycleException(ChooseLifeCycleDelegate delegate,
LifeCycleManaged lcm)
Throw an appropriate exception in response to a problem setting a life cycle on a new change object |
boolean |
hasPendingChange(ObjectReference changeable2Ref)
Queries the database to compute whether the argument reference to a persistent Changeable2 object has a pending change. |
private boolean |
isAttached(long[] target_ids,
Class link_class,
String change_role)
|
private boolean |
isCheckNeeded(Persistable object)
|
private QuerySpec |
newChangeLinkSpec(Class linkClass,
Class changeClass,
String role,
long[] oids)
Returns a new query spec selecting the class name and OID of the changeables whose OIDs are specified, and are associated with the named link class (linking the changeable to the named change class). |
private WhereExpression |
newPendingChangeOrderExpression(FromClause fc,
int idx)
Returns a new where expression testing whether a change activity is associated with a pending change order, based on the from clause and index of a query selecting that change activity. |
static StandardChangeService2 |
newStandardChangeService2()
Default factory for the class. |
static boolean |
pendingChangeExist(Object object)
Deprecated. use ChangeHelper2.service.hasPendingChange(ObjectReference) |
static boolean |
pendingChangeExist(ObjectReference objectRef)
Deprecated. use ChangeHelper2.service.hasPendingChange(ObjectReference) |
static Set |
pendingChanges(Set objectRefs)
Deprecated. use ChangeHelper2.service.filterForPendingChanges(Set) |
protected void |
performStartupProcess()
Listens for the following events: PRE_STORE Set number attribute on all change objects. |
protected void |
propagateDeleteToAnalysisActivity(ChangeAnalysisIfc deleteTarget,
DetailedByIfc deleteLink)
|
protected void |
propagateDeleteToChangeActivity(ChangeOrderIfc deleteTarget,
IncludedInIfc deleteLink)
|
protected void |
propagateDeleteToChangeAnalysis(ChangeRequestIfc deleteTarget,
ResearchedByIfc deleteLink)
|
protected void |
propagateDeleteToChangeOrder(ChangeRequestIfc deleteTarget,
AddressedByIfc deleteLink)
|
private void |
propagateFolderChange(ChangeAnalysisIfc order)
|
private void |
propagateFolderChange(ChangeOrderIfc order)
|
private void |
propagateFolderChange(ChangeRequestIfc request)
|
void |
registerEvents(ManagerService managerService)
Register events with the passed ManagerService. |
private boolean |
sameBranch(Iterated iter1,
Iterated iter2)
Returns whether two iterations belong to the same branch. |
AddressedByIfc |
saveAddressedBy(ChangeRequestIfc cr,
ChangeOrderIfc co)
Stores the given concrete subclass of AddressedByIfc in the database. |
Vector |
saveAffectedActivityData(Vector aadVector)
Stores all the AffectedActivityData objects in the input vector and returns a vector of the persisted (or updated) AffectedActivityData objects. |
AnalysisActivityIfc |
saveAnalysisActivity(ChangeAnalysisIfc ca,
AnalysisActivityIfc aa)
Stores the given concrete subclass of AnalysisActivityIfc in the database and associates it to the given ChangeAnalysisIfc; the ChangeAnalysisIfc must be persistent already. |
ChangeActivityIfc |
saveChangeActivity(ChangeOrderIfc co,
ChangeActivityIfc ca)
Stores the given concrete subclass of ChangeActivityIfc in the database and associates it to the given ChangeOrderIfc; the ChangeOrderIfc must be persistent already. |
ChangeInvestigationIfc |
saveChangeInvestigation(ChangeRequestIfc cr,
ChangeInvestigationIfc ci)
Stores the given concrete subclass of ChangeInvestigationIfc in the database and associates it to the given ChangeRequestIfc; theChangeRequestIfc must be persistent already. |
ChangeIssueIfc |
saveChangeIssue(ChangeIssueIfc ci)
Stores the given concrete subclass of ChangeIssueIfc in the database. |
ChangeOrderIfc |
saveChangeOrder(ChangeRequestIfc cr,
ChangeOrderIfc co)
Stores the given concrete subclass of ChangeOrderIfc in the database and associates it to the given ChangeRequestIfc; theChangeRequestIfc must be persistent already. |
ChangeProposalIfc |
saveChangeProposal(ChangeRequestIfc cr,
ChangeProposalIfc cp)
Stores the given concrete subclass of ChangeProposalIfc in the database and associates it to the given ChangeRequestIfc; theChangeRequestIfc must be persistent already. |
Vector |
saveChangeRecord(Vector crVector)
Stores all the ChangeRecord2 objects in the input vector and returns a vector of the persisted (or updated) ChangeRecord2 objects. |
ChangeRequestIfc |
saveChangeRequest(ChangeRequestIfc cr)
Stores the given concrete subclass of ChangeRequestIfc in the database. |
FormalizedByIfc |
saveFormalizedBy(ChangeRequestIfc cr,
ChangeIssueIfc ci)
Stores the given concrete subclass of FormalizedByIfc in the database. |
Vector |
saveRelevantAnalysisData(Vector radVector)
Stores all the RelevantAnalysisData objects in the input vector and returns a vector of the persisted (or updated) RelevantAnalysisData objects. |
ResearchedByIfc |
saveResearchedBy(ChangeRequestIfc cr,
ChangeProposalIfc cp)
Stores the given concrete subclass of ResearchedByIfc in the database. |
private String |
showCollection(Collection collection)
Returns String representation of the list passed as argument (debugging). |
Vector |
storeAssociations(Class theClass,
ChangeItemIfc ci,
Vector changeables)
Stores all the associations between the ChangeItemIfc object and the Changeable2 objects in the input vector and returns a vector of the persisted association objects. |
void |
unattachChangeable(Changeable2 refObject,
ChangeItem changeItem,
Class linkClass,
String changeRole)
Deletes the association between a ChangeItem and a Changeable2. |
void |
unattachProduct(WTProductMaster refObject,
ChangeItemIfc changeItem,
Class linkClass,
String changeRole)
Deletes the association between a ChangeItem and a Changeable2. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String OID
private static final String ROLE_A
private static final String ROLE_B
private static boolean VERBOSE
private static boolean USE_FOLDER_DELEGATE
private static boolean USE_LIFECYCLE_DELEGATE
private static boolean WINDCHILL_PDM
private static int PC_QUERY_SIZE
private static boolean proIInstalled
Constructor Detail |
public StandardChangeService2()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public void registerEvents(ManagerService managerService)
registerEvents
in interface Manager
registerEvents
in class StandardManager
managerService
- public static StandardChangeService2 newStandardChangeService2() throws WTException
WTException
public AffectedActivityData deleteAffectedActivityData(AffectedActivityData aad) throws WTException, ChangeException2
deleteAffectedActivityData
in interface ChangeService2
aad
-
WTException
ChangeException2
AffectedActivityData
,
ChangeActivityIfc
,
Changeable2
public AnalysisActivityIfc deleteAnalysisActivity(AnalysisActivityIfc aa) throws ChangeException2, WTException
deleteAnalysisActivity
in interface ChangeService2
aa
-
ChangeException2
WTException
public ChangeActivityIfc deleteChangeActivity(ChangeActivityIfc ca) throws ChangeException2, WTException
deleteChangeActivity
in interface ChangeService2
ca
-
ChangeException2
WTException
public ChangeInvestigationIfc deleteChangeInvestigation(ChangeInvestigationIfc ci) throws ChangeException2, WTException
deleteChangeInvestigation
in interface ChangeService2
ci
-
ChangeException2
WTException
public ChangeIssueIfc deleteChangeIssue(ChangeIssueIfc ci) throws ChangeException2, WTException
deleteChangeIssue
in interface ChangeService2
ci
-
ChangeException2
WTException
public ChangeOrderIfc deleteChangeOrder(ChangeOrderIfc co) throws ChangeException2, WTException
deleteChangeOrder
in interface ChangeService2
co
-
ChangeException2
WTException
public ChangeProposalIfc deleteChangeProposal(ChangeProposalIfc cp) throws ChangeException2, WTException
deleteChangeProposal
in interface ChangeService2
cp
-
ChangeException2
WTException
public ChangeRecord2 deleteChangeRecord(ChangeRecord2 cr) throws WTException, ChangeException2
deleteChangeRecord
in interface ChangeService2
cr
-
WTException
ChangeException2
ChangeRecord2
,
ChangeActivityIfc
,
Changeable2
public ChangeRequestIfc deleteChangeRequest(ChangeRequestIfc cr) throws WTException, ChangeException2
deleteChangeRequest
in interface ChangeService2
cr
-
WTException
ChangeException2
public FormalizedByIfc deleteFormalizedBy(ChangeRequestIfc cr, ChangeIssueIfc ci) throws WTException, ChangeException2
deleteFormalizedBy
in interface ChangeService2
cr
- ci
-
WTException
ChangeException2
public RelevantAnalysisData deleteRelevantAnalysisData(RelevantAnalysisData rad) throws WTException, ChangeException2
deleteRelevantAnalysisData
in interface ChangeService2
rad
-
WTException
ChangeException2
RelevantAnalysisData
,
AnalysisActivityIfc
,
Changeable2
public QueryResult getAffectingChangeActivities(Changeable2 changeable, boolean onlyChangeActivities) throws ChangeException2, WTException
If onyChangeActivities is false,
the QueryResult returned contains a set of AffectedActivityData link
objects that have references to the Changeable objects.
Supported API: true
getAffectingChangeActivities
in interface ChangeService2
changeable
- onlyChangeActivities
-
ChangeException2
WTException
WTChangeActivity2
,
Changeable2
public QueryResult getAffectingChangeActivities(Changeable2 changeable) throws ChangeException2, WTException
getAffectingChangeActivities
in interface ChangeService2
changeable
-
ChangeException2
WTException
WTChangeActivity2
,
Changeable2
public QueryResult getAnalysisActivities(Changeable2 changeable, boolean onlyAnalysisActivities) throws ChangeException2, WTException
If onlyAnalysisActivities
is false, the QueryResult returned contains a set of RelevantAnalysisData
link objects that have references to the Changeable objects.
Supported API: true
getAnalysisActivities
in interface ChangeService2
changeable
- onlyAnalysisActivities
-
ChangeException2
WTException
WTChangeInvestigation
,
Changeable2
public QueryResult getAnalysisActivities(Changeable2 changeable) throws ChangeException2, WTException
getAnalysisActivities
in interface ChangeService2
changeable
-
ChangeException2
WTException
WTChangeInvestigation
,
Changeable2
public QueryResult getAnalysisActivities(ChangeAnalysisIfc ca) throws WTException, ChangeException2
getAnalysisActivities
in interface ChangeService2
ca
-
WTException
ChangeException2
AnalysisActivityIfc
,
AnalysisActivityIfc
,
DetailedByIfc
public QueryResult getAnalysisActivities(ChangeAnalysisIfc ca, boolean onlyAnalysisActivities) throws WTException, ChangeException2
If onlyAnalysisActivities
is false, the QueryResult returned contains a set of DetailedByIfc
link objects that have references to the AnalysisActivityIfc objects.
Supported API: true
getAnalysisActivities
in interface ChangeService2
ca
- onlyAnalysisActivities
-
WTException
ChangeException2
AnalysisActivityIfc
,
ChangeAnalysisIfc
,
DetailedByIfc
public QueryResult getChangeables(AnalysisActivityIfc aa) throws WTException, ChangeException2
getChangeables
in interface ChangeService2
aa
-
WTException
ChangeException2
Changeable2
,
AnalysisActivityIfc
,
RelevantAnalysisData
public QueryResult getChangeables(AnalysisActivityIfc aa, boolean onlyChangeables) throws WTException, ChangeException2
If onlyChangeables is false, the QueryResult
returned contains a set of RelevantAnalysisData link objects that
have references to the Changeable2 objects.
Get the working copy if the current user was the one who checked it
out, otherwise get the checked out copy.
Supported API: true
getChangeables
in interface ChangeService2
aa
- onlyChangeables
-
WTException
ChangeException2
Changeable2
,
AnalysisActivityIfc
,
RelevantAnalysisData
public QueryResult getChangeables(ChangeRequestIfc cr) throws WTException, ChangeException2
getChangeables
in interface ChangeService2
cr
-
WTException
ChangeException2
Changeable2
,
ChangeRequestIfc
,
RelevantRequestData2
public QueryResult getChangeables(ChangeRequestIfc cr, boolean onlyChangeables) throws WTException, ChangeException2
If onlyChangeables is false, the QueryResult
returned contains a set of RelevantRequestDataIfc link objects that
have references to the Changeable2 objects.
Get the working copy if the current user was the one who checked it
out, otherwise get the checked out copy.
Supported API: true
getChangeables
in interface ChangeService2
cr
- onlyChangeables
-
WTException
ChangeException2
Changeable2
,
ChangeRequestIfc
,
RelevantRequestData2
public QueryResult getChangeablesAfter(ChangeActivityIfc ca) throws WTException, ChangeException2
getChangeablesAfter
in interface ChangeService2
ca
-
WTException
ChangeException2
Changeable2
,
ChangeActivityIfc
,
ChangeRecord2
,
VersionControlHelper
,
MultipleLatestConfigSpec
public QueryResult getChangeablesAfter(ChangeActivityIfc ca, boolean onlyChangeables) throws WTException, ChangeException2
If onlyChangeables is false, the QueryResult
returned contains a set of ChangeRecord2 link objects that have references
to the Changeable2 objects.
Get the working copy if the current user was the one who checked it
out, otherwise get the checked out copy.
Supported API: true
getChangeablesAfter
in interface ChangeService2
ca
- onlyChangeables
-
WTException
ChangeException2
Changeable2
,
ChangeActivityIfc
,
ChangeRecord2
public QueryResult getChangeablesAfter(ChangeOrderIfc co) throws WTException, ChangeException2
getChangeablesAfter
in interface ChangeService2
co
-
WTException
ChangeException2
Changeable2
,
ChangeOrderIfc
,
ChangeActivityIfc
,
IncludedInIfc
,
ChangeRecord2
public QueryResult getChangeablesAfter(ChangeOrderIfc co, boolean onlyChangeables) throws WTException, ChangeException2
If onlyChangeables is false, the QueryResult
returned contains a set of ChangeRecord2 link objects that have references
to the Changeable2 objects.
Get the working copy if the current user was the one who checked it
out, otherwise get the checked out copy.
Supported API: true
getChangeablesAfter
in interface ChangeService2
co
- onlyChangeables
-
WTException
ChangeException2
Changeable2
,
ChangeOrderIfc
,
ChangeActivityIfc
,
IncludedInIfc
,
ChangeRecord2
public QueryResult getChangeablesBefore(ChangeActivityIfc ca) throws WTException, ChangeException2
getChangeablesBefore
in interface ChangeService2
ca
-
WTException
ChangeException2
Changeable2
,
ChangeActivityIfc
,
AffectedActivityData
public QueryResult getChangeablesBefore(ChangeActivityIfc ca, boolean onlyChangeables) throws WTException, ChangeException2
If onlyChangeables is false, the QueryResult
returned contains a set of AffectedActivityData link objects that
have references to the Changeable2 objects.
Get the working copy if the current user was the one who checked it
out, otherwise get the checked out copy.
Supported API: true
getChangeablesBefore
in interface ChangeService2
ca
- onlyChangeables
-
WTException
ChangeException2
Changeable2
,
ChangeActivityIfc
,
AffectedActivityData
public QueryResult getChangeablesBefore(ChangeOrderIfc co) throws WTException, ChangeException2
getChangeablesBefore
in interface ChangeService2
co
-
WTException
ChangeException2
Changeable2
,
ChangeOrderIfc
,
ChangeActivityIfc
,
IncludedInIfc
,
AffectedActivityData
public QueryResult getChangeablesBefore(ChangeOrderIfc co, boolean onlyChangeables) throws WTException, ChangeException2
If onlyChangeables is false, the QueryResult
returned contains a set of AffectedActivityData link objects that
have references to the Changeable2 objects.
Get the working copy if the current user was the one who checked it
out, otherwise get the checked out copy.
Supported API: true
getChangeablesBefore
in interface ChangeService2
co
- onlyChangeables
-
WTException
ChangeException2
Changeable2
,
ChangeOrderIfc
,
ChangeActivityIfc
,
IncludedInIfc
,
AffectedActivityData
public QueryResult getChangeActivities(ChangeOrderIfc co) throws WTException, ChangeException2
getChangeActivities
in interface ChangeService2
co
-
WTException
ChangeException2
ChangeActivityIfc
,
ChangeOrderIfc
,
IncludedInIfc
public QueryResult getChangeActivities(ChangeOrderIfc co, boolean onlyChangeActivities) throws WTException, ChangeException2
If onlyChangeActivities is
false, the QueryResult returned contains a set of IncludedInIfc link
objects that have references to the ChangeActivityIfc objects.
Supported API: true
getChangeActivities
in interface ChangeService2
co
- onlyChangeActivities
-
WTException
ChangeException2
ChangeActivityIfc
,
ChangeOrderIfc
,
IncludedInIfc
public QueryResult getChangeInvestigations(ChangeRequestIfc cr) throws WTException, ChangeException2
getChangeInvestigations
in interface ChangeService2
cr
-
WTException
ChangeException2
ChangeInvestigationIfc
,
ChangeRequestIfc
,
ResearchedByIfc
public QueryResult getChangeInvestigations(ChangeRequestIfc cr, boolean onlyChangeInvestigations) throws WTException, ChangeException2
If onlyChangeRequests
is false, the QueryResult returned contains a set of ResearchedByIfc
link objects that have references to the ChangeInvestigationIfc objects.
Supported API: true
getChangeInvestigations
in interface ChangeService2
cr
- onlyChangeInvestigations
-
WTException
ChangeException2
ChangeInvestigationIfc
,
ChangeRequestIfc
,
ResearchedByIfc
public QueryResult getChangeIssues(ChangeRequestIfc cr) throws WTException, ChangeException2
getChangeIssues
in interface ChangeService2
cr
-
WTException
ChangeException2
ChangeIssueIfc
,
ChangeRequestIfc
,
FormalizedByIfc
public QueryResult getChangeIssues(ChangeRequestIfc cr, boolean onlyChangeIssues) throws WTException, ChangeException2
If onlyChangeIssues is false, the
QueryResult returned contains a set of FormalizedByIfc link objects
that have references to the ChangeIssueIfc objects.
Supported API: true
getChangeIssues
in interface ChangeService2
cr
- onlyChangeIssues
-
WTException
ChangeException2
ChangeIssueIfc
,
ChangeRequestIfc
,
FormalizedByIfc
public QueryResult getChangeOrders(ChangeRequestIfc cr) throws WTException, ChangeException2
getChangeOrders
in interface ChangeService2
cr
-
WTException
ChangeException2
ChangeOrderIfc
,
ChangeRequestIfc
,
AddressedByIfc
public QueryResult getChangeOrders(ChangeRequestIfc cr, boolean onlyChangeOrders) throws WTException, ChangeException2
If onlyChangeOrders is false, the
QueryResult returned contains a set of AddressedByIfc link objects
that have references to the ChangeOrderIfc objects.
Supported API: true
getChangeOrders
in interface ChangeService2
cr
- onlyChangeOrders
-
WTException
ChangeException2
ChangeOrderIfc
,
ChangeRequestIfc
,
AddressedByIfc
public QueryResult getChangeProposals(ChangeRequestIfc cr) throws WTException, ChangeException2
getChangeProposals
in interface ChangeService2
cr
-
WTException
ChangeException2
ChangeProposalIfc
,
ChangeRequestIfc
,
ResearchedByIfc
public QueryResult getChangeProposals(ChangeRequestIfc cr, boolean onlyChangeProposals) throws WTException, ChangeException2
If onlyChangeProposals is
false, the QueryResult returned contains a set of ResearchedByIfc
link objects that have references to the ChangeProposalIfc objects.
Supported API: true
getChangeProposals
in interface ChangeService2
cr
- onlyChangeProposals
-
WTException
ChangeException2
ChangeProposalIfc
,
ChangeRequestIfc
,
ResearchedByIfc
public ChangeRequest2 getFormalizingChangeRequest(ChangeIssue ci) throws ChangeException2, WTException
getFormalizingChangeRequest
in interface ChangeService2
ci
-
ChangeException2
WTException
ChangeRequest2
,
ChangeIssue
public QueryResult getImplementedChangeActivities(Changeable2 changeable) throws ChangeException2, WTException
getImplementedChangeActivities
in interface ChangeService2
changeable
-
ChangeException2
WTException
WTChangeActivity2
,
Changeable2
public QueryResult getImplementedChangeActivities(Changeable2 changeable, boolean onlyChangeActivities) throws ChangeException2, WTException
If onlyChangeActivities is
false, the QueryResult returned contains a set of ChangeRecord2 link
objects that have references to the Changeable objects.
Supported API: true
getImplementedChangeActivities
in interface ChangeService2
changeable
- onlyChangeActivities
-
ChangeException2
WTException
WTChangeActivity2
,
Changeable2
public AnalysisActivityIfc saveAnalysisActivity(ChangeAnalysisIfc ca, AnalysisActivityIfc aa) throws ChangeException2, WTException
saveAnalysisActivity
in interface ChangeService2
ca
- aa
-
ChangeException2
WTException
Change2DelegateFactory
,
ChooseLifeCycleDelegate
,
ChooseFolderDelegate
public ChangeActivityIfc saveChangeActivity(ChangeOrderIfc co, ChangeActivityIfc ca) throws ChangeException2, WTException
saveChangeActivity
in interface ChangeService2
co
- ca
-
ChangeException2
WTException
Change2DelegateFactory
,
ChooseLifeCycleDelegate
,
ChooseFolderDelegate
public ChangeInvestigationIfc saveChangeInvestigation(ChangeRequestIfc cr, ChangeInvestigationIfc ci) throws ChangeException2, WTException
saveChangeInvestigation
in interface ChangeService2
cr
- ci
-
ChangeException2
WTException
Change2DelegateFactory
,
ChooseLifeCycleDelegate
,
ChooseFolderDelegate
public ChangeIssueIfc saveChangeIssue(ChangeIssueIfc ci) throws ChangeException2, WTException
saveChangeIssue
in interface ChangeService2
ci
-
ChangeException2
WTException
Change2DelegateFactory
,
ChooseLifeCycleDelegate
,
ChooseFolderDelegate
public ChangeOrderIfc saveChangeOrder(ChangeRequestIfc cr, ChangeOrderIfc co) throws ChangeException2, WTException
saveChangeOrder
in interface ChangeService2
cr
- co
-
ChangeException2
WTException
Change2DelegateFactory
,
ChooseLifeCycleDelegate
,
ChooseFolderDelegate
public ChangeProposalIfc saveChangeProposal(ChangeRequestIfc cr, ChangeProposalIfc cp) throws ChangeException2, WTException
saveChangeProposal
in interface ChangeService2
cr
- cp
-
ChangeException2
WTException
Change2DelegateFactory
,
ChooseLifeCycleDelegate
,
ChooseFolderDelegate
public ChangeRequestIfc saveChangeRequest(ChangeRequestIfc cr) throws ChangeException2, WTException
saveChangeRequest
in interface ChangeService2
cr
-
ChangeException2
WTException
Change2DelegateFactory
,
ChooseLifeCycleDelegate
public FormalizedByIfc saveFormalizedBy(ChangeRequestIfc cr, ChangeIssueIfc ci) throws ChangeException2, WTException
saveFormalizedBy
in interface ChangeService2
cr
- ci
-
ChangeException2
WTException
FormalizedByIfc
,
ChangeRequestIfc
,
ChangeIssueIfc
,
FormalizedByDelegate
public Vector saveRelevantAnalysisData(Vector radVector) throws ChangeException2, WTException
saveRelevantAnalysisData
in interface ChangeService2
radVector
-
ChangeException2
WTException
RelevantAnalysisData
public Vector saveAffectedActivityData(Vector aadVector) throws ChangeException2, WTException
saveAffectedActivityData
in interface ChangeService2
aadVector
-
ChangeException2
WTException
AffectedActivityData
public Vector saveChangeRecord(Vector crVector) throws ChangeException2, WTException
saveChangeRecord
in interface ChangeService2
crVector
-
ChangeException2
WTException
ChangeRecord2
public QueryResult getChangeRequest(ChangeIssueIfc ci) throws WTException, ChangeException2
getChangeRequest
in interface ChangeService2
ci
-
WTException
ChangeException2
ChangeRequestIfc
,
ChangeIssueIfc
,
FormalizedByIfc
public QueryResult getChangeRequest(ChangeIssueIfc ci, boolean onlyChangeRequest) throws WTException, ChangeException2
If onlyChangeRequest is false,
the QueryResult returned contains zero or one FormalizedByIfc link
objects that has a reference to the ChangeRequestIfc object.
Supported API: true
getChangeRequest
in interface ChangeService2
ci
- onlyChangeRequest
-
WTException
ChangeException2
ChangeRequestIfc
,
ChangeIssueIfc
,
FormalizedByIfc
public QueryResult getChangeRequest(ChangeAnalysisIfc ca) throws WTException, ChangeException2
getChangeRequest
in interface ChangeService2
ca
-
WTException
ChangeException2
ChangeRequestIfc
,
ChangeAnalysisIfc
,
ResearchedByIfc
public QueryResult getChangeRequest(ChangeAnalysisIfc ca, boolean onlyChangeRequest) throws WTException, ChangeException2
If onlyChangeRequest is false,
the QueryResult returned contains zero or one ResearchedByIfc link
objects that has a reference to the ChangeRequestIfc object.
Supported API: true
getChangeRequest
in interface ChangeService2
ca
- onlyChangeRequest
-
WTException
ChangeException2
ChangeRequestIfc
,
ChangeAnalysisIfc
,
ResearchedByIfc
public QueryResult getChangeRequest(ChangeOrderIfc co) throws WTException, ChangeException2
getChangeRequest
in interface ChangeService2
co
-
WTException
ChangeException2
ChangeRequestIfc
,
ChangeOrderIfc
,
AddressedByIfc
public QueryResult getChangeRequest(ChangeOrderIfc co, boolean onlyChangeRequest) throws WTException, ChangeException2
If onlyChangeRequest is false,
the QueryResult returned contains zero or one AddressedByIfc link
objects that has a reference to the ChangeRequestIfc object.
Supported API: true
getChangeRequest
in interface ChangeService2
co
- onlyChangeRequest
-
WTException
ChangeException2
ChangeRequestIfc
,
ChangeOrderIfc
,
AddressedByIfc
public QueryResult getChangeAnalysis(AnalysisActivityIfc aa) throws WTException, ChangeException2
getChangeAnalysis
in interface ChangeService2
aa
-
WTException
ChangeException2
ChangeAnalysisIfc
,
AnalysisActivityIfc
,
DetailedByIfc
public QueryResult getChangeAnalysis(AnalysisActivityIfc aa, boolean onlyChangeAnalysis) throws WTException, ChangeException2
If onlyChangeAnalysis is false,
the QueryResult returned contains zero or one DetailedByIfc link objects
that has a reference to the ChangeAnalysisIfc object.
Supported API: true
getChangeAnalysis
in interface ChangeService2
aa
- onlyChangeAnalysis
-
WTException
ChangeException2
ChangeAnalysisIfc
,
AnalysisActivityIfc
,
AddressedByIfc
public QueryResult getChangeOrder(ChangeActivityIfc ca) throws WTException, ChangeException2
getChangeOrder
in interface ChangeService2
ca
-
WTException
ChangeException2
ChangeOrderIfc
,
ChangeActivityIfc
,
IncludedInIfc
public QueryResult getChangeOrder(ChangeActivityIfc ca, boolean onlyChangeActivity) throws WTException, ChangeException2
If onlyChangeOrder is false, the
QueryResult returned contains zero or one IncludedInIfc link objects
that has a reference to the ChangeOrderIfc object.
Supported API: true
getChangeOrder
in interface ChangeService2
ca
- onlyChangeActivity
-
WTException
ChangeException2
ChangeOrderIfc
,
ChangeActivityIfc
,
IncludedInIfc
public QueryResult getChangingChangeActivities(Changeable2 changeable, boolean onlyChangeActivities) throws ChangeException2, WTException
If onyChangeActivities is false,
the QueryResult returned contains a set of AffectedActivityData link
objects that have references to the Changeable objects.
Supported API: true
getChangingChangeActivities
in interface ChangeService2
changeable
- onlyChangeActivities
-
ChangeException2
WTException
WTChangeActivity2
,
Changeable2
public QueryResult getChangingChangeActivities(Changeable2 changeable) throws ChangeException2, WTException
getChangingChangeActivities
in interface ChangeService2
changeable
-
ChangeException2
WTException
WTChangeActivity2
,
Changeable2
public ChangeItem getChangeItem(Class theClass, long id) throws WTException, ChangeException2
getChangeItem
in interface ChangeService2
theClass
- id
-
WTException
ChangeException2
public Vector storeAssociations(Class theClass, ChangeItemIfc ci, Vector changeables) throws ChangeException2, WTException
storeAssociations
in interface ChangeService2
theClass
- ci
- changeables
-
ChangeException2
WTException
public ChangeItem getChangeItem(String oid) throws WTException, ChangeException2
getChangeItem
in interface ChangeService2
oid
-
WTException
ChangeException2
ReferenceFactory
public ChangeRequestIfc findChangeRequest(Object theObject) throws WTException, ChangeException2
findChangeRequest
in interface ChangeService2
theObject
-
WTException
ChangeException2
ChangeRequestIfc
,
Change2DelegateFactory
,
FindChangeRequestDelegate
public QueryResult getRelevantChangeRequests(Changeable2 changeable, boolean onlyChangeRequests) throws ChangeException2, WTException
If onlyChangeRequests is false,
the QueryResult returned contains a set of RelevantRequestData2 link
objects that have references to the Changeable2 object.
Supported API: true
getRelevantChangeRequests
in interface ChangeService2
changeable
- onlyChangeRequests
-
ChangeException2
WTException
WTChangeRequest2
,
Changeable2
public QueryResult getRelevantChangeRequests(Changeable2 changeable) throws ChangeException2, WTException
getRelevantChangeRequests
in interface ChangeService2
changeable
-
ChangeException2
WTException
WTChangeRequest2
,
Changeable2
public void unattachChangeable(Changeable2 refObject, ChangeItem changeItem, Class linkClass, String changeRole) throws ChangeException2, WTException
unattachChangeable
in interface ChangeService2
refObject
- A Changeable2 object to be disassociatd from a ChangeItem.changeItem
- The ChangeItem associated to the Changeable2.linkClass
- The associated link Class, which has a ChangeItem as role A.changeRole
- The role name.
ChangeException2
WTException
public QueryResult getSubjectProducts(ChangeRequestIfc cr, boolean onlyProducts) throws WTException, ChangeException2
getSubjectProducts
in interface ChangeService2
cr
- onlyProducts
-
WTException
ChangeException2
WTProductMaster
,
ChangeRequestIfc
,
SubjectProduct
public QueryResult getSubjectProducts(ChangeRequestIfc cr) throws WTException, ChangeException2
If onlyProducts is false, the QueryResult
returned contains a set of SubjectProductIfc link objects that have
references to the WTProductMaster objects.
Get the working copy if the current user was the one who checked it
out, otherwise get the checked out copy.
Supported API: true
getSubjectProducts
in interface ChangeService2
cr
-
WTException
ChangeException2
WTProductMaster
,
ChangeRequestIfc
,
SubjectProduct
public void unattachProduct(WTProductMaster refObject, ChangeItemIfc changeItem, Class linkClass, String changeRole) throws ChangeException2, WTException
unattachProduct
in interface ChangeService2
refObject
- A Changeable2 object to be disassociatd from a ChangeItem.changeItem
- The ChangeItem associated to the Changeable2.linkClass
- The associated link Class, which has a ChangeItem as role A.changeRole
- The role name.
ChangeException2
WTException
public FormalizedByIfc deleteFormalizedBy(Class linkClass, ChangeRequestIfc cr, ChangeIssueIfc ci) throws WTException, ChangeException2
deleteFormalizedBy
in interface ChangeService2
linkClass
- cr
- ci
-
WTException
ChangeException2
public QueryResult getChangeables(ChangeIssueIfc changeIssue) throws WTException, ChangeException2
getChangeables
in interface ChangeService2
changeIssue
-
WTException
ChangeException2
public QueryResult getChangeables(ChangeIssueIfc changeIssue, boolean onlyChangeables) throws WTException, ChangeException2
If onlyChangeables is false, the QueryResult
returned contains a set of ReportedAgainst link objects that have
references to the Changeable2 objects.
Supported API: true
getChangeables
in interface ChangeService2
changeIssue
- onlyChangeables
-
WTException
ChangeException2
public QueryResult getProblemProducts(ChangeIssueIfc changeIssue, boolean onlyProducts) throws WTException, ChangeException2
getProblemProducts
in interface ChangeService2
changeIssue
- onlyProducts
-
WTException
ChangeException2
public QueryResult getProblemProducts(ChangeIssueIfc changeIssue) throws WTException, ChangeException2
getProblemProducts
in interface ChangeService2
changeIssue
-
WTException
ChangeException2
public AddressedByIfc deleteAddressedBy(ChangeRequestIfc cr, ChangeOrderIfc co) throws WTException, ChangeException2
deleteAddressedBy
in interface ChangeService2
cr
- co
-
WTException
ChangeException2
public QueryResult getReportedAgainstChangeIssue(Changeable2 changeable) throws WTException, ChangeException2
getReportedAgainstChangeIssue
in interface ChangeService2
changeable
-
WTException
ChangeException2
public QueryResult getUniqueImplementedChangeOrders(Changeable2 changeable) throws ChangeException2, WTException
getUniqueImplementedChangeOrders
in interface ChangeService2
changeable
-
ChangeException2
WTException
public QueryResult getUniqueAffectingChangeOrders(Changeable2 changeable) throws ChangeException2, WTException
getUniqueAffectingChangeOrders
in interface ChangeService2
changeable
-
ChangeException2
WTException
public ResearchedByIfc saveResearchedBy(ChangeRequestIfc cr, ChangeProposalIfc cp) throws ChangeException2, WTException
saveResearchedBy
in interface ChangeService2
cr
- cp
-
ChangeException2
WTException
ResearchedByIfc
,
ChangeRequestIfc
,
ChangeProposalIfc
,
ResearchedByDelegate
public AddressedByIfc saveAddressedBy(ChangeRequestIfc cr, ChangeOrderIfc co) throws ChangeException2, WTException
saveAddressedBy
in interface ChangeService2
cr
- co
-
ChangeException2
WTException
AddressedByIfc
,
ChangeRequestIfc
,
ChangeOrderIfc
,
AddressedByDelegate
public Folder getRelevantFolder(ChangeItemIfc changeItem) throws WTException
getRelevantFolder
in interface ChangeService2
changeItem
-
WTException
public Set filterForPendingChanges(Set changeable2Refs) throws WTException
Under Review
, Implementation
,
or Open
; or,Under
Review
, Implementation
, or Open
.
filterForPendingChanges
in interface ChangeService2
changeable2Refs
- set of wt.fc.ObjectReference objects referencing Changeable2 objects to be filtered for pending changes
WTException
public boolean hasPendingChange(ObjectReference changeable2Ref) throws WTException
Under Review
, Implementation
,
or Open
; or,Under
Review
, Implementation
, or Open
.
hasPendingChange
in interface ChangeService2
changeable2Ref
- reference to a Changeable2 object to be tested for pending change
WTException
public TableModel getCMIIBaseline(WTPart assembly) throws WTException
Under Review
, Implementation
,
or Open
; or,Under
Review
, Implementation
, or Open
.
getCMIIBaseline
in interface ChangeService2
assembly
-
WTException
protected void chooseLifeCycle(ChangeItemIfc ci) throws ChangeException2, WTException
ChangeException2
WTException
protected ChangeItemIfc assignLocation(ChangeItemIfc target, ChangeItemIfc source) throws ChangeException2, WTException
target
- The target change object.source
- The source change object.
ChangeException2
WTException
protected void assignLocation(ChangeItemIfc target) throws ChangeException2, WTException
target
- The target change object.
ChangeException2
WTException
protected ChangeItemIfc changeFolder(ChangeItemIfc target, ChangeItemIfc source) throws ChangeException2, WTException
ChangeException2
WTException
private void checkChangeItemLock(Lockable target) throws WTException
WTException
private void checkChangeItemModification(Persistable target, String messageID) throws WTException
WTException
protected void checkStoreOfAffectedActivityData(AffectedActivityData target) throws WTException
WTException
protected void checkStoreOfChangeRecord(ChangeRecordIfc target) throws WTException
WTException
protected void checkStoreOfFormalizedBy(FormalizedByIfc target) throws WTException
WTException
protected void checkStoreOfRelevantAnalysisData(RelevantAnalysisData target) throws WTException
WTException
protected void checkStoreOfRelevantRequestData2(RelevantRequestData2 target) throws WTException
WTException
protected void checkStoreOfReportedAgainst(ReportedAgainst target) throws WTException
WTException
protected void checkModifyOfAffectedActivityData(AffectedActivityData target) throws WTException
WTException
protected void checkModifyOfChangeRecord(ChangeRecordIfc target) throws WTException
WTException
protected void checkModifyOfRelevantAnalysisData(RelevantAnalysisData target) throws WTException
WTException
protected void checkModifyOfRelevantRequestData2(RelevantRequestData2 target) throws WTException
WTException
protected void checkDeleteOfChangeRecord(ChangeRecordIfc target) throws WTException
WTException
protected void propagateDeleteToChangeAnalysis(ChangeRequestIfc deleteTarget, ResearchedByIfc deleteLink) throws WTException
WTException
protected void propagateDeleteToChangeOrder(ChangeRequestIfc deleteTarget, AddressedByIfc deleteLink) throws WTException
WTException
protected void propagateDeleteToAnalysisActivity(ChangeAnalysisIfc deleteTarget, DetailedByIfc deleteLink) throws WTException
WTException
protected void propagateDeleteToChangeActivity(ChangeOrderIfc deleteTarget, IncludedInIfc deleteLink) throws WTException
WTException
protected void copyChangeableLinks(Changeable2 original, Changeable2 working) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
protected void copyChangeableLinks(WTKeyedMap changeable_map, WTCollection changeable_list) throws WTException
WTException
protected void deleteChangeLinks(WTCollection changeableList) throws WTException
WTException
protected void checkDeleteOfChangeableCollection(WTArrayList target_list) throws WTException, ChangeException2
WTException
ChangeException2
private long[] getChunk(long[] ids, int i)
private WTArrayList filterTargets(WTCollection targets) throws WTException
WTException
private boolean isCheckNeeded(Persistable object) throws WTException
WTException
protected void checkDeleteOfChangeable(Changeable2 deleteTarget) throws WTException, ChangeException2
WTException
ChangeException2
private boolean isAttached(long[] target_ids, Class link_class, String change_role) throws WTException
WTException
private SearchCondition getAttachedSc(Class link_class, String other_role, long[] target_ids) throws WTException
WTException
private void propagateFolderChange(ChangeRequestIfc request) throws ChangeException2, WTException
ChangeException2
WTException
private void propagateFolderChange(ChangeOrderIfc order) throws ChangeException2, WTException
ChangeException2
WTException
private void propagateFolderChange(ChangeAnalysisIfc order) throws ChangeException2, WTException
ChangeException2
WTException
protected void checkLocation(FolderEntry target) throws ChangeException2, WTException
ChangeException2
WTException
private void emitCAStateChangedEvent(ChangeActivity2 ca) throws ChangeException2, WTException
ChangeException2
WTException
private String getDisplayName(Class object)
private void handleLifeCycleException(ChooseLifeCycleDelegate delegate, LifeCycleManaged lcm) throws ChangeException2, WTException
delegate
- A ChooseLifeCycleDelegate objectlcm
- A LifeCycleManaged object
ChangeException2
wt.fc.WTException
WTException
private static void dispatchVetoableEvent(String eventType, Object eventTarget, Object secondaryEventTarget) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public static boolean pendingChangeExist(Object object)
public static boolean pendingChangeExist(ObjectReference objectRef)
objectRef
- a reference to a Changeable2 objectpublic static Set pendingChanges(Set objectRefs) throws WTException
WTException
private QuerySpec newChangeLinkSpec(Class linkClass, Class changeClass, String role, long[] oids) throws WTException
WTException
private WhereExpression newPendingChangeOrderExpression(FromClause fc, int idx) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private void fixDomainAssignment(CabinetMember target, FolderEntry source) throws WTException
target
- the non-foldered change object (change analysis, analysis activity, or change activity)
source the "parent" of the target change object (change request, change analysis, or change order)
ClassCastException
- if the target or source is not DomainAdministered
NullPointerException if either argument is non-persistent
WTException
private long getId(Persistable obj) throws WTException
WTException
private ObjectIdentifier getOid(Object object)
private String getOidString(Object object)
private boolean sameBranch(Iterated iter1, Iterated iter2) throws WTException
WTException
private String showCollection(Collection collection) throws WTException
WTException
private List getRows(int level, Set partUsages, String item_ad, View view) throws WTException
WTException
private List getRows(int level, WTPartUsageLink usage, String item_ad, View view) throws WTException
WTException
private Set getRows(Set changeables, String item_ad, String ad, WTPart part) throws WTException
WTException
private ArrayList getRow(Changeable2 doc, String item_ad, String ad, WTPart part) throws WTException
WTException
private List getEffectivity(Changeable2 doc, WTPart part) throws WTException
WTException
private String getVersionInfo(Changeable2 changeable) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |