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 LongintdeleteByProjectId(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 MutableCredentialsDatafindById(long id) Shortcut forBambooObjectDao.findById(long, Class).@Nullable MutableCredentialsDatafindByNameAndProjectId(String name, long projectId) @Nullable MutableCredentialsDatafindByOid(@NotNull BambooEntityOid oid) Shortcut for.invalid reference
BambooObjectWithOidDao#findByOid(BambooEntityOid, Class)@NotNull Collection<? extends MutableCredentialsData> @Nullable MutableCredentialsDatafindGlobalByName(String name) @NotNull List<? extends MutableCredentialsData> findGlobalByPluginKey(@NotNull String pluginKey) @NotNull BambooEntityOidgetMaxCredentialOid(int serverKey) @NotNull List<? extends MutableCredentialsData> getPaginatedSharedCredentials(@Nullable Long projectId, int start, int limit, String filter) booleanhasAnyGlobalCredentials(@NotNull String pluginKey) @NotNull MutableCredentialsDatamerge(@NotNull MutableCredentialsData unmanagedEntity) Shortcut forBambooObjectDao.merge(BambooObject, Class).Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findAll, findById, merge, save, saveAllMethods 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 for.invalid reference
BambooObjectWithOidDao#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
-