Class CmsContentCheckProperty
java.lang.Object
org.opencms.workplace.tools.content.check.A_CmsContentCheck
org.opencms.workplace.tools.content.check.CmsContentCheckProperty
- All Implemented Interfaces:
I_CmsContentCheck,org.opencms.workplace.tools.I_CmsToolHandler
This implementation of the I_CmsContentCheck interface implements a check for
resource properties.
The following items can be configured and checked:
- Property not set
- Property value contains filename
- Property value is shorter than a minimum size
- Property value contains a given value (with RegEx)
- Property value does not contain a given value (with RegEx)
- Since:
- 6.1.2
-
Field Summary
Fields inherited from interface org.opencms.workplace.tools.content.check.I_CmsContentCheck
PARAMETER -
Constructor Summary
Constructors -
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.getLink()Gets a list of all required message bundles by this content check.getName()Gets the name of this content check.getPath()floatvoidinit(org.opencms.file.CmsObject cms) Initializer for the content check.booleanisActive()Gets the active flag.voidsetActive(boolean value) Sets the active flag.Methods inherited from class org.opencms.workplace.tools.content.check.A_CmsContentCheck
getConfirmationMessage, getDisabledHelpText, getGroup, getParameters, getSmallIconPath, isEnabled, isEnabled, isVisible, isVisible, setup
-
Constructor Details
-
CmsContentCheckProperty
public CmsContentCheckProperty()
-
-
Method Details
-
executeContentCheck
public CmsContentCheckResource executeContentCheck(org.opencms.file.CmsObject cms, CmsContentCheckResource testResource) throws org.opencms.main.CmsException Description copied from interface:I_CmsContentCheckMain method of the content check. It holds the implementation of the content check.- Specified by:
executeContentCheckin interfaceI_CmsContentCheck- Specified by:
executeContentCheckin classA_CmsContentCheck- 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- See Also:
-
getDialogParameterName
Description copied from interface:I_CmsContentCheckDefines the name of the parameter which is used by the CmsContentCheckDialog to enable or disable the content check.- Specified by:
getDialogParameterNamein interfaceI_CmsContentCheck- Specified by:
getDialogParameterNamein classA_CmsContentCheck- Returns:
- the name of the dialog parameter.
- See Also:
-
getHelpText
- Specified by:
getHelpTextin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- Specified by:
getHelpTextin classA_CmsContentCheck- See Also:
-
getIconPath
- Specified by:
getIconPathin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- Specified by:
getIconPathin classA_CmsContentCheck- See Also:
-
getLink
- Specified by:
getLinkin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- Specified by:
getLinkin classA_CmsContentCheck- See Also:
-
getMessageBundles
Description copied from interface:I_CmsContentCheckGets a list of all required message bundles by this content check.- Specified by:
getMessageBundlesin interfaceI_CmsContentCheck- Specified by:
getMessageBundlesin classA_CmsContentCheck- Returns:
- list of message bundle names
- See Also:
-
getName
Description copied from interface:I_CmsContentCheckGets the name of this content check.- Specified by:
getNamein interfaceI_CmsContentCheck- Specified by:
getNamein interfaceorg.opencms.workplace.tools.I_CmsToolHandler- Specified by:
getNamein classA_CmsContentCheck- Returns:
- name of the content check
- See Also:
-
getPath
- Specified by:
getPathin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- Specified by:
getPathin classA_CmsContentCheck- See Also:
-
getPosition
- Specified by:
getPositionin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- Specified by:
getPositionin classA_CmsContentCheck- See Also:
-
getShortName
- Specified by:
getShortNamein interfaceorg.opencms.workplace.tools.I_CmsToolHandler- Specified by:
getShortNamein classA_CmsContentCheck- See Also:
-
init
Description copied from interface:I_CmsContentCheckInitializer for the content check.- Specified by:
initin interfaceI_CmsContentCheck- Specified by:
initin classA_CmsContentCheck- Parameters:
cms- the current CmsObject- See Also:
-
isActive
Gets the active flag.- Specified by:
isActivein interfaceI_CmsContentCheck- Specified by:
isActivein classA_CmsContentCheck- Returns:
- true if this content check is active, false otherwise.
- See Also:
-
setActive
Sets the active flag.This method is required to build the widget dialog frontend.
- Specified by:
setActivein interfaceI_CmsContentCheck- Specified by:
setActivein classA_CmsContentCheck- Parameters:
value- true if this content check is set to be active, false otherwise.- See Also:
-