The AssetDiffFormHandler has the following submit handler methods:

Method

Function

handleDiffVersions

This handler method accomplishes four tasks:

1. Locates the asset version RepositoryItems by combining the version (from the indexedVersions property) and the assetURI

2. Saves the two located RepositoryItems to the item1 and item2 properties, respectively

3. Compares the property values in the RepositoryItems

4. Records in the diffProperties property the property names with different values, and the values themselves as objects listed in the diffChangeList property.

To use this method, you must specify values for the following properties:

assetURI
workspaceName
viewAttribute
succesView
indexedVersions

Note that workspaceName is only required when your project’s working version is involved in the comparison.

handleMergeConflicts

Resolves which of the conflicting property values to use in the latest version by overwriting the current values with the user’s selection.

To use this method, you need to specify values for the following properties: selectedVersionsForMerge, viewAttribute, and succesView.

handleMergeCurrentVersion

Saves all property values in the user’s version to the latest version and discards all values provided in the competing version.

To use this method, you need to specify values for the following properties: projectId, viewAttribute, and succesView.

handleMergeLatestVersion

Saves all property values in the competing version to the latest version and discards all values provided in the user’s version.

To use this method, you need to specify values for the following properties: projectId, viewAttribute, and succesView.

 
loading table of contents...