@Named @ParametersAreNonnullByDefault public class PulpRedirectDaoImpl extends Object implements PulpRedirectDao
PulpRedirectDao
that is backed by the PluginSettings
API.Constructor and Description |
---|
PulpRedirectDaoImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
addRedirect(@Nullable 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.
|
@Inject public PulpRedirectDaoImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory)
public boolean addRedirect(@Nullable ConfluenceUser user, String confluenceVersionNumber)
PulpRedirectDao
addRedirect
in interface PulpRedirectDao
user
- the user who was redirectedconfluenceVersionNumber
- the Confluence version numbertrue
iff the user has not previously seen the PULP()
public int getRedirectCount(String confluenceVersionNumber)
PulpRedirectDao
getRedirectCount
in interface PulpRedirectDao
confluenceVersionNumber
- the Confluence application version numberpublic boolean hasBeenRedirected(ConfluenceUser user, String confluenceVersionNumber)
PulpRedirectDao
hasBeenRedirected
in interface PulpRedirectDao
user
- the userconfluenceVersionNumber
- the Confluence application version numberCopyright © 2003–2021 Atlassian. All rights reserved.