@OslcNamespace(value="http://www.sodius.com/ns/process/links#")
@OslcResourceShape(title="Link Index Query Resource Shape",
describes="http://www.sodius.com/ns/process/links#LinkIndexQuery")
public class LinkIndexQuery
extends org.eclipse.lyo.oslc4j.core.model.AbstractResource
ExecuteLinkIndexQuery
Constructor and Description |
---|
LinkIndexQuery() |
LinkIndexQuery(Collection<URI> targetURLs,
Collection<URI> linkTypes,
URI gcURL)
Creates a new
LinkIndexQuery instance. |
Modifier and Type | Method and Description |
---|---|
static Collection<LinkIndexQuery> |
create(Collection<Friend> friends,
ProjectAreaAssociations projectAreaAssociations,
URI resource,
URI resourceType,
URI gcURL)
A utility method that creates link index queries from the given parameters.
|
URI |
getGcURL()
Get the global configuration URL.
|
Collection<URI> |
getLinkTypes()
Get the link types.
|
URI |
getRootServices()
Get the root services URL.
|
Collection<URI> |
getTargetURLs()
Get the target URLs.
|
void |
setGcURL(URI gcURL)
Set the global configuration URL.
|
void |
setLinkTypes(Collection<URI> linkTypes)
Set the link types.
|
void |
setRootServices(URI rootServices)
Set the root services URL.
|
void |
setTargetURLs(Collection<URI> targetURLs)
Set the target URLs.
|
public LinkIndexQuery()
public LinkIndexQuery(Collection<URI> targetURLs, Collection<URI> linkTypes, URI gcURL)
LinkIndexQuery
instance.targetURLs
- only query the indexed links whose target matches one of theselinkTypes
- only query the indexed links whose type matches one of thesegcURL
- only query the links that were indexed with this global configurationpublic static Collection<LinkIndexQuery> create(Collection<Friend> friends, ProjectAreaAssociations projectAreaAssociations, URI resource, URI resourceType, URI gcURL)
Not all of the given project area associations will result in a link index query:
The resulting link index queries contain the rootServices property of a matching friend, so that the caller is able to easily use
ExecuteLinkIndexQuery.create(OslcClient, LinkIndexQuery)
for each returned link index query afterwards.
friends
- the local application's friendsprojectAreaAssociations
- the local application's project area associationsresource
- the created link index queries will only query the links that target this resourceresourceType
- the given resource's type (used to filter the link types range)gcURL
- the created link index queries will only query the links that were indexed with this global configuration@OslcPropertyDefinition(value="http://www.sodius.com/ns/process/links#targetURLs") public Collection<URI> getTargetURLs()
public void setTargetURLs(Collection<URI> targetURLs)
targetURLs
- the target URLs@OslcPropertyDefinition(value="http://www.sodius.com/ns/process/links#linkTypes") public Collection<URI> getLinkTypes()
public void setLinkTypes(Collection<URI> linkTypes)
linkTypes
- the link types@OslcPropertyDefinition(value="http://www.sodius.com/ns/process/links#gcURL") public URI getGcURL()
public void setGcURL(URI gcURL)
gcURL
- the global configuration URL@OslcPropertyDefinition(value="http://jazz.net/xmlns/prod/jazz/discovery/1.0/rootServices") public URI getRootServices()
ExecuteLinkIndexQuery.create(OslcClient, LinkIndexQuery)
.public void setRootServices(URI rootServices)
ExecuteLinkIndexQuery.create(OslcClient, LinkIndexQuery)
.rootServices
- the root services URL