Interface IProjectManagerSPI

  • All Known Implementing Classes:
    ProjectManager

    public interface IProjectManagerSPI
    Manages LumisXP projects.
    Since:
    12.4.0
    Version:
    $Revision: 23904 $ $Date: 2020-06-16 12:23:44 -0300 (Tue, 16 Jun 2020) $
    • Method Detail

      • getAllProjects

        java.util.Collection<IProject> getAllProjects()
                                               throws PortalException
        Returns all projects.
        Returns:
        all projects.
        Throws:
        PortalException - if some error occur.
        Since:
        12.4.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:
        12.4.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:
        12.4.0
      • getLocalProjectByChannelId

        java.util.Optional<IProject> getLocalProjectByChannelId​(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. Does not consider channel structure inheritance.
        Parameters:
        channelId - the channel identifier.
        Returns:
        an optional project based on the given channel identifier.
        Throws:
        PortalException - if some error occur.
        Since:
        12.4.0
      • disconnectProjectFromChannel

        void disconnectProjectFromChannel​(java.lang.String channelId)
                                   throws PortalException
        Disconnects the project (if any) of the given channel.
        Parameters:
        channelId - the channel identifier.
        Throws:
        PortalException
        Since:
        12.4.0