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 Summary
ConstructorsConstructorDescriptionOfBizServiceAccountDao(OfBizDelegator ofBizDelegator, org.ofbiz.core.entity.DelegatorInterface delegatorInterface) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.crowd.model.service.InternalServiceAccountcreateServiceAccount(com.atlassian.crowd.model.service.InternalServiceAccount internalServiceAccount) voiddeleteAuth(com.atlassian.crowd.embedded.api.service.ServiceAccount serviceAccount, String authId, String authType) booleanList<com.atlassian.crowd.model.service.InternalServiceAccountAuthMethod> findAuthMethods(long serviceAccountId) Optional<com.atlassian.crowd.model.service.InternalServiceAccount> findServiceAccountByAuthMethod(String authId, String authType) Finds a service account by its authentication method.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) Optional<com.atlassian.crowd.model.service.InternalServiceAccount> Optional<com.atlassian.crowd.model.service.InternalServiceAccount> booleanupdateServiceAccount(com.atlassian.crowd.model.service.InternalServiceAccount internalServiceAccount) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.crowd.dao.service.ServiceAccountManagerDAO
findServiceAccountsByAuthMethods
-
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:
createServiceAccountin interfacecom.atlassian.crowd.dao.service.ServiceAccountManagerDAO
-
getServiceAccount
public Optional<com.atlassian.crowd.model.service.InternalServiceAccount> getServiceAccount(Long id) - Specified by:
getServiceAccountin interfacecom.atlassian.crowd.dao.service.ServiceAccountManagerDAO
-
getServiceAccountByName
public Optional<com.atlassian.crowd.model.service.InternalServiceAccount> getServiceAccountByName(String name) - Specified by:
getServiceAccountByNamein interfacecom.atlassian.crowd.dao.service.ServiceAccountManagerDAO
-
updateServiceAccount
public boolean updateServiceAccount(com.atlassian.crowd.model.service.InternalServiceAccount internalServiceAccount) - Specified by:
updateServiceAccountin interfacecom.atlassian.crowd.dao.service.ServiceAccountManagerDAO
-
deleteServiceAccount
- Specified by:
deleteServiceAccountin interfacecom.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:
findServiceAccountsin interfacecom.atlassian.crowd.dao.service.ServiceAccountManagerDAO
-
findAuthMethods
public List<com.atlassian.crowd.model.service.InternalServiceAccountAuthMethod> findAuthMethods(long serviceAccountId) - Specified by:
findAuthMethodsin interfacecom.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:
findServiceAccountByAuthMethodin interfacecom.atlassian.crowd.dao.service.ServiceAccountManagerDAO
-
deleteAuth
public void deleteAuth(com.atlassian.crowd.embedded.api.service.ServiceAccount serviceAccount, String authId, String authType) - Specified by:
deleteAuthin interfacecom.atlassian.crowd.dao.service.ServiceAccountManagerDAO
-
generateName
-