@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)
PulpRedirectDao
addRedirect
in interface PulpRedirectDao
user
- the user who was redirectedjiraBuildNumber
- the JIRA build numbertrue
iff the user has not previously seen the PULPBuildUtilsInfo.getApplicationBuildNumber()
public int getRedirectCount(int jiraBuildNumber)
PulpRedirectDao
getRedirectCount
in interface PulpRedirectDao
jiraBuildNumber
- the JIRA application build numberCopyright © 2002-2022 Atlassian. All Rights Reserved.