Interface MetadataImportExportManager


  • public interface MetadataImportExportManager
    Manager for importing Metadatastructure to confluence
    • Method Detail

      • importMetadata

        void importMetadata​(String json)
        An example import JSON is available inside the Metadata Add-On
        Parameters:
        json -
      • exportMetadataValues

        URI exportMetadataValues​(String query,
                                 String cql,
                                 String sortColumn,
                                 com.atlassian.confluence.search.v2.SearchSort.Order sortDirection,
                                 String fieldsFilter,
                                 Set<CommonMetadata> commonMetadatas,
                                 boolean showHiddenFields,
                                 String title,
                                 com.atlassian.confluence.pages.AbstractPage ceo,
                                 com.atlassian.user.User user)
        Exports metadata values to a *.csv file based on a search query.
        Parameters:
        query - - The search query
        cql - - The cql query
        sortColumn - - The column the content is sorted by
        sortDirection - - The sort direction (ASC, DESC)
        fieldsFilter - - Specify the metadatafields to be exported
        commonMetadatas - - Set to specify the common metadata to be exported (Optional paramter, nullable)
        showHiddenFields - - Show hidden fields
        title - - an alternate title for the content links (nullable)
        ceo - - the id of the current contentobject
        user - - the user who is currently exporting
        Returns:
        The download path