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 SummaryFields inherited from interface org.opencms.workplace.tools.content.check.I_CmsContentCheckPARAMETER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_CmsContentCheckgetConfirmationMessage, getDisabledHelpText, getGroup, getParameters, getSmallIconPath, isEnabled, isEnabled, isVisible, isVisible, setup
- 
Constructor Details- 
CmsContentCheckPropertypublic CmsContentCheckProperty()
 
- 
- 
Method Details- 
executeContentCheckpublic 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 interface- I_CmsContentCheck
- Specified by:
- executeContentCheckin class- A_CmsContentCheck
- Parameters:
- cms- the CmsObject
- testResource- 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:
 
- 
getDialogParameterNameDescription 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 interface- I_CmsContentCheck
- Specified by:
- getDialogParameterNamein class- A_CmsContentCheck
- Returns:
- the name of the dialog parameter.
- See Also:
 
- 
getHelpText- Specified by:
- getHelpTextin interface- org.opencms.workplace.tools.I_CmsToolHandler
- Specified by:
- getHelpTextin class- A_CmsContentCheck
- See Also:
 
- 
getIconPath- Specified by:
- getIconPathin interface- org.opencms.workplace.tools.I_CmsToolHandler
- Specified by:
- getIconPathin class- A_CmsContentCheck
- See Also:
 
- 
getLink- Specified by:
- getLinkin interface- org.opencms.workplace.tools.I_CmsToolHandler
- Specified by:
- getLinkin class- A_CmsContentCheck
- See Also:
 
- 
getMessageBundlesDescription copied from interface:I_CmsContentCheckGets a list of all required message bundles by this content check.- Specified by:
- getMessageBundlesin interface- I_CmsContentCheck
- Specified by:
- getMessageBundlesin class- A_CmsContentCheck
- Returns:
- list of message bundle names
- See Also:
 
- 
getNameDescription copied from interface:I_CmsContentCheckGets the name of this content check.- Specified by:
- getNamein interface- I_CmsContentCheck
- Specified by:
- getNamein interface- org.opencms.workplace.tools.I_CmsToolHandler
- Specified by:
- getNamein class- A_CmsContentCheck
- Returns:
- name of the content check
- See Also:
 
- 
getPath- Specified by:
- getPathin interface- org.opencms.workplace.tools.I_CmsToolHandler
- Specified by:
- getPathin class- A_CmsContentCheck
- See Also:
 
- 
getPosition- Specified by:
- getPositionin interface- org.opencms.workplace.tools.I_CmsToolHandler
- Specified by:
- getPositionin class- A_CmsContentCheck
- See Also:
 
- 
getShortName- Specified by:
- getShortNamein interface- org.opencms.workplace.tools.I_CmsToolHandler
- Specified by:
- getShortNamein class- A_CmsContentCheck
- See Also:
 
- 
initDescription copied from interface:I_CmsContentCheckInitializer for the content check.- Specified by:
- initin interface- I_CmsContentCheck
- Specified by:
- initin class- A_CmsContentCheck
- Parameters:
- cms- the current CmsObject
- See Also:
 
- 
isActiveGets the active flag.- Specified by:
- isActivein interface- I_CmsContentCheck
- Specified by:
- isActivein class- A_CmsContentCheck
- Returns:
- true if this content check is active, false otherwise.
- See Also:
 
- 
setActiveSets the active flag.This method is required to build the widget dialog frontend. - Specified by:
- setActivein interface- I_CmsContentCheck
- Specified by:
- setActivein class- A_CmsContentCheck
- Parameters:
- value- true if this content check is set to be active, false otherwise.
- See Also:
 
 
-