Class ArtifactTypeUsageMappingDialogBuilder


  • public abstract class ArtifactTypeUsageMappingDialogBuilder
    extends Object
    Builder to create Dialogs based on an Artifact Type Usage Mapping. Adds the Dialogs to a Service based on the Artifact Type Usage Mapping found for the given containerId. If no mapping has been created for this containerId, the default Artifacts provided by the ArtifactTypeStore will be used.
    Since:
    3.1.0
    • Field Detail

      • containerId

        protected final String containerId
    • Constructor Detail

      • ArtifactTypeUsageMappingDialogBuilder

        protected ArtifactTypeUsageMappingDialogBuilder​(String containerId,
                                                        Service service)
        Instantiates a builder to create Dialogs based on the Artifact Type Usage Mappings of the given container.
        Parameters:
        containerId - The container ID of the project
        service - The service to add the Dialogs to
    • Method Detail

      • fillSelectionDialog

        protected abstract void fillSelectionDialog​(Dialog selectionDialog,
                                                    ArtifactTypeUsageMapping artifactTypeUsageMapping)
        Fill the missing properties on the given selection dialog:
        • oslc_core:dialog (the dialog URI)
        • oslc_core:hintHeight
        • oslc_core:hintWidth
        Parameters:
        selectionDialog - the selection dialog to fill
        artifactTypeUsageMapping - the artifact type usage mapping from which the dialog was initialized with a label, resource type and usage
      • fillCreationDialog

        protected abstract void fillCreationDialog​(Dialog creationDialog,
                                                   ArtifactTypeUsageMapping artifactTypeUsageMapping)
        Fill the missing properties on the given creation dialog:
        • oslc_core:dialog (the dialog URI)
        • oslc_core:hintHeight
        • oslc_core:hintWidth
        Parameters:
        creationDialog - the creation dialog to fill
        artifactTypeUsageMapping - the artifact type usage mapping from which the dialog was initialized with a label, resource type and usage