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
-
Method Summary
Modifier and TypeMethodDescriptionabstract CmsContentCheckResource
executeContentCheck
(org.opencms.file.CmsObject cms, CmsContentCheckResource testResource) Main method of the content check.abstract String
Defines the name of the parameter which is used by the CmsContentCheckDialog to enable or disable the content check.getGroup()
abstract String
abstract String
abstract String
getLink()
abstract List
Gets a list of all required message bundles by this content check.abstract String
getName()
Gets the name of this content check.getParameters
(org.opencms.workplace.CmsWorkplace wp) abstract String
getPath()
abstract float
abstract String
abstract void
init
(org.opencms.file.CmsObject cms) Initializer for the content check.abstract boolean
isActive()
Signals if this content check is active or not.boolean
isEnabled
(org.opencms.file.CmsObject cms) boolean
isEnabled
(org.opencms.workplace.CmsWorkplace wp) boolean
isVisible
(org.opencms.file.CmsObject cms) boolean
isVisible
(org.opencms.workplace.CmsWorkplace wp) abstract void
setActive
(boolean value) Sets the active flag for the content check.boolean
setup
(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_CmsContentCheck
Main method of the content check. It holds the implementation of the content check.- Specified by:
executeContentCheck
in 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:
getConfirmationMessage
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getConfirmationMessage()
-
getDialogParameterName
Description copied from interface:I_CmsContentCheck
Defines the name of the parameter which is used by the CmsContentCheckDialog to enable or disable the content check.- Specified by:
getDialogParameterName
in interfaceI_CmsContentCheck
- Returns:
- the name of the dialog parameter.
- See Also:
-
getDisabledHelpText
- Specified by:
getDisabledHelpText
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getDisabledHelpText()
-
getGroup
- Specified by:
getGroup
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getGroup()
-
getHelpText
- Specified by:
getHelpText
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getHelpText()
-
getIconPath
- Specified by:
getIconPath
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getIconPath()
-
getLink
- Specified by:
getLink
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getLink()
-
getMessageBundles
Description copied from interface:I_CmsContentCheck
Gets a list of all required message bundles by this content check.- Specified by:
getMessageBundles
in interfaceI_CmsContentCheck
- Returns:
- list of message bundle names
- See Also:
-
getName
Description copied from interface:I_CmsContentCheck
Gets the name of this content check.- Specified by:
getName
in interfaceI_CmsContentCheck
- Specified by:
getName
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- Returns:
- name of the content check
- See Also:
-
I_CmsToolHandler.getName()
-
getParameters
- Specified by:
getParameters
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getParameters(org.opencms.workplace.CmsWorkplace)
-
getPath
- Specified by:
getPath
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getPath()
-
getPosition
- Specified by:
getPosition
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getPosition()
-
getShortName
- Specified by:
getShortName
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getShortName()
-
getSmallIconPath
- Specified by:
getSmallIconPath
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.getSmallIconPath()
-
init
Description copied from interface:I_CmsContentCheck
Initializer for the content check.- Specified by:
init
in interfaceI_CmsContentCheck
- Parameters:
cms
- the current CmsObject- Throws:
org.opencms.main.CmsException
- if an error occurs- See Also:
-
isActive
Description copied from interface:I_CmsContentCheck
Signals if this content check is active or not.- Specified by:
isActive
in interfaceI_CmsContentCheck
- Returns:
- true if this content check is active, false otherwise.
- See Also:
-
isEnabled
- Specified by:
isEnabled
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.isEnabled(org.opencms.file.CmsObject)
-
isEnabled
- Specified by:
isEnabled
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.isEnabled(org.opencms.workplace.CmsWorkplace)
-
isVisible
- Specified by:
isVisible
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.isVisible(org.opencms.file.CmsObject)
-
isVisible
- Specified by:
isVisible
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.isVisible(org.opencms.workplace.CmsWorkplace)
-
setActive
Description copied from interface:I_CmsContentCheck
Sets the active flag for the content check.- Specified by:
setActive
in 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:
setup
in interfaceorg.opencms.workplace.tools.I_CmsToolHandler
- See Also:
-
I_CmsToolHandler.setup(org.opencms.file.CmsObject, org.opencms.workplace.tools.CmsToolRootHandler, java.lang.String)
-