Interface FeatureProvider

    • Method Detail

      • getFeaturesOfType

        @NotNull
        Collection<? extends ParametersDescriptor> getFeaturesOfType​(@NotNull
                                                                     String type)
        Get all features of specified type
        Parameters:
        type - feature type
        Returns:
        all features of specified type
        Since:
        2020.1
      • findParametersById

        @Nullable
        ParametersDescriptor findParametersById​(@NotNull
                                                String id)
        Find feature with specified id
        Parameters:
        id - feature id
        Returns:
        feature with specified id or null if no such feature is found
        Since:
        2020.1
      • addFeature

        @NotNull
        ParametersDescriptor addFeature​(@NotNull
                                        String type,
                                        @NotNull
                                        Map<String,​String> parameters)
        Add feature of specified type with parameters
        Parameters:
        type - feature type
        parameters - feature parameters
        Returns:
        created feature
        Since:
        2020.1
      • updateFeature

        boolean updateFeature​(@NotNull
                              String id,
                              @NotNull
                              String type,
                              @NotNull
                              Map<String,​String> parameters)
        Updates feature with specified id. Updates feature type and its parameters
        Parameters:
        id - feature id
        type - new feature type
        parameters - new feature parameters
        Returns:
        true if feature was updated
        Since:
        2020.1
      • removeFeature

        @Nullable
        ParametersDescriptor removeFeature​(@NotNull
                                           String id)
        Remove feature with specified id
        Parameters:
        id - feature id
        Returns:
        removed feature or null if feature with specified id didn't exist
        Since:
        2020.1
      • getId

        @NotNull
        String getId()
        Get external id
        Returns:
        external id
        Since:
        2020.1
      • getType

        @NotNull
        String getType()
        Returns type of its underlying provider (project, build type etc.)
        Returns: