Package com.atlassian.bamboo.agent
Interface PerAgentTokenDao
- All Superinterfaces:
BambooObjectDao<PerAgentToken>
- All Known Implementing Classes:
PerAgentTokenHibernateDao
DAO for
PerAgentToken
.- Since:
- 9.3.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes all tokens for a given result key created before the passed timestamp.boolean
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
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 Details
-
save
Saves token for a given result key.- Parameters:
resultKey
- result keytoken
- token
-
isValid
Checks if token is valid for a given result key.- Parameters:
resultKey
- result keytoken
- token- Returns:
- true if token is valid, false otherwise
-
isValidForAnyResultKey
Checks if token is valid for any result key.- Parameters:
token
- token- Returns:
- true if token is valid, false otherwise
-
delete
Deletes all tokens for a given result key created before the passed timestamp.- Parameters:
resultKey
- result keydueTimestamp
- due timestamp
-