@ConsumerType public class Echo extends Object implements net.adamcin.oakpal.api.ProgressCheck
Constructor and Description |
---|
Echo() |
Modifier and Type | Method and Description |
---|---|
void |
afterExtract(org.apache.jackrabbit.vault.packaging.PackageId packageId,
javax.jcr.Session inspectSession) |
void |
afterScanPackage(org.apache.jackrabbit.vault.packaging.PackageId scanPackageId,
javax.jcr.Session inspectSession) |
void |
appliedRepoInitScripts(org.apache.jackrabbit.vault.packaging.PackageId scanPackageId,
List<String> scripts,
net.adamcin.oakpal.api.SlingInstallable slingInstallable,
javax.jcr.Session inspectSession) |
void |
beforeExtract(org.apache.jackrabbit.vault.packaging.PackageId packageId,
javax.jcr.Session inspectSession,
org.apache.jackrabbit.vault.packaging.PackageProperties packageProperties,
org.apache.jackrabbit.vault.fs.config.MetaInf metaInf,
List<org.apache.jackrabbit.vault.packaging.PackageId> subpackages) |
void |
beforeSlingInstall(org.apache.jackrabbit.vault.packaging.PackageId scanPackageId,
net.adamcin.oakpal.api.SlingInstallable slingInstallable,
javax.jcr.Session inspectSession) |
void |
deletedPath(org.apache.jackrabbit.vault.packaging.PackageId packageId,
String path,
javax.jcr.Session inspectSession) |
protected void |
echo(String message,
Object... formatArgs)
Override this method to use a logger instead of System.out, for example.
|
void |
finishedScan() |
String |
getCheckName() |
Collection<net.adamcin.oakpal.api.Violation> |
getReportedViolations() |
void |
identifyEmbeddedPackage(org.apache.jackrabbit.vault.packaging.PackageId packageId,
org.apache.jackrabbit.vault.packaging.PackageId parentId,
net.adamcin.oakpal.api.EmbeddedPackageInstallable slingInstallable) |
void |
identifyPackage(org.apache.jackrabbit.vault.packaging.PackageId packageId,
File file) |
void |
identifySubpackage(org.apache.jackrabbit.vault.packaging.PackageId packageId,
org.apache.jackrabbit.vault.packaging.PackageId parentId) |
void |
importedPath(org.apache.jackrabbit.vault.packaging.PackageId packageId,
String path,
javax.jcr.Node node)
Deprecated.
|
void |
importedPath(org.apache.jackrabbit.vault.packaging.PackageId packageId,
String path,
javax.jcr.Node node,
net.adamcin.oakpal.api.PathAction action) |
void |
readManifest(org.apache.jackrabbit.vault.packaging.PackageId packageId,
Manifest manifest) |
void |
simulateSling(net.adamcin.oakpal.api.SlingSimulator slingSimulator,
Set<String> runModes) |
void |
startedScan() |
public Collection<net.adamcin.oakpal.api.Violation> getReportedViolations()
getReportedViolations
in interface net.adamcin.oakpal.api.ViolationReporter
protected void echo(String message, @NotNull Object... formatArgs)
message
- message to printformatArgs
- optional args to String.format(String, Object...)
public String getCheckName()
getCheckName
in interface net.adamcin.oakpal.api.ProgressCheck
public void identifyPackage(org.apache.jackrabbit.vault.packaging.PackageId packageId, File file)
identifyPackage
in interface net.adamcin.oakpal.api.ProgressCheck
public void identifySubpackage(org.apache.jackrabbit.vault.packaging.PackageId packageId, org.apache.jackrabbit.vault.packaging.PackageId parentId)
identifySubpackage
in interface net.adamcin.oakpal.api.ProgressCheck
public void readManifest(org.apache.jackrabbit.vault.packaging.PackageId packageId, Manifest manifest)
readManifest
in interface net.adamcin.oakpal.api.ProgressCheck
public void beforeExtract(org.apache.jackrabbit.vault.packaging.PackageId packageId, javax.jcr.Session inspectSession, org.apache.jackrabbit.vault.packaging.PackageProperties packageProperties, org.apache.jackrabbit.vault.fs.config.MetaInf metaInf, List<org.apache.jackrabbit.vault.packaging.PackageId> subpackages) throws javax.jcr.RepositoryException
beforeExtract
in interface net.adamcin.oakpal.api.ProgressCheck
javax.jcr.RepositoryException
@Deprecated public void importedPath(org.apache.jackrabbit.vault.packaging.PackageId packageId, String path, javax.jcr.Node node) throws javax.jcr.RepositoryException
importedPath
in interface net.adamcin.oakpal.api.ProgressCheck
javax.jcr.RepositoryException
public void importedPath(org.apache.jackrabbit.vault.packaging.PackageId packageId, String path, javax.jcr.Node node, net.adamcin.oakpal.api.PathAction action) throws javax.jcr.RepositoryException
importedPath
in interface net.adamcin.oakpal.api.ProgressCheck
javax.jcr.RepositoryException
public void deletedPath(org.apache.jackrabbit.vault.packaging.PackageId packageId, String path, javax.jcr.Session inspectSession) throws javax.jcr.RepositoryException
deletedPath
in interface net.adamcin.oakpal.api.ProgressCheck
javax.jcr.RepositoryException
public void afterExtract(org.apache.jackrabbit.vault.packaging.PackageId packageId, javax.jcr.Session inspectSession) throws javax.jcr.RepositoryException
afterExtract
in interface net.adamcin.oakpal.api.ProgressCheck
javax.jcr.RepositoryException
public void simulateSling(net.adamcin.oakpal.api.SlingSimulator slingSimulator, Set<String> runModes)
simulateSling
in interface net.adamcin.oakpal.api.ProgressCheck
public void identifyEmbeddedPackage(org.apache.jackrabbit.vault.packaging.PackageId packageId, org.apache.jackrabbit.vault.packaging.PackageId parentId, net.adamcin.oakpal.api.EmbeddedPackageInstallable slingInstallable)
identifyEmbeddedPackage
in interface net.adamcin.oakpal.api.ProgressCheck
public void beforeSlingInstall(org.apache.jackrabbit.vault.packaging.PackageId scanPackageId, net.adamcin.oakpal.api.SlingInstallable slingInstallable, javax.jcr.Session inspectSession) throws javax.jcr.RepositoryException
beforeSlingInstall
in interface net.adamcin.oakpal.api.ProgressCheck
javax.jcr.RepositoryException
public void appliedRepoInitScripts(org.apache.jackrabbit.vault.packaging.PackageId scanPackageId, List<String> scripts, net.adamcin.oakpal.api.SlingInstallable slingInstallable, javax.jcr.Session inspectSession) throws javax.jcr.RepositoryException
appliedRepoInitScripts
in interface net.adamcin.oakpal.api.ProgressCheck
javax.jcr.RepositoryException
public void afterScanPackage(org.apache.jackrabbit.vault.packaging.PackageId scanPackageId, javax.jcr.Session inspectSession) throws javax.jcr.RepositoryException
afterScanPackage
in interface net.adamcin.oakpal.api.ProgressCheck
javax.jcr.RepositoryException
public void startedScan()
startedScan
in interface net.adamcin.oakpal.api.ScanListener
public void finishedScan()
finishedScan
in interface net.adamcin.oakpal.api.ScanListener
Copyright © 2017–2020. All rights reserved.