@Path(value="/linkChecker")
public interface LinkCheckerResource
| Modifier and Type | Method and Description |
|---|---|
CheckResponse |
checkLink(CheckExternalLinkRequest request)
Check an external link for validity
|
ExternalLinkResponse |
getLink(String pageId,
int linkId)
Load a single link.
|
ExternalLinkList |
getLinks(String pageId)
Get the external links contained in a single page
|
PageList |
getPages(FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging,
LinkCheckerFilterParameterBean linkFilter,
PermsParameterBean perms)
Get list of pages containing external links
|
ExternalLinkStatistics |
getStats(Integer nodeId,
Boolean online)
Get link checker statistics
|
GenericResponse |
updateLink(String pageId,
int linkId,
long waitMs,
ReplaceExternalLinkRequest request)
Update a link (optionally together with other occurrences) by replacing the URL with the given URL.
|
GenericResponse |
updateLinkStatus(String pageId,
UpdateExternalLinkStatusRequest request)
Update the validity status for external links contained in the page.
|
@GET @Path(value="/stats") ExternalLinkStatistics getStats(@QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="online") Boolean online) throws Exception
nodeId - optional node ID for getting node specific statisticsonline - (optional) true to restrict to online pages, false to restrict to offline pagesException@GET @Path(value="/pages") PageList getPages(@BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging, @BeanParam LinkCheckerFilterParameterBean linkFilter, @BeanParam PermsParameterBean perms) throws Exception
filter - general filter parameterssorting - sorting parameterspaging - paging parameterslinkFilter - link filter parametersperms - permissions parametersException@GET
@Path(value="/pages/{id}")
ExternalLinkList getLinks(@PathParam(value="id")
String pageId)
throws Exception
pageId - page IDException@POST
@Path(value="/pages/{id}")
GenericResponse updateLinkStatus(@PathParam(value="id")
String pageId,
UpdateExternalLinkStatusRequest request)
throws Exception
pageId - page IDrequest - request containing external links with updated statusException@POST @Path(value="/check") CheckResponse checkLink(CheckExternalLinkRequest request) throws Exception
request - request containing the link to checkException@GET
@Path(value="/pages/{pageId}/links/{id}")
ExternalLinkResponse getLink(@PathParam(value="pageId")
String pageId,
@PathParam(value="id")
int linkId)
throws Exception
pageId - page IDlinkId - link IDException@POST
@Path(value="/pages/{pageId}/links/{id}")
GenericResponse updateLink(@PathParam(value="pageId")
String pageId,
@PathParam(value="id")
int linkId,
@QueryParam(value="wait") @DefaultValue(value="0")
long waitMs,
ReplaceExternalLinkRequest request)
throws Exception
pageId - page IDlinkId - link IDwaitMs - time in ms for the request to be done in foregroundrequest - request containing the new URL and the replace scopeExceptionCopyright © 2024 Gentics Software. All rights reserved.