Package com.flowable.core.idm.api
Interface UserAccountService
-
- All Known Implementing Classes:
UserAccountServiceImpl
public interface UserAccountService
- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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)
default void
setState(String accountId, String state)
Set the state of this user account.void
setStateAndSubState(String accountId, String state, String subState)
Update the state and sub state of the user account.default void
setSubState(String accountId, String subState)
Set the sub state of this user account.void
setType(String accountId, String type, String subType)
Update the type and sub type of the user account
-
-
-
Method Detail
-
createNewUserAccountBuilder
UserAccountBuilder createNewUserAccountBuilder()
-
createUpdateUserAccountBuilder
UserAccountBuilder createUpdateUserAccountBuilder(String accountId)
-
createUserAccountQuery
UserAccountQuery createUserAccountQuery()
-
findById
UserAccount findById(String userAccountId)
-
setStateAndSubState
void setStateAndSubState(String accountId, String state, String subState)
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- 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
-
setState
default void setState(String accountId, String state)
Set the state of this user account. By default this method delegates tosetStateAndSubState(String, String, String)
with subStatenull
- Parameters:
accountId
- the id of the account to change its statestate
- the new state to be set on this user object- See Also:
for more information
-
setSubState
default void setSubState(String accountId, String subState)
Set the sub state of this user account. The sub state might be used to more specifically describe the current state of the user account. By default this method delegates tosetStateAndSubState(String, String, String)
with statenull
- Parameters:
accountId
- the id of the account to change its substatesubState
- the new sub state to be set on this user object- See Also:
for more information
-
setType
void setType(String accountId, String type, String subType)
Update the type and sub type of the user account- 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
void deleteUserAccount(String accountId)
Delete the user account with the given id.- Parameters:
accountId
- the id of the account
-
-