public interface IFileChangesRecorder
All recorded changes will then be automatically added to the next SVN operation run on the associated CMS node (committed with the model, or reverted with it).
This service may be used by code generation modules to add and manage generated files to version. The module should use this service when it detects a file must be regenerated, has moved or will be deleted.
Modifier and Type | Method and Description |
---|---|
java.io.File |
getRecordedFile(MObject related,
java.lang.String key)
Look for an existing recorded file path.
|
void |
recordDeletedFile(MObject related,
java.lang.String key,
java.io.File file)
Record a file deletion.
|
java.io.File |
recordFile(MObject related,
java.lang.String key,
java.io.File file)
Record a file to be associated with the CMS node SVN operations.
|
java.io.File |
recordFileMove(MObject related,
java.lang.String key,
java.io.File oldFile,
java.io.File newFile)
Record a moved/renamed file.
|
java.io.File recordFile(MObject related, java.lang.String key, java.io.File file)
related
- the CMS nodekey
- : a key to identify the file among all files associated to the element.file
- the associated file pathvoid recordDeletedFile(MObject related, java.lang.String key, java.io.File file)
file parameter is optional
related
- the related CMS nodekey
- a key to identify the file among all files associated to the element.file
- the deleted file.java.io.File getRecordedFile(MObject related, java.lang.String key)
Looks into recordFile(MObject, String, File)
and recordFileMove(MObject, String, File, File)
calls.
related
- the related CMS nodekey
- a key to identify the file among all files associated to the element.java.io.File recordFileMove(MObject related, java.lang.String key, java.io.File oldFile, java.io.File newFile)
related
- the CMS nodekey
- a key to identify the file among all files associated to the element.oldFile
- the previous file path.newFile
- the new file path.