Class BatchOperationsListener
- java.lang.Object
-
- ro.sync.exml.workspace.api.listeners.BatchOperationsListener
-
@API(type=EXTENDABLE, src=PUBLIC) public class BatchOperationsListener extends java.lang.Object
Listener which can be notified before and after a batch operation which will modify lots of resources (Replace All in Files, Rename in Files) is started. For example a CMS may automatically check out resources if Oxygen wants to modify them during such operations.- Since:
- 18.1
-
-
Constructor Summary
Constructors Constructor Description BatchOperationsListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aboutToModifyResource(BatchOperationInfo batchOperationInfo, java.net.URL url)
A resource is about to be modified.void
operationAboutToStart(BatchOperationInfo batchOperationInfo)
About to start a batch operation.void
operationFinished(BatchOperationInfo batchOperationInfo)
The batch operation finished.void
resourceModified(BatchOperationInfo batchOperationInfo, java.net.URL url)
A resource was modified.
-
-
-
Method Detail
-
operationAboutToStart
public void operationAboutToStart(BatchOperationInfo batchOperationInfo)
About to start a batch operation.- Parameters:
batchOperationInfo
- Information about the operation that will start.
-
operationFinished
public void operationFinished(BatchOperationInfo batchOperationInfo)
The batch operation finished.- Parameters:
batchOperationInfo
- Information about the operation that was finished.
-
aboutToModifyResource
public void aboutToModifyResource(BatchOperationInfo batchOperationInfo, java.net.URL url)
A resource is about to be modified. This is called after the content from the URL has been read and before it is saved back.- Parameters:
batchOperationInfo
- Information about the current operation.url
- The URL of the resource which will be modified.
-
resourceModified
public void resourceModified(BatchOperationInfo batchOperationInfo, java.net.URL url)
A resource was modified.- Parameters:
batchOperationInfo
- Information about the current operation.url
- The URL of the resource which was modified.
-
-