public class InvalidUserStatusTransitionException extends GeneralUserManagementException
Thrown to indicate that changing the status of a user to another status is not possible because the transition is not supported.
Constructor and Description |
---|
InvalidUserStatusTransitionException(UserStatus currentStatus,
UserStatus failedNewStatus,
User user)
Constructs a new instance of InvalidUserStatusTransitionException
|
Modifier and Type | Method and Description |
---|---|
UserStatus |
getCurrentStatus()
the current status of the user
|
UserStatus |
getFailedNewStatus()
the new status that should have been set, but could not be set.
|
User |
getUser()
the user whose status should have been changed
|
void |
setCurrentStatus(UserStatus currentStatus) |
void |
setFailedNewStatus(UserStatus failedNewStatus) |
void |
setUser(User user) |
getArguments, getLocalizedMessage, getMessageKey
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidUserStatusTransitionException(UserStatus currentStatus, UserStatus failedNewStatus, User user)
public UserStatus getCurrentStatus()
the current status of the user
public UserStatus getFailedNewStatus()
the new status that should have been set, but could not be set.
public User getUser()
the user whose status should have been changed
public void setCurrentStatus(UserStatus currentStatus)
public void setFailedNewStatus(UserStatus failedNewStatus)
public void setUser(User user)
Copyright © 2019 Communote team. All rights reserved.