Package wt.change2
Class ChangeProcessLink
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.vc._VersionToVersionLink
wt.vc.VersionToVersionLink
wt.change2._FlexibleChangeLink
wt.change2.FlexibleChangeLink
wt.change2._ChangeProcessLink
wt.change2.ChangeProcessLink
- All Implemented Interfaces:
Externalizable,Serializable,wt.change2._ChangeProcessLinkTypeInterface,wt.change2.ChangeProcessLinkTypeInterface,wt.fc._BinaryLink,wt.fc._Link,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.archive._Archiveable,wt.fc.archive.Archiveable,BinaryLink,Link,NetFactor,ObjectMappable,Persistable,wt.federation._FederatedLinkHolder,wt.federation._RemotelyLinkable,wt.federation.FederatedLinkHolder,wt.federation.RemotelyLinkable,wt.iba.value._IBAHolder,wt.iba.value.IBAHolder,DisplayIdentification,wt.type._Typed,wt.type._TypeManaged,wt.type.FlexTyped,wt.type.Typed,wt.type.TypeManaged,wt.ufid._Federatable,wt.ufid.Federatable
@GenAsBinaryLink(superClass=FlexibleChangeLink.class,
interfaces=wt.change2.ChangeProcessLinkTypeInterface.class,
extendable=false,
roleA=@GeneratedRole(name="parent",type=FlexibleChangeItem.class,supportedAPI=PUBLIC,cardinality=MANY,accessors=@PropertyAccessors(setExceptions={}),javaDoc="Parent change object (must have attribute FlexibleChangeItem.flexible = true)."),
roleB=@GeneratedRole(name="child",type=FlexibleChangeItem.class,supportedAPI=PUBLIC,cardinality=MANY,accessors=@PropertyAccessors(setExceptions={}),javaDoc="Child change object (must have attribute FlexibleChangeItem.flexible = true)."))
public final class ChangeProcessLink
extends _ChangeProcessLink
Link for flexible change process associations between two FlexibleChangeItem objects
(i.e., for operations where FlexibleChangeLinkType.PROCESS is specified).
This link supersedes LegacyChangeLink when the change association mode is non-legacy.
Role objects must implement FlexibleChangeItem and Typed, and extend VersionableChangeItem
or ChangeItemResource.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Field Summary
Fields inherited from class wt.change2._FlexibleChangeLink
CHILD_ROLE, DESCRIPTION, PARENT_ROLE -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeProcessLinknewChangeProcessLink(FlexibleChangeItem parent, FlexibleChangeItem child) Factory to create flexible change process link from parent and child objects.static ChangeProcessLinknewChangeProcessLink(LegacyChangeLink legacyLink, boolean swapRoles, TypeIdentifier linkType) Factory to convert a legacy change link to a change process link.Methods inherited from class wt.change2._ChangeProcessLink
getChild, getParent, setChild, setParentMethods inherited from class wt.change2.FlexibleChangeLink
initializeMethods inherited from class wt.change2._FlexibleChangeLink
getDescription, setDescriptionMethods inherited from class wt.vc.VersionToVersionLink
duplicate, getAllObjects, getRoleObject, initialize, setRoleAObject, setRoleBObject, setRoleObjectMethods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.fc.Persistable
checkAttributes
-
Method Details
-
newChangeProcessLink
public static ChangeProcessLink newChangeProcessLink(FlexibleChangeItem parent, FlexibleChangeItem child) throws WTException Factory to create flexible change process link from parent and child objects.
Supported API: true- Parameters:
parent- Parent FlexibleChangeItem object (role A).child- Child FlexibleChangeItem object (role A).- Returns:
- New unpersisted ChangeProcessLink object initialized with parent and child objects.
- Throws:
WTException
-
newChangeProcessLink
public static ChangeProcessLink newChangeProcessLink(LegacyChangeLink legacyLink, boolean swapRoles, TypeIdentifier linkType) throws WTException Factory to convert a legacy change link to a change process link.
Supported API: true- Parameters:
legacyLink- Persisted LegacyChangeLink from which to create new ChangeProcessLink. The replacement reference in this link is set to the new ChangeProcessLink, but must be persisted by caller.swapRoles- True to swap role A and B objects, false to retain legacy order.linkType- Type identifier of new ChangeProcessLink object (null for root type).- Returns:
- New unpersisted ChangeProcessLink object to replace the legacy link (set as marked-for-delete).
- Throws:
WTException
-