Interface ProjectExportService


  • public interface ProjectExportService
    Since:
    20.11.25
    Author:
    Norman Lorenz
    • Method Detail

      • getInstance

        static ProjectExportService getInstance()
        Retrieves the singleton instance of the ProjectExportService using CDI.
        Returns:
        The ProjectExportService instance.
      • analyzeForExport

        ProjectExportAnalysisResult analyzeForExport​(Long projectId,
                                                     ProjectUser user)
                                              throws FcProjectExportException
        Analyzes the specified project for export, identifying all dependencies and checking user permissions.
        Parameters:
        projectId - The ID of the project.
        user - The user requesting the dependencies.
        Returns:
        A ProjectExportAnalysisResult containing the identified dependencies and any errors.
        Throws:
        IllegalArgumentException - if the projectId is null or the user is null.
        FcProjectExportException - if the project does not exist, the user lacks permissions, or another error occurs during retrieval.