public class CmsInternalLinksValidator
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected java.util.Map<java.lang.String,java.util.List<CmsRelation>> |
m_brokenRelations
The internal computed broken relations map.
|
构造器和说明 |
---|
CmsInternalLinksValidator(CmsObject cms,
java.util.List<java.lang.String> resourceNames)
Creates a new helper object.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsRelation> |
getBrokenLinksForResource(java.lang.String resourceName)
Returns all broken links for the given resource.
|
int |
getNotVisibleResourcesCount()
Returns the number of not visible resources with broken links.
|
java.util.List<CmsResource> |
getResourcesWithBrokenLinks()
Returns all resources with broken links.
|
boolean |
isEmpty()
If no relation would be broken deleting the given resources.
|
protected java.util.Map<java.lang.String,java.util.List<CmsRelation>> m_brokenRelations
public CmsInternalLinksValidator(CmsObject cms, java.util.List<java.lang.String> resourceNames)
cms
- the cms objectresourceNames
- a list of resource names to be deletedpublic java.util.List<CmsRelation> getBrokenLinksForResource(java.lang.String resourceName)
resourceName
- the resource to get the broken linkCmsRelation
objectspublic int getNotVisibleResourcesCount()
public java.util.List<CmsResource> getResourcesWithBrokenLinks()
CmsResource
objectspublic boolean isEmpty()
true
if no relation would be broken deleting the given resources