Class CmsContentCheck
java.lang.Object
org.opencms.workplace.tools.content.check.CmsContentCheck
Main implementation of the content check. It maintains all configured content check
plugins and handles the check process.
- Since:
- 6.1.2
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCmsContentCheck
(org.opencms.file.CmsObject cms) Constructor, creates a new CmsContentCheck. -
Method Summary
Modifier and TypeMethodDescriptiongetPaths()
Gets a list of all paths to be processed by the content check plugins.Gets a list of instances of all available content check plugins.int
Gets the number of installed plugins.Gets the results of the content check.void
Sets the list of all paths to be processed by the content check plugins.void
startContentCheck
(org.opencms.file.CmsObject cms, org.opencms.report.I_CmsReport report) Starts the content check.toString()
-
Field Details
-
VFS_PATH_PLUGIN_FOLDER
Path to the plugin folder.- See Also:
-
-
Constructor Details
-
CmsContentCheck
Constructor, creates a new CmsContentCheck.- Parameters:
cms
- the CmsObject
-
-
Method Details
-
getPaths
Gets a list of all paths to be processed by the content check plugins.- Returns:
- list of vfs paths
-
getPlugins
Gets a list of instances of all available content check plugins.- Returns:
- list of plugin instances.
-
getPluginsCount
Gets the number of installed plugins.- Returns:
- number of installed plugins
-
getResults
Gets the results of the content check.- Returns:
- CmsContentCheckResult object containing all resources that collected an error or warning
-
setPaths
Sets the list of all paths to be processed by the content check plugins.- Parameters:
paths
- list of vfs paths
-
startContentCheck
public void startContentCheck(org.opencms.file.CmsObject cms, org.opencms.report.I_CmsReport report) throws Exception Starts the content check.- Parameters:
cms
- the CmsObjectreport
- StringBuffer for reporting- Throws:
Exception
- if something goes wrong
-
toString
-