Class PluginsArchiver.PluginsArchiverManifestReaderWriter
- java.lang.Object
-
- org.ametys.plugins.contentio.archive.PluginsArchiver.PluginsArchiverManifestReaderWriter
-
- All Implemented Interfaces:
ManifestReaderWriter
- Enclosing class:
- PluginsArchiver
private class PluginsArchiver.PluginsArchiverManifestReaderWriter extends Object implements ManifestReaderWriter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PluginsArchiverManifestReaderWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,String>
_castToMap(Object data)
private PartialImport
_toPartialImport(Map.Entry<String,String> entry)
private I18nizableText
_toPartialImportLabel(String pluginName, String optionalVersion)
Object
getData()
Gets the manifest content to write related to the exported data by theArchiver
.Stream<PartialImport>
toPartialImports(Object data)
Reads the available partial imports from the given raw JSON data
-
-
-
Constructor Detail
-
PluginsArchiverManifestReaderWriter
private PluginsArchiverManifestReaderWriter()
-
-
Method Detail
-
getData
public Object getData()
Description copied from interface:ManifestReaderWriter
Gets the manifest content to write related to the exported data by theArchiver
.- Specified by:
getData
in interfaceManifestReaderWriter
- Returns:
- the manifest content to write
-
toPartialImports
public Stream<PartialImport> toPartialImports(Object data)
Description copied from interface:ManifestReaderWriter
Reads the available partial imports from the given raw JSON data- Specified by:
toPartialImports
in interfaceManifestReaderWriter
- Parameters:
data
- The raw JSON data- Returns:
- the available partial imports
-
_castToMap
private Map<String,String> _castToMap(Object data)
-
_toPartialImport
private PartialImport _toPartialImport(Map.Entry<String,String> entry)
-
_toPartialImportLabel
private I18nizableText _toPartialImportLabel(String pluginName, String optionalVersion)
-
-