Interface ImportGridAction<A extends ImportGridAction<A>>

    • Method Detail

      • startImportEndpoint

        default A startImportEndpoint​(String scope)
        Adds the endpoint to start the import. By default, this adds the ImportGridAction.DefaultURIs.START_IMPORT_URI uri to this endpoint.
        Parameters:
        scope - the OAuth2 scope
        Returns:
        this action for further customization
      • startImportEndpoint

        default A startImportEndpoint​(String scope,
                                      UnaryOperator<Endpoint<?>> fn)
        Adds the endpoint to start the import. By default, this adds the ImportGridAction.DefaultURIs.START_IMPORT_URI uri to this endpoint.
        Parameters:
        scope - the OAuth2 scope
        fn - the added endpoint for further customization
        Returns:
        this action for further customization
      • addStartImportEndpoint

        default A addStartImportEndpoint​(Endpoint<?> endpoint)
        Adds the endpoint to start the import.
        Parameters:
        endpoint - the endpoint to start the import
        Returns:
        this action for further customization
      • removeStartImportEndpoint

        default A removeStartImportEndpoint()
        Removes the endpoint to start the import.
        Returns:
        this action for further customization
      • readImportEndpoint

        default A readImportEndpoint​(String scope)
        Adds the endpoint to read the import by id. By default, this adds the ImportGridAction.DefaultURIs.READ_IMPORT_BY_ID_URI uri to this endpoint.
        Parameters:
        scope - the OAuth2 scope
        Returns:
        this action for further customization
      • addReadImportEndpoint

        default A addReadImportEndpoint​(Endpoint<?> endpoint)
        Adds the endpoint to read the import by id.
        Parameters:
        endpoint - the endpoint to read the import by id
        Returns:
        this action for further customization
      • removeReadImportEndpoint

        default A removeReadImportEndpoint()
        Removes the endpoint to read the import by id.
        Returns:
        this action for further customization
      • nameField

        default A nameField​(String importType)
        Adds the field for the import name into a modal dialog form.
        Parameters:
        importType - the import type. This is used to create the default value like: "importType + " - $TIMESTAMP""
        Returns:
        this action for further customization
      • nameField

        default A nameField​(String importType,
                            UnaryOperator<Field<?>> fn)
        Adds the field for the import name into a modal dialog form.
        Parameters:
        importType - the import type. This is used to create the default value like: "importType + " - $TIMESTAMP"".
        fn - the added field for further customization
        Returns:
        this action for further customization
      • addNameField

        default A addNameField​(Field<?> field)
        Adds the field for the import name into a modal dialog form.
        Parameters:
        field - the added field for further customization
        Returns:
        this action for further customization
      • removeNameField

        default A removeNameField()
        Removes the field for the import name.
        Returns:
        this action for further customization
      • fileInputField

        default A fileInputField()
        Adds the field to select the file to import into a modal dialog form. By default, it accepts the ".csv" files.
        Returns:
        this action for further customization
      • fileInputField

        default A fileInputField​(UnaryOperator<FileInputField<?>> fn)
        Adds the field to select the file to import into a modal dialog form. By default, it accepts the ".csv" files.
        Parameters:
        fn - the added field for further customization
        Returns:
        this action for further customization
      • addFileInputField

        default A addFileInputField​(FileInputField<?> field)
        Adds the field to select the file to import into a modal dialog form.
        Parameters:
        field - the FileInputField to add
        Returns:
        this action for further customization
      • removeFileInputField

        default A removeFileInputField()
        Removes the field to select the file to import.
        Returns:
        this action for further customization
      • downloadImportExampleFile

        default A downloadImportExampleFile​(String importType)
        Adds the LinkExternal to download the import file example into the import info group. If the group doesn't exists the the will be created.
        Parameters:
        importType - the import type
        Returns:
        this action for further customization
      • downloadImportExampleFile

        default A downloadImportExampleFile​(String importType,
                                            UnaryOperator<LinkExternal<?>> fn)
        Adds the LinkExternal to download the import file example into the import info group. If the group doesn't exists the the will be created.
        Parameters:
        importType - the import type
        fn - the added link for further customization
        Returns:
        this action for further customization
      • addDownloadImportExampleFile

        default A addDownloadImportExampleFile​(LinkExternal<?> link)
        Adds the LinkExternal to download the import file example into the import info group. If the group doesn't exists the the will be created.
        Parameters:
        link - the link to add
        Returns:
        this action for further customization
      • removeDownloadImportExampleFile

        default A removeDownloadImportExampleFile()
        Removes the link to download the example file from the import info group.
        Returns:
        this action for further customization
      • importGridInfoGroup

        default A importGridInfoGroup()
        Adds the collapsible group for additional information.
        Returns:
        this action for further customization
      • importGridInfoGroup

        default A importGridInfoGroup​(UnaryOperator<Group<?>> fn)
        Adds the collapsible group for additional information.
        Parameters:
        fn - the added group for further customization
        Returns:
        this action for further customization
      • addImportGridInfoGroup

        default A addImportGridInfoGroup​(Group<?> group)
        Adds the group for additional information.
        Parameters:
        group - the added link for further customization
        Returns:
        this action for further customization
      • removeImportGridInfoGroup

        default A removeImportGridInfoGroup()
        Removes the group for additional information.
        Returns:
        this action for further customization
      • downloadImportErrorsScope

        default A downloadImportErrorsScope​(String scope)
        Adds the ImportGridAction.Attributes.DOWNLOAD_IMPORT_ERRORS_SCOPE attribute. This scope is used to download the file with the import errors.
        Parameters:
        scope - the OAuth2 scope to download the file with the import errors
        Returns:
        this action for further customization
      • findDownloadImportFileExampleLink

        default Optional<External<?>> findDownloadImportFileExampleLink()
        Searches the link to download the import example file.
        Returns:
        the found external link