Class A_CmsContentCheck
java.lang.Object
org.opencms.workplace.tools.content.check.A_CmsContentCheck
- All Implemented Interfaces:
I_CmsContentCheck,org.opencms.workplace.tools.I_CmsToolHandler
- Direct Known Subclasses:
CmsContentCheckProperty
public abstract class A_CmsContentCheck
extends Object
implements I_CmsContentCheck, org.opencms.workplace.tools.I_CmsToolHandler
Abstract class for a CmsContentCheck.
- 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 TypeMethodDescriptionabstract CmsContentCheckResourceexecuteContentCheck(org.opencms.file.CmsObject cms, CmsContentCheckResource testResource) Main method of the content check.abstract StringDefines the name of the parameter which is used by the CmsContentCheckDialog to enable or disable the content check.getGroup()abstract Stringabstract Stringabstract StringgetLink()abstract ListGets a list of all required message bundles by this content check.abstract StringgetName()Gets the name of this content check.getParameters(org.opencms.workplace.CmsWorkplace wp) abstract StringgetPath()abstract floatabstract Stringabstract voidinit(org.opencms.file.CmsObject cms) Initializer for the content check.abstract booleanisActive()Signals if this content check is active or not.booleanisEnabled(org.opencms.file.CmsObject cms) booleanisEnabled(org.opencms.workplace.CmsWorkplace wp) booleanisVisible(org.opencms.file.CmsObject cms) booleanisVisible(org.opencms.workplace.CmsWorkplace wp) abstract voidsetActive(boolean value) Sets the active flag for the content check.booleansetup(org.opencms.file.CmsObject cms, org.opencms.workplace.tools.CmsToolRootHandler root, String resourcePath)
-
Constructor Details
-
A_CmsContentCheck
public A_CmsContentCheck()
-
-
Method Details
-
executeContentCheck
public abstract 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- 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:
-
getConfirmationMessage
- Specified by:
getConfirmationMessagein interfaceorg.opencms.workplace.tools.I_CmsToolHandler- 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- Returns:
- the name of the dialog parameter.
- See Also:
-
getDisabledHelpText
- Specified by:
getDisabledHelpTextin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
getGroup
- Specified by:
getGroupin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
getHelpText
- Specified by:
getHelpTextin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
getIconPath
- Specified by:
getIconPathin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
getLink
- Specified by:
getLinkin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- 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- 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- Returns:
- name of the content check
- See Also:
-
getParameters
- Specified by:
getParametersin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
getPath
- Specified by:
getPathin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
getPosition
- Specified by:
getPositionin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
getShortName
- Specified by:
getShortNamein interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
getSmallIconPath
- Specified by:
getSmallIconPathin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
init
Description copied from interface:I_CmsContentCheckInitializer for the content check.- Specified by:
initin interfaceI_CmsContentCheck- Parameters:
cms- the current CmsObject- Throws:
org.opencms.main.CmsException- if an error occurs- See Also:
-
isActive
Description copied from interface:I_CmsContentCheckSignals if this content check is active or not.- Specified by:
isActivein interfaceI_CmsContentCheck- Returns:
- true if this content check is active, false otherwise.
- See Also:
-
isEnabled
- Specified by:
isEnabledin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
isEnabled
- Specified by:
isEnabledin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
isVisible
- Specified by:
isVisiblein interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
isVisible
- Specified by:
isVisiblein interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-
setActive
Description copied from interface:I_CmsContentCheckSets the active flag for the content check.- Specified by:
setActivein interfaceI_CmsContentCheck- Parameters:
value- the value for the active flag- See Also:
-
setup
public boolean setup(org.opencms.file.CmsObject cms, org.opencms.workplace.tools.CmsToolRootHandler root, String resourcePath) - Specified by:
setupin interfaceorg.opencms.workplace.tools.I_CmsToolHandler- See Also:
-