Class DefaultFileSystemNamingStrategy
- java.lang.Object
-
- com.aquima.interactions.portal.content.filesystem.DefaultFileSystemNamingStrategy
-
- All Implemented Interfaces:
IFileSystemNamingStrategy
public class DefaultFileSystemNamingStrategy extends Object implements 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 Constructor Description DefaultFileSystemNamingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GUID
toGUID(String path)
Transforms a (relative) path identifier into a content identifierString
toPath(GUID guid)
Transforms a content identifier into a (relative) path identifier.
-
-
-
Method Detail
-
toPath
public String toPath(GUID guid)
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
public GUID toGUID(String path)
Description copied from interface:IFileSystemNamingStrategy
Transforms a (relative) path identifier into a content identifier- Specified by:
toGUID
in interfaceIFileSystemNamingStrategy
- Returns:
- a content identifier (never null).
-
-