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 java.lang.Object implements CmsResourceTable.I_ResourcePropertyProvider
Validator for links.
-
-
Field Summary
Fields Modifier and Type Field Description protected CmsResourceTableProperty
property
Property.
-
Constructor Summary
Constructors Constructor Description A_CmsLinkValidator()
Empty constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addItemProperties(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, java.util.Locale locale)
Adds the property values to the given item.abstract java.util.List<CmsResource>
failedResources(java.util.List<java.lang.String> resources)
Returns resources which fail the validations.abstract java.lang.String
failMessage(CmsResource resource)
Get fail message for resource.abstract com.vaadin.v7.event.ItemClickEvent.ItemClickListener
getClickListener()
Get click listenerabstract java.lang.String
getPropertyName()
Get property Name.abstract java.util.Map<CmsResourceTableProperty,java.lang.Integer>
getTableProperties()
Get all properties.CmsResourceTableProperty
getTableProperty()
Get table property.
-
-
-
Field Detail
-
property
protected CmsResourceTableProperty property
Property.
-
-
Constructor Detail
-
A_CmsLinkValidator
public A_CmsLinkValidator()
Empty constructor.
-
-
Method Detail
-
addItemProperties
public void addItemProperties(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, java.util.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:
CmsResourceTable.I_ResourcePropertyProvider.addItemProperties(com.vaadin.v7.data.Item, org.opencms.file.CmsObject, org.opencms.file.CmsResource, java.util.Locale)
-
failedResources
public abstract java.util.List<CmsResource> failedResources(java.util.List<java.lang.String> resources)
Returns resources which fail the validations.- Parameters:
resources
- to check- Returns:
- List of failed resources
-
failMessage
public abstract java.lang.String failMessage(CmsResource resource)
Get fail message for resource.- Parameters:
resource
- to get message for- Returns:
- Message
-
getClickListener
public abstract com.vaadin.v7.event.ItemClickEvent.ItemClickListener getClickListener()
Get click listener- Returns:
- ItemClickListener or null
-
getPropertyName
public abstract java.lang.String getPropertyName()
Get property Name.- Returns:
- Name of property
-
getTableProperties
public abstract java.util.Map<CmsResourceTableProperty,java.lang.Integer> getTableProperties()
Get all properties.- Returns:
- Map of table properties
-
getTableProperty
public CmsResourceTableProperty getTableProperty()
Get table property.- Returns:
- property
-
-