Interface IProjectManager

    • Method Detail

      • getAllProjects

        java.util.Collection<IProject> getAllProjects()
                                               throws PortalException
        Returns all projects.
        Returns:
        all projects.
        Throws:
        PortalException - if some error occur.
        Since:
        17.0.0
      • getProjectByWebsiteId

        java.util.Optional<IProject> getProjectByWebsiteId​(java.lang.String websiteId)
                                                    throws PortalException
        Returns an optional project based on the given website identifier. The optional will not be present if no such project could be found. This operation tries to find the project recursively among the given website's channel and all its parents.
        Parameters:
        websiteId - the website identifier.
        Returns:
        an optional project based on the given website identifier.
        Throws:
        PortalException - if some error occur.
        Since:
        17.0.0
      • getProjectByChannelId

        java.util.Optional<IProject> getProjectByChannelId​(java.lang.String channelId)
                                                    throws PortalException
        Returns an optional project based on the given channel identifier. The optional will not be present if no such project could be found. This operation tries to find the project recursively among the given channel and all its parents.
        Parameters:
        channelId - the channel identifier.
        Returns:
        an optional project based on the given channel identifier.
        Throws:
        PortalException - if some error occur.
        Since:
        17.0.0
      • getProjectByServiceInstanceId

        default java.util.Optional<IProject> getProjectByServiceInstanceId​(java.lang.String serviceInstanceId)
                                                                    throws PortalException
        Returns an optional project based on the given service instance identifier. The optional will not be present if no such project could be found. This operation tries to find the project recursively among the parent channels of the given service instance.
        Parameters:
        serviceInstanceId - the service instance identifier.
        Returns:
        an optional project based on the given service instance identifier.
        Throws:
        PortalException - if some error occur.
        Since:
        17.0.0