Package com.flowable.idm.engine.impl
Class UserAccountServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<CoreIdmEngineConfiguration>
-
- com.flowable.idm.engine.impl.UserAccountServiceImpl
-
- All Implemented Interfaces:
UserAccountService
public class UserAccountServiceImpl extends CommonEngineServiceImpl<CoreIdmEngineConfiguration> implements UserAccountService
- Author:
- Filip Hrisafov
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description UserAccountServiceImpl(CoreIdmEngineConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAccountBuildercreateNewUserAccountBuilder()UserAccountBuildercreateUpdateUserAccountBuilder(String accountId)UserAccountQuerycreateUserAccountQuery()voiddeleteUserAccount(String accountId)Delete the user account with the given id.UserAccountfindById(String userAccountId)List<UserAccount>findByIds(Collection<String> userAccountIds)voidsetStateAndSubState(String accountId, String state, String subState)Update the state and sub state of the user account.voidsetType(String accountId, String type, String subType)Update the type and sub type of the user account-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.flowable.core.idm.api.UserAccountService
setState, setSubState
-
-
-
-
Constructor Detail
-
UserAccountServiceImpl
public UserAccountServiceImpl(CoreIdmEngineConfiguration configuration)
-
-
Method Detail
-
createNewUserAccountBuilder
public UserAccountBuilder createNewUserAccountBuilder()
- Specified by:
createNewUserAccountBuilderin interfaceUserAccountService
-
createUpdateUserAccountBuilder
public UserAccountBuilder createUpdateUserAccountBuilder(String accountId)
- Specified by:
createUpdateUserAccountBuilderin interfaceUserAccountService
-
createUserAccountQuery
public UserAccountQuery createUserAccountQuery()
- Specified by:
createUserAccountQueryin interfaceUserAccountService
-
findById
public UserAccount findById(String userAccountId)
- Specified by:
findByIdin interfaceUserAccountService
-
findByIds
public List<UserAccount> findByIds(Collection<String> userAccountIds)
- Specified by:
findByIdsin interfaceUserAccountService
-
setStateAndSubState
public void setStateAndSubState(String accountId, String state, String subState)
Description copied from interface:UserAccountServiceUpdate the state and sub state of the user account. If the value for the state isnullthen the state of the user account won't be changed. If the value for the subState isnullthen the subState of the user account won't be changed. At least one of state and / or subState must be set- Specified by:
setStateAndSubStatein interfaceUserAccountService- Parameters:
accountId- the id of the account that should have it's state updatedstate- the optional new state of the account, ifnullit won't be changedsubState- the optional new sub state of the account, ifnullif won't be changed
-
setType
public void setType(String accountId, String type, String subType)
Description copied from interface:UserAccountServiceUpdate the type and sub type of the user account- Specified by:
setTypein interfaceUserAccountService- Parameters:
accountId- the of the account that should have it's type updatedtype- the new type of the accountsubType- the new sub type of the account
-
deleteUserAccount
public void deleteUserAccount(String accountId)
Description copied from interface:UserAccountServiceDelete the user account with the given id.- Specified by:
deleteUserAccountin interfaceUserAccountService- Parameters:
accountId- the id of the account
-
-