public abstract class AbstractDiscoveryLinkIndexService extends Object
Concrete services extending this class may declare the following path:
@Path("/process/discovery/linkIndex")
Constructor and Description |
---|
AbstractDiscoveryLinkIndexService() |
Modifier and Type | Method and Description |
---|---|
Response |
discover() |
protected ResourceResponse<Collection<DirectedLink>> |
discoverIncomingLinks(LinkIndexQuery linkIndexQuery)
Discovers the incoming links on the target resources of the given link index query.
|
Response |
getAll(URI resource,
URI resourceType,
URI gcURL) |
protected Collection<LinkIndexQuery> |
getLinkIndexQueries(ProjectAreaAssociations projectAreaAssociations,
URI resource,
URI resourceType,
URI gcURL)
Returns the collection of link index queries to execute in order to discover all the incoming links on the given resource.
|
protected abstract ProjectAreaAssociations |
getProjectAreaAssociations(URI resource)
Returns the project area associations of the given resource's project
|
public Response discover()
protected abstract ProjectAreaAssociations getProjectAreaAssociations(URI resource)
resource
- the resource URIprotected Collection<LinkIndexQuery> getLinkIndexQueries(ProjectAreaAssociations projectAreaAssociations, URI resource, URI resourceType, URI gcURL)
projectAreaAssociations
- the project area associations for the given resource's projectresource
- the local resource to get incoming links for, i.e: the target resource of the returned link index queriesresourceType
- the given resource's typegcURL
- the global configuration URLprotected ResourceResponse<Collection<DirectedLink>> discoverIncomingLinks(LinkIndexQuery linkIndexQuery)
To discover the incoming links this method does the following:
linkIndexQuery
- the link index query to execute