Package com.atlassian.bamboo.credentials
Interface CredentialsDao
-
- All Superinterfaces:
BambooObjectDao<MutableCredentialsData>
,BambooObjectWithOidDao<MutableCredentialsData>
- All Known Implementing Classes:
CredentialsHibernateDao
public interface CredentialsDao extends BambooObjectWithOidDao<MutableCredentialsData>
-
-
Method Summary
-
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 Detail
-
getMaxCredentialOid
@NotNull @NotNull BambooEntityOid getMaxCredentialOid(int serverKey)
-
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
boolean hasAnyGlobalCredentials(@NotNull @NotNull String pluginKey)
- Returns:
- True if there are global credentials that match the given plugin key
-
findGlobalByName
@Nullable @Nullable MutableCredentialsData findGlobalByName(String name)
- Returns:
- global credentials that match the given name
-
findGlobalAll
@NotNull @NotNull Collection<? extends MutableCredentialsData> findGlobalAll()
- Returns:
- A list of all global credentials
-
countAllGlobalCredentials
@NotNull @NotNull Long countAllGlobalCredentials()
- Returns:
- a count of all global credentials
-
countAllProjectsCredentials
@NotNull @NotNull Long countAllProjectsCredentials()
- Returns:
- a count of all project credentials
-
findAllProjectsIdsUsingProjectSharedCredentials
@NotNull @NotNull List<Long> findAllProjectsIdsUsingProjectSharedCredentials()
- Returns:
- a list containing all projects that use project credentials.
-
getPaginatedSharedCredentials
@NotNull @NotNull List<? extends MutableCredentialsData> getPaginatedSharedCredentials(@Nullable @Nullable Long projectId, int start, int limit, String filter)
-
deleteByProjectId
int deleteByProjectId(long projectId)
-
findAll
@NotNull @NotNull Collection<? extends MutableCredentialsData> findAll()
Shortcut forBambooObjectDao.findAll(Class)
.
-
findById
@Nullable @Nullable MutableCredentialsData findById(long id)
Shortcut forBambooObjectDao.findById(long, Class)
.
-
findByOid
@Nullable @Nullable MutableCredentialsData findByOid(@NotNull @NotNull BambooEntityOid oid)
Shortcut forBambooObjectWithOidDao.findByOid(BambooEntityOid, Class)
.
-
merge
@NotNull @NotNull MutableCredentialsData merge(@NotNull @NotNull MutableCredentialsData unmanagedEntity)
Shortcut forBambooObjectDao.merge(BambooObject, Class)
.
-
findAllByProject
@NotNull @NotNull Collection<? extends MutableCredentialsData> findAllByProject(Long projectId)
-
findAllByProjectAndPluginKey
@NotNull @NotNull Collection<? extends MutableCredentialsData> findAllByProjectAndPluginKey(@NotNull @NotNull Long projectId, @NotNull @NotNull String pluginKey)
-
findByNameAndProjectId
@Nullable @Nullable MutableCredentialsData findByNameAndProjectId(String name, long projectId)
-
-