Class A_CmsLinkValidator
java.lang.Object
org.opencms.ui.apps.linkvalidation.A_CmsLinkValidator
- All Implemented Interfaces:
CmsResourceTable.I_ResourcePropertyProvider
- Direct Known Subclasses:
CmsLinkInFolderValidationApp.InFolderValidator
,CmsLinkValidationApp.InternalValidator
public abstract class A_CmsLinkValidator
extends Object
implements CmsResourceTable.I_ResourcePropertyProvider
Validator for links.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemProperties
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) Adds the property values to the given item.abstract List<CmsResource>
failedResources
(List<String> resources) Returns resources which fail the validations.abstract String
failMessage
(CmsResource resource) Get fail message for resource.abstract com.vaadin.v7.event.ItemClickEvent.ItemClickListener
Get click listenerabstract String
Get property Name.abstract Map<CmsResourceTableProperty,
Integer> Get all properties.Get table property.
-
Field Details
-
property
Property.
-
-
Constructor Details
-
A_CmsLinkValidator
public A_CmsLinkValidator()Empty constructor.
-
-
Method Details
-
addItemProperties
public void addItemProperties(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) Description copied from interface:CmsResourceTable.I_ResourcePropertyProvider
Adds the property values to the given item.- Specified by:
addItemProperties
in interfaceCmsResourceTable.I_ResourcePropertyProvider
- Parameters:
resourceItem
- the resource itemcms
- the cms contextresource
- the resourcelocale
- the workplace locale- See Also:
-
failedResources
Returns resources which fail the validations.- Parameters:
resources
- to check- Returns:
- List of failed resources
-
failMessage
Get fail message for resource.- Parameters:
resource
- to get message for- Returns:
- Message
-
getClickListener
Get click listener- Returns:
- ItemClickListener or null
-
getPropertyName
Get property Name.- Returns:
- Name of property
-
getTableProperties
Get all properties.- Returns:
- Map of table properties
-
getTableProperty
Get table property.- Returns:
- property
-