Package com.atlassian.bamboo.agent
Interface PerAgentTokenDao
-
- All Superinterfaces:
BambooObjectDao<PerAgentToken>
- All Known Implementing Classes:
PerAgentTokenHibernateDao
@Internal public interface PerAgentTokenDao extends BambooObjectDao<PerAgentToken>
DAO forPerAgentToken
.- Since:
- 9.3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(@NotNull String resultKey, @NotNull Timestamp dueTimestamp)
Deletes all tokens for a given result key created before the passed timestamp.boolean
isValid(@NotNull String resultKey, @NotNull String token)
Checks if token is valid for a given result key.boolean
isValidForAnyResultKey(@NotNull String token)
Checks if token is valid for any result key.void
save(@NotNull String resultKey, @NotNull String token)
Saves token for a given result key.-
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
save
void save(@NotNull @NotNull String resultKey, @NotNull @NotNull String token)
Saves token for a given result key.- Parameters:
resultKey
- result keytoken
- token
-
isValid
boolean isValid(@NotNull @NotNull String resultKey, @NotNull @NotNull String token)
Checks if token is valid for a given result key.- Parameters:
resultKey
- result keytoken
- token- Returns:
- true if token is valid, false otherwise
-
isValidForAnyResultKey
boolean isValidForAnyResultKey(@NotNull @NotNull String token)
Checks if token is valid for any result key.- Parameters:
token
- token- Returns:
- true if token is valid, false otherwise
-
-