Interface CredentialsDao

All Superinterfaces:
BambooObjectDao<MutableCredentialsData>, BambooObjectWithOidDao<MutableCredentialsData>
All Known Implementing Classes:
CredentialsHibernateDao

public interface CredentialsDao extends BambooObjectWithOidDao<MutableCredentialsData>
  • Method Details

    • 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()
    • findById

      @Nullable @Nullable MutableCredentialsData findById(long id)
    • findByOid

      @Nullable @Nullable MutableCredentialsData findByOid(@NotNull @NotNull BambooEntityOid oid)
      Shortcut for
      invalid reference
      BambooObjectWithOidDao#findByOid(BambooEntityOid, Class)
      .
    • merge

      @NotNull @NotNull MutableCredentialsData merge(@NotNull @NotNull MutableCredentialsData unmanagedEntity)
    • 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)