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 UserAccountBuilder
createNewUserAccountBuilder()
UserAccountBuilder
createUpdateUserAccountBuilder(String accountId)
UserAccountQuery
createUserAccountQuery()
void
deleteUserAccount(String accountId)
Delete the user account with the given id.UserAccount
findById(String userAccountId)
void
setStateAndSubState(String accountId, String state, String subState)
Update the state and sub state of the user account.void
setType(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:
createNewUserAccountBuilder
in interfaceUserAccountService
-
createUpdateUserAccountBuilder
public UserAccountBuilder createUpdateUserAccountBuilder(String accountId)
- Specified by:
createUpdateUserAccountBuilder
in interfaceUserAccountService
-
createUserAccountQuery
public UserAccountQuery createUserAccountQuery()
- Specified by:
createUserAccountQuery
in interfaceUserAccountService
-
findById
public UserAccount findById(String userAccountId)
- Specified by:
findById
in interfaceUserAccountService
-
setStateAndSubState
public void setStateAndSubState(String accountId, String state, String subState)
Description copied from interface:UserAccountService
Update the state and sub state of the user account. If the value for the state isnull
then the state of the user account won't be changed. If the value for the subState isnull
then the subState of the user account won't be changed. At least one of state and / or subState must be set- Specified by:
setStateAndSubState
in interfaceUserAccountService
- Parameters:
accountId
- the id of the account that should have it's state updatedstate
- the optional new state of the account, ifnull
it won't be changedsubState
- the optional new sub state of the account, ifnull
if won't be changed
-
setType
public void setType(String accountId, String type, String subType)
Description copied from interface:UserAccountService
Update the type and sub type of the user account- Specified by:
setType
in 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:UserAccountService
Delete the user account with the given id.- Specified by:
deleteUserAccount
in interfaceUserAccountService
- Parameters:
accountId
- the id of the account
-
-