Package com.day.cq.rewriter.linkchecker
Interface LinkInfoStorage
-
public interface LinkInfoStorage
Stores LinkInfo objects in the repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteLinkInfo(LinkInfo info)
Removes link validity information from the repository.void
deleteLinkInfo(java.lang.String url)
Removes link validity information from the repository.LinkInfo
getLinkInfo(java.lang.String url)
Returns validity information for a specific link.java.lang.String[]
getLinks()
Returns a list of links about which validity information is stored in the repository.void
putLinkInfo(LinkInfo info)
Stores validity information about a link in the repository.void
sync()
Forces the storageg to flush it's caches to the repository.
-
-
-
Method Detail
-
getLinks
java.lang.String[] getLinks()
Returns a list of links about which validity information is stored in the repository.- Returns:
- A list of links
-
getLinkInfo
LinkInfo getLinkInfo(java.lang.String url)
Returns validity information for a specific link.- Parameters:
url
- link to retrieve the information for- Returns:
- A LinkInfo object describing the link or null if no validity information exists for the link
-
putLinkInfo
void putLinkInfo(LinkInfo info)
Stores validity information about a link in the repository.- Parameters:
info
- The validity information to be stored
-
deleteLinkInfo
void deleteLinkInfo(LinkInfo info)
Removes link validity information from the repository.- Parameters:
info
- The validity information to be removed
-
deleteLinkInfo
void deleteLinkInfo(java.lang.String url)
Removes link validity information from the repository.- Parameters:
url
- The URL for which the validity information is to be removed
-
sync
void sync()
Forces the storageg to flush it's caches to the repository. This should only be invoked by the external linkchecker task.
-
-