Class LinkingScreeningContext
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.server.process.links.model.LinkingScreeningContext
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://www.sodius.com/ns/process#")
@OslcResourceShape(title="Screening Linking Resource Shape",
describes="http://www.sodius.com/ns/process#LinkingScreeningContext")
public class LinkingScreeningContext
extends AbstractResource
Encapsulates the linking-screening-related data (linking type, linking resource and in-used global configuration if any).
Unlike LinkingContext, this class does have a ServiceProvider property and its linkingResource property is of
type String. The reason for the latter is because such text represents whatever the user dropped or pasted in the DnD dialog,
whereas for the former is to validate the associated ServiceProvider against to the corresponding dropped/pasted resource.
- Since:
- 3.7.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for JAX-RS framework use.LinkingScreeningContext(URI linkingType, URI serviceProvider, URI configuration, String configurationTitle) Constructs a linking screening context for the given data. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetConfiguration(Link configuration) voidsetLinkingResource(String linkingResource) voidsetLinkingType(URI linkingType) voidsetServiceProvider(URI serviceProvider) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
LinkingScreeningContext
public LinkingScreeningContext()Default constructor for JAX-RS framework use. -
LinkingScreeningContext
public LinkingScreeningContext(URI linkingType, URI serviceProvider, URI configuration, String configurationTitle) Constructs a linking screening context for the given data.- Parameters:
linkingType- the linking type.serviceProvider- the remote service provider.configuration- the (optional) Global Configuration URI.configurationTitle- the (optional) Global Configuration title.- Throws:
OslcWebApplicationException- if eitherlinkingTypeorserviceProviderisnull.
-
-
Method Details
-
getLinkingResource
@OslcPropertyDefinition("http://www.sodius.com/ns/process#linkingResource") @OslcValueType(String) public String getLinkingResource() -
setLinkingResource
-
getServiceProvider
@OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcValueType(Resource) public URI getServiceProvider() -
setServiceProvider
-
getLinkingType
@OslcPropertyDefinition("http://www.sodius.com/ns/process#linkingType") @OslcValueType(Resource) public URI getLinkingType() -
setLinkingType
-
getConfiguration
@OslcPropertyDefinition("http://open-services.net/ns/config#configuration") @OslcValueType(Resource) public Link getConfiguration() -
setConfiguration
-