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.StatelessSessionHibernateDaoSupport
-
- 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
-
-
Constructor Summary
Constructors Constructor Description TrustedKeyHibernateDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
delete(long id)
Deletes the trusted key with given id.@NotNull List<TrustedKey>
findAll()
@Nullable TrustedKey
findByHostAndKey(@NotNull String host, @NotNull String key)
@Nullable TrustedKey
findById(long id)
-
Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
-
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
-
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
findAll
@NotNull public @NotNull List<TrustedKey> findAll()
- Specified by:
findAll
in interfaceTrustedKeyDao
-
findById
@Nullable public @Nullable TrustedKey findById(long id)
- Specified by:
findById
in interfaceTrustedKeyDao
-
findByHostAndKey
@Nullable public @Nullable TrustedKey findByHostAndKey(@NotNull @NotNull String host, @NotNull @NotNull String key)
- Specified by:
findByHostAndKey
in interfaceTrustedKeyDao
-
delete
public boolean delete(long id)
Description copied from interface:TrustedKeyDao
Deletes the trusted key with given id.- Specified by:
delete
in interfaceTrustedKeyDao
- Returns:
- true if trusted key with given id was found was deleted, false otherwise
-
-