Package org.opencms.synchronize
Interface I_CmsSynchronizeModification
public interface I_CmsSynchronizeModification
Defines methods which can be pluged into the syncronisation process between VFS and "real" FS.
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
modifyFs
(CmsObject cms, CmsResource vfsRes, File fsFile) Possibility to modify a resource after it has benn exported or updated to the FS.void
modifyVfs
(CmsObject cms, CmsResource vfsRes, File fsFile) Possibility to modify a resource after it has been imported or updated into the VFS.Translates the resource name.
-
Method Details
-
modifyFs
Possibility to modify a resource after it has benn exported or updated to the FS.- Parameters:
cms
- the current CmsObjectvfsRes
- the resource in the VFSfsFile
- the resource in the FS- Throws:
CmsSynchronizeException
- if something goes wrong
-
modifyVfs
Possibility to modify a resource after it has been imported or updated into the VFS.- Parameters:
cms
- the current CmsObjectvfsRes
- the resource in the VFSfsFile
- the resource in the FS- Throws:
CmsSynchronizeException
- if something goes wrong
-
translate
Translates the resource name.This is nescessary since the server FS does allow different naming conventions than the VFS. If no special translation is required and the default OpenCms FS-VFS translation should be used, null must be returned.
- Parameters:
cms
- the current CmsObjectresName
- the resource name to be translated- Returns:
- the translated resource name or null
- Throws:
CmsSynchronizeException
- if something goes wrong
-