Package com.atlassian.bamboo.security
Class TrustedKeyHibernateDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<TrustedKey>
com.atlassian.bamboo.security.TrustedKeyHibernateDaoImpl
- All Implemented Interfaces:
BambooObjectDao<TrustedKey>,TrustedKeyDao,org.springframework.beans.factory.InitializingBean
public class TrustedKeyHibernateDaoImpl
extends BambooHibernateObjectDao<TrustedKey>
implements TrustedKeyDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete(long id) Deletes the trusted key with given id.@NotNull List<TrustedKey> findAll()@Nullable TrustedKeyfindByHostAndKey(@NotNull String host, @NotNull String key) @Nullable TrustedKeyfindById(long id) Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findAll, findById, merge, save, saveAllMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
TrustedKeyHibernateDaoImpl
public TrustedKeyHibernateDaoImpl()
-
-
Method Details
-
findAll
- Specified by:
findAllin interfaceTrustedKeyDao
-
findById
- Specified by:
findByIdin interfaceTrustedKeyDao
-
findByHostAndKey
@Nullable public @Nullable TrustedKey findByHostAndKey(@NotNull @NotNull String host, @NotNull @NotNull String key) - Specified by:
findByHostAndKeyin interfaceTrustedKeyDao
-
delete
public boolean delete(long id) Description copied from interface:TrustedKeyDaoDeletes the trusted key with given id.- Specified by:
deletein interfaceTrustedKeyDao- Returns:
- true if trusted key with given id was found was deleted, false otherwise
-