public class CredentialsHibernateDao extends BambooHibernateObjectWithOidDao<MutableCredentialsData> implements CredentialsDao
Constructor and Description |
---|
CredentialsHibernateDao() |
findByOid
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findByOid
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@NotNull public @NotNull Collection<? extends MutableCredentialsData> findAll(int firstResult, int maxResults)
findAll
in interface CredentialsDao
@NotNull public @NotNull BambooEntityOid getMaxCredentialOid(int serverKey)
getMaxCredentialOid
in interface CredentialsDao
@Nullable public @Nullable MutableCredentialsData findGlobalByName(String name)
findGlobalByName
in interface CredentialsDao
public MutableCredentialsData findByNameAndProjectId(String name, long projectId)
findByNameAndProjectId
in interface CredentialsDao
@NotNull public @NotNull Collection<? extends MutableCredentialsData> findAllByProject(Long projectId)
findAllByProject
in interface CredentialsDao
@NotNull public @NotNull Collection<? extends MutableCredentialsData> findAllByProjectAndPluginKey(Long projectId, String pluginKey)
findAllByProjectAndPluginKey
in interface CredentialsDao
public boolean hasAnyGlobalCredentials(@NotNull @NotNull String pluginKey)
hasAnyGlobalCredentials
in interface CredentialsDao
@NotNull public @NotNull Collection<? extends MutableCredentialsData> findGlobalAll()
findGlobalAll
in interface CredentialsDao
@NotNull public @NotNull Long countAllGlobalCredentials()
countAllGlobalCredentials
in interface CredentialsDao
@NotNull public @NotNull Long countAllProjectsCredentials()
countAllProjectsCredentials
in interface CredentialsDao
@NotNull public @NotNull List<Long> findAllProjectsIdsUsingProjectSharedCredentials()
findAllProjectsIdsUsingProjectSharedCredentials
in interface CredentialsDao
@NotNull public @NotNull Collection<? extends MutableCredentialsData> findAll()
CredentialsDao
BambooObjectDao.findAll(Class)
.findAll
in interface CredentialsDao
@Nullable public @Nullable MutableCredentialsData findById(long id)
CredentialsDao
BambooObjectDao.findById(long, Class)
.findById
in interface CredentialsDao
@Nullable public @Nullable MutableCredentialsData findByOid(@NotNull @NotNull BambooEntityOid oid)
CredentialsDao
BambooObjectWithOidDao.findByOid(BambooEntityOid, Class)
.findByOid
in interface CredentialsDao
@NotNull public @NotNull MutableCredentialsData merge(@NotNull @NotNull MutableCredentialsData unmanagedEntity)
CredentialsDao
BambooObjectDao.merge(BambooObject, Class)
.merge
in interface CredentialsDao
@NotNull public @NotNull List<MutableCredentialsData> getPaginatedSharedCredentials(@Nullable @Nullable Long projectId, int start, int limit, String filter)
getPaginatedSharedCredentials
in interface CredentialsDao
public int deleteByProjectId(long projectId)
deleteByProjectId
in interface CredentialsDao
@NotNull public @NotNull List<? extends MutableCredentialsData> findGlobalByPluginKey(@NotNull @NotNull String pluginKey)
findGlobalByPluginKey
in interface CredentialsDao
@NotNull public @NotNull List<? extends MutableCredentialsData> findAllByPluginKey(@NotNull @NotNull String pluginKey)
findAllByPluginKey
in interface CredentialsDao
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences