Package com.atlassian.crowd.dao.sso
Class ApplicationSamlConfigurationDAOHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<ApplicationSamlConfigurationEntity>
com.atlassian.crowd.dao.sso.ApplicationSamlConfigurationDAOHibernate
- All Implemented Interfaces:
ApplicationSamlConfigurationDAO
public class ApplicationSamlConfigurationDAOHibernate
extends HibernateDao<ApplicationSamlConfigurationEntity>
implements ApplicationSamlConfigurationDAO
-
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 TypeMethodDescriptionfindAll()
Returns list of all configurations.findByAssertionConsumerAndAudience
(String assertionConsumerUrl, String audience) Returns the SAML SSO configuration for the specified assertion consumer url and audience.All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.loadForApplication
(Application application) Returns the SAML SSO configuration for the specified applicationvoid
save
(ApplicationSamlConfigurationEntity applicationSamlConfiguration) Creates or updates SAML SSO configuration for an applicationMethods 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
-
ApplicationSamlConfigurationDAOHibernate
public ApplicationSamlConfigurationDAOHibernate()
-
-
Method Details
-
loadForApplication
Description copied from interface:ApplicationSamlConfigurationDAO
Returns the SAML SSO configuration for the specified application- Specified by:
loadForApplication
in interfaceApplicationSamlConfigurationDAO
- Parameters:
application
- the application for which the configuration should be fetched- Returns:
- an optional containing the configuration if present or an empty one if not
-
findByAssertionConsumerAndAudience
public Optional<ApplicationSamlConfigurationEntity> findByAssertionConsumerAndAudience(String assertionConsumerUrl, String audience) Description copied from interface:ApplicationSamlConfigurationDAO
Returns the SAML SSO configuration for the specified assertion consumer url and audience. At least one of the parameters have to be specified to get non-empty result.- Specified by:
findByAssertionConsumerAndAudience
in interfaceApplicationSamlConfigurationDAO
- Parameters:
assertionConsumerUrl
- SSO application assertion consumer urlaudience
- SSO application audience- Returns:
- an optional with the corresponding configuration, if any. In case of unspecified parameters an empty Optional will be returned.
-
save
Description copied from interface:ApplicationSamlConfigurationDAO
Creates or updates SAML SSO configuration for an application- Specified by:
save
in interfaceApplicationSamlConfigurationDAO
- Parameters:
applicationSamlConfiguration
- the configuration to save or update
-
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<ApplicationSamlConfigurationEntity>
- Returns:
- the entity class for this DAO
-
findAll
Description copied from interface:ApplicationSamlConfigurationDAO
Returns list of all configurations.- Specified by:
findAll
in interfaceApplicationSamlConfigurationDAO
-