Interface PulpRedirectDao

  • All Known Implementing Classes:
    PulpRedirectDaoImpl

    @ParametersAreNonnullByDefault
    public interface PulpRedirectDao
    DAO for keeping a record of redirects to the post-upgrade landing page (PULP).
    Since:
    7.0.1
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean addRedirect​(ConfluenceUser user, String confluenceVersionNumber)
      Records the given user as having been redirected to the PULP for the given version of Confluence.
      int getRedirectCount​(String confluenceVersionNumber)
      Returns the number of users who have been redirected to the PULP for the given version of Confluence.
      boolean hasBeenRedirected​(ConfluenceUser user, String confluenceVersionNumber)
      Returns whether the user has been redirected to the PULP for this given version of Confluence.
    • Method Detail

      • addRedirect

        boolean addRedirect​(ConfluenceUser user,
                            String confluenceVersionNumber)
        Records the given user as having been redirected to the PULP for the given version of Confluence.
        Parameters:
        user - the user who was redirected
        confluenceVersionNumber - the Confluence version number
        Returns:
        true iff the user has not previously seen the PULP
        See Also:
        ()
      • getRedirectCount

        int getRedirectCount​(String confluenceVersionNumber)
        Returns the number of users who have been redirected to the PULP for the given version of Confluence.
        Parameters:
        confluenceVersionNumber - the Confluence application version number
        Returns:
        see above
      • hasBeenRedirected

        boolean hasBeenRedirected​(ConfluenceUser user,
                                  String confluenceVersionNumber)
        Returns whether the user has been redirected to the PULP for this given version of Confluence.
        Parameters:
        user - the user
        confluenceVersionNumber - the Confluence application version number
        Returns:
        see above