Class DefaultFileSystemNamingStrategy
java.lang.Object
com.aquima.interactions.portal.content.filesystem.DefaultFileSystemNamingStrategy
- All Implemented Interfaces:
IFileSystemNamingStrategy
This class assumes that the String representation of the GUID that used to identify content is a suitable value to
create files and directories through the provided FileSystemConnection. In other words: it is expected that a file
can be created of which the name matches any GUID value.
Note that this implementation stores all content in files that live under one shared directory. When the amount of
content sets grows, this can introduce performance issues in the file system.
- Since:
- 9.3
- Author:
- G. der Kinderen
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultFileSystemNamingStrategy
public DefaultFileSystemNamingStrategy()
-
-
Method Details
-
toPath
Description copied from interface:IFileSystemNamingStrategy
Transforms a content identifier into a (relative) path identifier.- Specified by:
toPath
in interfaceIFileSystemNamingStrategy
- Parameters:
guid
- A content identifier (cannot be null).- Returns:
- a path (never null).
-
toGUID
Description copied from interface:IFileSystemNamingStrategy
Transforms a (relative) path identifier into a content identifier- Specified by:
toGUID
in interfaceIFileSystemNamingStrategy
- Parameters:
path
- A path (cannot be null).- Returns:
- a content identifier (never null).
-