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 aServiceProvider
property and itslinkingResource
property is of typeString
. 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 associatedServiceProvider
against to the corresponding dropped/pasted resource.- Since:
- 3.7.0
-
-
Constructor Summary
Constructors Constructor Description LinkingScreeningContext()
Default 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Link
getConfiguration()
String
getLinkingResource()
URI
getLinkingType()
URI
getServiceProvider()
void
setConfiguration(Link configuration)
void
setLinkingResource(String linkingResource)
void
setLinkingType(URI linkingType)
void
setServiceProvider(URI serviceProvider)
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
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 eitherlinkingType
orserviceProvider
isnull
.
-
-
Method Detail
-
getLinkingResource
@OslcPropertyDefinition("http://www.sodius.com/ns/process#linkingResource") @OslcValueType(String) public String getLinkingResource()
-
setLinkingResource
public void setLinkingResource(String linkingResource)
-
getServiceProvider
@OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcValueType(Resource) public URI getServiceProvider()
-
setServiceProvider
public void setServiceProvider(URI serviceProvider)
-
getLinkingType
@OslcPropertyDefinition("http://www.sodius.com/ns/process#linkingType") @OslcValueType(Resource) public URI getLinkingType()
-
setLinkingType
public void setLinkingType(URI linkingType)
-
getConfiguration
@OslcPropertyDefinition("http://open-services.net/ns/config#configuration") @OslcValueType(Resource) public Link getConfiguration()
-
setConfiguration
public void setConfiguration(Link configuration)
-
-