Package org.eclipse.lyo.client.resources
Class ResourceShapeClient
java.lang.Object
org.eclipse.lyo.client.resources.ResourceShapeClient
Discovers resource shapes advertised by OSLC creation factories.
The client can optionally be bound to an OSLC configuration context:
var shapes = new ResourceShapeClient(oslcClient, configurationUri);
var shape = shapes.lookupRequirementShape(
serviceProviderUri,
"System Requirement");
-
Constructor Summary
ConstructorsConstructorDescriptionResourceShapeClient(OslcClient client) ResourceShapeClient(OslcClient client, URI configurationContext) -
Method Summary
Modifier and TypeMethodDescriptionlookupArchitectureResourceShape(URI serviceProviderUri, String shapeIdentifier) lookupChangeRequestShape(URI serviceProviderUri, String shapeIdentifier) lookupRequirementCollectionShape(URI serviceProviderUri, String shapeIdentifier) lookupRequirementShape(URI serviceProviderUri, String shapeIdentifier) lookupShape(URI serviceProviderUri, URI domain, URI resourceType, String shapeIdentifier) Looks up a resource shape advertised by a matching creation factory.lookupTestCaseShape(URI serviceProviderUri, String shapeIdentifier) lookupTestExecutionRecordShape(URI serviceProviderUri, String shapeIdentifier) lookupTestPlanShape(URI serviceProviderUri, String shapeIdentifier) lookupTestResultShape(URI serviceProviderUri, String shapeIdentifier) lookupTestScriptShape(URI serviceProviderUri, String shapeIdentifier)
-
Constructor Details
-
ResourceShapeClient
-
ResourceShapeClient
-
-
Method Details
-
lookupShape
public ResourceShape lookupShape(URI serviceProviderUri, URI domain, URI resourceType, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException Looks up a resource shape advertised by a matching creation factory.shapeIdentifiermay be either:- the resource shape URI, or
- the resource shape title, matched case-insensitively.
- Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupRequirementShape
public ResourceShape lookupRequirementShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupRequirementCollectionShape
public ResourceShape lookupRequirementCollectionShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupChangeRequestShape
public ResourceShape lookupChangeRequestShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupTestPlanShape
public ResourceShape lookupTestPlanShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupTestCaseShape
public ResourceShape lookupTestCaseShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupTestScriptShape
public ResourceShape lookupTestScriptShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupTestExecutionRecordShape
public ResourceShape lookupTestExecutionRecordShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupTestResultShape
public ResourceShape lookupTestResultShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-
lookupArchitectureResourceShape
public ResourceShape lookupArchitectureResourceShape(URI serviceProviderUri, String shapeIdentifier) throws IOException, URISyntaxException, ResourceNotFoundException, net.oauth.OAuthException - Throws:
IOExceptionURISyntaxExceptionResourceNotFoundExceptionnet.oauth.OAuthException
-