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 Collection<? extends MutableCredentialsData> findAll(int firstResult, int maxResults)
findAll
in interface CredentialsDao
@NotNull public BambooEntityOid getMaxCredentialOid(int serverKey)
getMaxCredentialOid
in interface CredentialsDao
@Nullable public MutableCredentialsData findGlobalByName(String name)
findGlobalByName
in interface CredentialsDao
public MutableCredentialsData findByNameAndProjectId(String name, long projectId)
findByNameAndProjectId
in interface CredentialsDao
@NotNull public Collection<? extends MutableCredentialsData> findAllByProject(Long projectId)
findAllByProject
in interface CredentialsDao
@NotNull public Collection<? extends MutableCredentialsData> findAllByProjectAndPluginKey(Long projectId, String pluginKey)
findAllByProjectAndPluginKey
in interface CredentialsDao
public boolean hasAnyGlobalCredentials(@NotNull String pluginKey)
hasAnyGlobalCredentials
in interface CredentialsDao
@NotNull public Collection<? extends MutableCredentialsData> findGlobalAll()
findGlobalAll
in interface CredentialsDao
@NotNull public Collection<? extends MutableCredentialsData> findAll()
CredentialsDao
BambooObjectDao.findAll(Class)
.findAll
in interface CredentialsDao
@Nullable public MutableCredentialsData findById(long id)
CredentialsDao
BambooObjectDao.findById(long, Class)
.findById
in interface CredentialsDao
@Nullable public MutableCredentialsData findByOid(@NotNull BambooEntityOid oid)
CredentialsDao
BambooObjectWithOidDao.findByOid(BambooEntityOid, Class)
.findByOid
in interface CredentialsDao
@NotNull public MutableCredentialsData merge(@NotNull MutableCredentialsData unmanagedEntity)
CredentialsDao
BambooObjectDao.merge(BambooObject, Class)
.merge
in interface CredentialsDao
@NotNull public List<MutableCredentialsData> getPaginatedSharedCredentials(@Nullable Long projectId, int start, int limit, String filter)
getPaginatedSharedCredentials
in interface CredentialsDao
public int deleteByProjectId(long projectId)
deleteByProjectId
in interface CredentialsDao
@NotNull public List<? extends MutableCredentialsData> findGlobalByPluginKey(@NotNull String pluginKey)
findGlobalByPluginKey
in interface CredentialsDao
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.