WorkspaceOperationInterface
interface WorkspaceOperationInterface (View source)
| internal |
Defines an interface for workspace operations.
Example operations are publishing, merging and syncing with a remote workspace.
Methods
Returns the human-readable label of the source.
Returns the human-readable label of the target.
Checks if there are any conflicts between the source and the target.
Gets the revision identifiers for items which have changed on the target.
Gets the revision identifiers for items which have changed on the source.
Gets the total number of items which have changed on the target.
Gets the total number of items which have changed on the source.
Details
string
getSourceLabel()
Returns the human-readable label of the source.
string
getTargetLabel()
Returns the human-readable label of the target.
array
checkConflictsOnTarget()
Checks if there are any conflicts between the source and the target.
array
getDifferringRevisionIdsOnTarget()
Gets the revision identifiers for items which have changed on the target.
array
getDifferringRevisionIdsOnSource()
Gets the revision identifiers for items which have changed on the source.
int
getNumberOfChangesOnTarget()
Gets the total number of items which have changed on the target.
This returns the aggregated changes count across all entity types. For example, if two nodes and one taxonomy term have changed on the target, the return value is 3.
int
getNumberOfChangesOnSource()
Gets the total number of items which have changed on the source.
This returns the aggregated changes count across all entity types. For example, if two nodes and one taxonomy term have changed on the source, the return value is 3.