Interface I_CmsContentCheck
- All Known Implementing Classes:
A_CmsContentCheck
,CmsContentCheckProperty
public interface I_CmsContentCheck
This interface defines an OpenCms content check. A content check will
test the content of the properties of all resources inside of OpenCms if they
follow the rules which are defined inside the test implementing this interface.
- Since:
- 6.1.2
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecuteContentCheck
(org.opencms.file.CmsObject cms, CmsContentCheckResource testResource) Main method of the content check.Defines the name of the parameter which is used by the CmsContentCheckDialog to enable or disable the content check.Gets a list of all required message bundles by this content check.getName()
Gets the name of this content check.void
init
(org.opencms.file.CmsObject cms) Initializer for the content check.boolean
isActive()
Signals if this content check is active or not.void
setActive
(boolean value) Sets the active flag for the content check.
-
Field Details
-
PARAMETER
Parameter name for widgets.- See Also:
-
-
Method Details
-
executeContentCheck
CmsContentCheckResource executeContentCheck(org.opencms.file.CmsObject cms, CmsContentCheckResource testResource) throws org.opencms.main.CmsException Main method of the content check. It holds the implementation of the content check.- Parameters:
cms
- the CmsObjecttestResource
- a CmsContentTestResource containing the results of previous tests- Returns:
- the updated testResouce containing the results of the content check
- Throws:
org.opencms.main.CmsException
- if an error occurs
-
getDialogParameterName
Defines the name of the parameter which is used by the CmsContentCheckDialog to enable or disable the content check.- Returns:
- the name of the dialog parameter.
-
getMessageBundles
Gets a list of all required message bundles by this content check.- Returns:
- list of message bundle names
-
getName
Gets the name of this content check.- Returns:
- name of the content check
-
init
Initializer for the content check.- Parameters:
cms
- the current CmsObject- Throws:
org.opencms.main.CmsException
- if an error occurs
-
isActive
boolean isActive()Signals if this content check is active or not.- Returns:
- true if this content check is active, false otherwise.
-
setActive
Sets the active flag for the content check.- Parameters:
value
- the value for the active flag
-