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>
public class PluginTreeCopier extends TreeCopier
Extension ofTreeCopier
that collects information about the files to be used for the plugin registry- Since:
- 4.0.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
calculateChecksum
Indicates if the checksum should be populated for all filesprotected List<FileRecord>
files
protected Path
repoDir
protected String
siteId
protected org.apache.commons.text.StringSubstitutor
stringSubstitutor
protected StudioConfiguration
studioConfiguration
-
Fields inherited from class org.craftercms.studio.impl.v1.repository.git.TreeCopier
source, target
-
-
Constructor Summary
Constructors Constructor Description PluginTreeCopier(Path source, Path target, StudioConfiguration studioConfiguration, String siteId, Map<String,String> params, List<FileRecord> files, boolean calculateChecksum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileVisitResult
visitFile(Path file, BasicFileAttributes attrs)
-
Methods inherited from class org.craftercms.studio.impl.v1.repository.git.TreeCopier
postVisitDirectory, preVisitDirectory, visitFileFailed
-
-
-
-
Field Detail
-
studioConfiguration
protected final StudioConfiguration studioConfiguration
-
siteId
protected final String siteId
-
files
protected final List<FileRecord> files
-
stringSubstitutor
protected final org.apache.commons.text.StringSubstitutor stringSubstitutor
-
repoDir
protected final Path repoDir
-
calculateChecksum
protected final boolean calculateChecksum
Indicates if the checksum should be populated for all files
-
-
Constructor Detail
-
PluginTreeCopier
public PluginTreeCopier(Path source, Path target, StudioConfiguration studioConfiguration, String siteId, Map<String,String> params, List<FileRecord> files, boolean calculateChecksum)
-
-
Method Detail
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classTreeCopier
- Throws:
IOException
-
-