Package com.atlassian.bamboo.credentials
Interface CredentialsDao
- All Superinterfaces:
BambooObjectDao<MutableCredentialsData>
,BambooObjectWithOidDao<MutableCredentialsData>
- All Known Implementing Classes:
CredentialsHibernateDao
-
Method Summary
Modifier and TypeMethodDescription@NotNull Long
@NotNull Long
int
deleteByProjectId
(long projectId) @NotNull Collection<? extends MutableCredentialsData>
findAll()
Shortcut forBambooObjectDao.findAll(Class)
.@NotNull Collection<? extends MutableCredentialsData>
findAll
(int firstResult, int maxResults) @NotNull List<? extends MutableCredentialsData>
findAllByPluginKey
(@NotNull String pluginKey) @NotNull Collection<? extends MutableCredentialsData>
findAllByProject
(Long projectId) @NotNull Collection<? extends MutableCredentialsData>
findAllByProjectAndPluginKey
(@NotNull Long projectId, @NotNull String pluginKey) @Nullable MutableCredentialsData
findById
(long id) Shortcut forBambooObjectDao.findById(long, Class)
.@Nullable MutableCredentialsData
findByNameAndProjectId
(String name, long projectId) @Nullable MutableCredentialsData
findByOid
(@NotNull BambooEntityOid oid) Shortcut forBambooObjectWithOidDao.findByOid(BambooEntityOid, Class)
.@NotNull Collection<? extends MutableCredentialsData>
@Nullable MutableCredentialsData
findGlobalByName
(String name) @NotNull List<? extends MutableCredentialsData>
findGlobalByPluginKey
(@NotNull String pluginKey) @NotNull BambooEntityOid
getMaxCredentialOid
(int serverKey) @NotNull List<? extends MutableCredentialsData>
getPaginatedSharedCredentials
(@Nullable Long projectId, int start, int limit, String filter) boolean
hasAnyGlobalCredentials
(@NotNull String pluginKey) @NotNull MutableCredentialsData
merge
(@NotNull MutableCredentialsData unmanagedEntity) Shortcut forBambooObjectDao.merge(BambooObject, Class)
.Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectWithOidDao
findByOid
-
Method Details
-
getMaxCredentialOid
-
findAll
@NotNull @NotNull Collection<? extends MutableCredentialsData> findAll(int firstResult, int maxResults) - Parameters:
firstResult
-maxResults
-- Returns:
- A collection of all known credentials that match given parameters
-
findGlobalByPluginKey
@NotNull @NotNull List<? extends MutableCredentialsData> findGlobalByPluginKey(@NotNull @NotNull String pluginKey) - Returns:
- A list of global credentials that match the given plugin key
-
findAllByPluginKey
@NotNull @NotNull List<? extends MutableCredentialsData> findAllByPluginKey(@NotNull @NotNull String pluginKey) - Returns:
- A list of global and project credentials that match the given plugin key
-
hasAnyGlobalCredentials
- Returns:
- True if there are global credentials that match the given plugin key
-
findGlobalByName
- Returns:
- global credentials that match the given name
-
findGlobalAll
- Returns:
- A list of all global credentials
-
countAllGlobalCredentials
- Returns:
- a count of all global credentials
-
countAllProjectsCredentials
- Returns:
- a count of all project credentials
-
deleteByProjectId
int deleteByProjectId(long projectId) -
findAll
Shortcut forBambooObjectDao.findAll(Class)
. -
findById
Shortcut forBambooObjectDao.findById(long, Class)
. -
findByOid
Shortcut forBambooObjectWithOidDao.findByOid(BambooEntityOid, Class)
. -
merge
@NotNull @NotNull MutableCredentialsData merge(@NotNull @NotNull MutableCredentialsData unmanagedEntity) Shortcut forBambooObjectDao.merge(BambooObject, Class)
. -
findAllByProject
-
findAllByProjectAndPluginKey
@NotNull @NotNull Collection<? extends MutableCredentialsData> findAllByProjectAndPluginKey(@NotNull @NotNull Long projectId, @NotNull @NotNull String pluginKey) -
findByNameAndProjectId
-