Class ConfluenceServiceAccountDao

java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<com.atlassian.crowd.model.service.InternalServiceAccount>
com.atlassian.crowd.dao.service.ServiceAccountManagerDAOHibernate
com.atlassian.confluence.impl.user.crowd.serviceaccount.ConfluenceServiceAccountDao
All Implemented Interfaces:
com.atlassian.crowd.dao.service.ServiceAccountManagerDAO

@Transactional public class ConfluenceServiceAccountDao extends com.atlassian.crowd.dao.service.ServiceAccountManagerDAOHibernate
  • 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

    Constructors
    Constructor
    Description
    ConfluenceServiceAccountDao(org.hibernate.SessionFactory sessionFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteAuth(com.atlassian.crowd.embedded.api.service.ServiceAccount serviceAccount, String authId, String authType)
    Override here as the platform's implementation has an issue with executing the statement due to transaction boundaries.
    boolean
    updateServiceAccount(com.atlassian.crowd.model.service.InternalServiceAccount serviceAccountUpdate)
    Override here as the platform's implementation has an issue with saving the auth method.

    Methods inherited from class com.atlassian.crowd.dao.service.ServiceAccountManagerDAOHibernate

    createServiceAccount, deleteServiceAccount, findAuthMethods, findServiceAccountByAuthMethod, findServiceAccounts, findServiceAccountsByAuthMethods, getPersistentClass, getServiceAccount, getServiceAccountByName

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfluenceServiceAccountDao

      public ConfluenceServiceAccountDao(org.hibernate.SessionFactory sessionFactory)
  • Method Details

    • updateServiceAccount

      public boolean updateServiceAccount(com.atlassian.crowd.model.service.InternalServiceAccount serviceAccountUpdate)
      Override here as the platform's implementation has an issue with saving the auth method. See CONFSRVDEV-43569 for details.
      Specified by:
      updateServiceAccount in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
      Overrides:
      updateServiceAccount in class com.atlassian.crowd.dao.service.ServiceAccountManagerDAOHibernate
    • deleteAuth

      public void deleteAuth(com.atlassian.crowd.embedded.api.service.ServiceAccount serviceAccount, String authId, String authType)
      Override here as the platform's implementation has an issue with executing the statement due to transaction boundaries.
      Specified by:
      deleteAuth in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
      Overrides:
      deleteAuth in class com.atlassian.crowd.dao.service.ServiceAccountManagerDAOHibernate