Class PluginTreeCopier
java.lang.Object
org.craftercms.studio.impl.v1.repository.git.TreeCopier
org.craftercms.studio.api.v2.service.marketplace.PluginTreeCopier
- All Implemented Interfaces:
FileVisitor<Path>
Extension of
TreeCopier that collects information about the files to be used for the plugin registry- Since:
- 4.0.0
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanIndicates if the checksum should be populated for all filesprotected final List<FileRecord> protected final Pathprotected final Stringprotected final org.apache.commons.text.StringSubstitutorprotected final StudioConfigurationFields inherited from class org.craftercms.studio.impl.v1.repository.git.TreeCopier
source, target -
Constructor Summary
ConstructorsConstructorDescriptionPluginTreeCopier(Path source, Path target, StudioConfiguration studioConfiguration, String siteId, Map<String, String> params, List<FileRecord> files, boolean calculateChecksum) -
Method Summary
Methods inherited from class org.craftercms.studio.impl.v1.repository.git.TreeCopier
postVisitDirectory, preVisitDirectory, visitFileFailed
-
Field Details
-
studioConfiguration
-
siteId
-
files
-
stringSubstitutor
protected final org.apache.commons.text.StringSubstitutor stringSubstitutor -
repoDir
-
calculateChecksum
protected final boolean calculateChecksumIndicates if the checksum should be populated for all files
-
-
Constructor Details
-
PluginTreeCopier
public PluginTreeCopier(Path source, Path target, StudioConfiguration studioConfiguration, String siteId, Map<String, String> params, List<FileRecord> files, boolean calculateChecksum)
-
-
Method Details
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>- Overrides:
visitFilein classTreeCopier- Throws:
IOException
-