@Named @ParametersAreNonnullByDefault public class PulpViewsDaoImpl extends Object implements PulpViewsDao
PulpViewsDao
that is backed by the ApplicationProperties
API.Constructor and Description |
---|
PulpViewsDaoImpl(ApplicationProperties applicationProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
addUserWhoHasSeenPulp(ApplicationUser user,
int jiraBuildNumber)
Records the given user as having seen the PULP for the given version of JIRA.
|
int |
getNumberOfUsersWhoHaveSeenPulp(int jiraBuildNumber)
Returns the number of users who have seen the PULP for the given version of JIRA.
|
@Inject public PulpViewsDaoImpl(ApplicationProperties applicationProperties)
public boolean addUserWhoHasSeenPulp(ApplicationUser user, int jiraBuildNumber)
PulpViewsDao
addUserWhoHasSeenPulp
in interface PulpViewsDao
user
- the user to markjiraBuildNumber
- the JIRA build numbertrue
iff the user has not previously seen the PULPBuildUtilsInfo.getApplicationBuildNumber()
public int getNumberOfUsersWhoHaveSeenPulp(int jiraBuildNumber)
PulpViewsDao
getNumberOfUsersWhoHaveSeenPulp
in interface PulpViewsDao
jiraBuildNumber
- the JIRA application build numberCopyright © 2002-2017 Atlassian. All Rights Reserved.
View cookie preferences