Class ArtifactTypeMappingServiceBuilder
java.lang.Object
com.sodius.oslc.server.process.types.services.ArtifactTypeMappingServiceBuilder
Convenient builder to create a
Service based on the artifact type mappings of a container.- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionBuilds aServicefor a given domain.creationDialogs(BiConsumer<Dialog, ArtifactTypeMapping> customizer) Registers the creationDialogcustomizer.creationFactories(Consumer<CreationFactory> customizer) Registers theCreationFactorycustomizer.forContainer(String container) Creates a builder for a given artifact type mappings container.queryCapabilities(BiConsumer<QueryCapability, Link> customizer) Registers theQueryCapabilitycustomizer.selectionDialogs(BiConsumer<Dialog, ArtifactTypeMapping> customizer) Registers the selectionDialogcustomizer.
-
Method Details
-
forContainer
public static ArtifactTypeMappingServiceBuilder forContainer(String container) throws ArtifactTypeMappingStoreException, LinkingTypesStoreException Creates a builder for a given artifact type mappings container.- Parameters:
container- the artifact type mappings container id.- Returns:
- the corresponding builder.
- Throws:
NullPointerException- ifcontainerisnull.ArtifactTypeMappingStoreException- if the artifact type mappings cannot be resolved.LinkingTypesStoreException- if an error prevents resource types from being retrieved.- Since:
- 3.13.0
-
selectionDialogs
public ArtifactTypeMappingServiceBuilder selectionDialogs(BiConsumer<Dialog, ArtifactTypeMapping> customizer) Registers the selectionDialogcustomizer.The customizer must set at minimum the
dialog URIor the processing dialog will not be included in theService. The dialog size is also expected to be set.- Parameters:
customizer- the selection dialog customizer.- Returns:
- this builder reference.
- Throws:
NullPointerException- ifcustomizerisnull.- Since:
- 3.13.0
-
creationDialogs
public ArtifactTypeMappingServiceBuilder creationDialogs(BiConsumer<Dialog, ArtifactTypeMapping> customizer) Registers the creationDialogcustomizer.The customizer must set at minimum the
dialog URIor the processing dialog will not be included in theService. The dialog size is also expected to be set.- Parameters:
customizer- the creation dialog customizer.- Returns:
- this builder reference.
- Throws:
NullPointerException- ifcustomizerisnull.- Since:
- 3.13.0
-
queryCapabilities
public ArtifactTypeMappingServiceBuilder queryCapabilities(BiConsumer<QueryCapability, Link> customizer) Registers theQueryCapabilitycustomizer.The customizer must set at minimum the
query base URIor the processing capability will not be included in theService.- Parameters:
customizer- the query capability customizer.- Returns:
- this builder reference.
- Throws:
NullPointerException- ifcustomizerisnull.- Since:
- 3.13.0
-
creationFactories
Registers theCreationFactorycustomizer.The customizer must set at minimum the
creationandresource shapeURIs or the processing factory will not be included in theService.- Parameters:
customizer- the creation factory customizer.- Returns:
- this builder reference.
- Throws:
NullPointerException- ifcustomizerisnull.- Since:
- 3.13.0
-
build
Builds aServicefor a given domain.- Parameters:
domain- the domain URI.- Returns:
- the corresponding service.
- Throws:
NullPointerException- ifdomainisnull.
-