Class OfBizServiceAccountDao

java.lang.Object
com.atlassian.jira.crowd.embedded.ofbiz.OfBizServiceAccountDao
All Implemented Interfaces:
com.atlassian.crowd.dao.service.ServiceAccountManagerDAO

public class OfBizServiceAccountDao extends Object implements com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
  • Constructor Details

    • OfBizServiceAccountDao

      public OfBizServiceAccountDao(OfBizDelegator ofBizDelegator, org.ofbiz.core.entity.DelegatorInterface delegatorInterface)
  • Method Details

    • createServiceAccount

      public com.atlassian.crowd.model.service.InternalServiceAccount createServiceAccount(com.atlassian.crowd.model.service.InternalServiceAccount internalServiceAccount)
      Specified by:
      createServiceAccount in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • getServiceAccount

      public Optional<com.atlassian.crowd.model.service.InternalServiceAccount> getServiceAccount(Long id)
      Specified by:
      getServiceAccount in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • getServiceAccountByName

      public Optional<com.atlassian.crowd.model.service.InternalServiceAccount> getServiceAccountByName(String name)
      Specified by:
      getServiceAccountByName in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • updateServiceAccount

      public boolean updateServiceAccount(com.atlassian.crowd.model.service.InternalServiceAccount internalServiceAccount)
      Specified by:
      updateServiceAccount in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • deleteServiceAccount

      public boolean deleteServiceAccount(Long id)
      Specified by:
      deleteServiceAccount in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • findServiceAccounts

      public com.atlassian.crowd.embedded.api.Page<com.atlassian.crowd.model.service.InternalServiceAccount> findServiceAccounts(com.atlassian.crowd.embedded.api.service.ServiceAccountQuery serviceAccountQuery, com.atlassian.crowd.embedded.api.PageRequest pageRequest)
      Specified by:
      findServiceAccounts in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • findAuthMethods

      public List<com.atlassian.crowd.model.service.InternalServiceAccountAuthMethod> findAuthMethods(long serviceAccountId)
      Specified by:
      findAuthMethods in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • findServiceAccountByAuthMethod

      public Optional<com.atlassian.crowd.model.service.InternalServiceAccount> findServiceAccountByAuthMethod(String authId, String authType)
      Finds a service account by its authentication method. Returns empty if any of the arguments is null.
      Specified by:
      findServiceAccountByAuthMethod in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • deleteAuth

      public void deleteAuth(com.atlassian.crowd.embedded.api.service.ServiceAccount serviceAccount, String authId, String authType)
      Specified by:
      deleteAuth in interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
    • generateName

      public String generateName()