Package com.atlassian.crowd.dao.sso
Class SAMLTrustDAOHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<SAMLTrustEntity>
com.atlassian.crowd.dao.sso.SAMLTrustDAOHibernate
- All Implemented Interfaces:
SAMLTrustDAO
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSamlTrustEntity
(SAMLTrustEntity samlTrustEntity) Store new certificate and private keyfindAll()
Returns all stored entities of typeSAMLTrustEntity
.findSamlTrustEntityById
(long trustEntityId) All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, getCountByProperties, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, update
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
SAMLTrustDAOHibernate
public SAMLTrustDAOHibernate()
-
-
Method Details
-
addSamlTrustEntity
Description copied from interface:SAMLTrustDAO
Store new certificate and private key- Specified by:
addSamlTrustEntity
in interfaceSAMLTrustDAO
- Parameters:
samlTrustEntity
- trust entity (certificate and private key) to store- Returns:
- the newly-persisted SAML trust entity
-
findSamlTrustEntityById
- Specified by:
findSamlTrustEntityById
in interfaceSAMLTrustDAO
- Parameters:
trustEntityId
- the id of the trust entity (certificate and private key) to find- Returns:
- trust entity based on passed id if found, none otherwise
-
findAll
Description copied from interface:SAMLTrustDAO
Returns all stored entities of typeSAMLTrustEntity
.- Specified by:
findAll
in interfaceSAMLTrustDAO
-
getPersistentClass
Description copied from class:HibernateDao
All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.- Specified by:
getPersistentClass
in classHibernateDao<SAMLTrustEntity>
- Returns:
- the entity class for this DAO
-