@Named @ParametersAreNonnullByDefault public class PulpRedirectDaoImpl extends Object implements PulpRedirectDao
PulpRedirectDao that is backed by the ApplicationProperties API.| Constructor and Description |
|---|
PulpRedirectDaoImpl(ApplicationProperties applicationProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRedirect(ApplicationUser user,
int jiraBuildNumber)
Records the given user as having been redirected to the PULP for the given version of JIRA.
|
int |
getRedirectCount(int jiraBuildNumber)
Returns the number of users who have been redirected to the PULP for the given version of JIRA.
|
@Inject public PulpRedirectDaoImpl(ApplicationProperties applicationProperties)
public boolean addRedirect(ApplicationUser user, int jiraBuildNumber)
PulpRedirectDaoaddRedirect in interface PulpRedirectDaouser - the user who was redirectedjiraBuildNumber - the JIRA build numbertrue iff the user has not previously seen the PULPBuildUtilsInfo.getApplicationBuildNumber()public int getRedirectCount(int jiraBuildNumber)
PulpRedirectDaogetRedirectCount in interface PulpRedirectDaojiraBuildNumber - the JIRA application build numberCopyright © 2002-2023 Atlassian. All Rights Reserved.