public interface I_CmsLinkParseable
Relation validation for a file is only enabled if the file's resource type implements this interface. so, files with resource types that do not implement this interface don't get validated for broken links, during publsihing, for instance.
This interface is used to build the internal relation information, but it is not directly used to validate the relations.
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsLink> |
parseLinks(CmsObject cms,
CmsFile file)
Returns a list of all links from the specified file.
|
java.util.List<CmsLink> parseLinks(CmsObject cms, CmsFile file)
Implementations of this method must return an empty list, or better
Collections.EMPTY_LIST
, if no link is found at all.
Implementations of this method should return the list of links including internal (OpenCms VFS) and external links (http, https, mailto, ftp, etc.).
cms
- the current user's contextfile
- the file to be parsedCmsLink
objects with the URIs of all linked resources