Class UserSaveRequest
- java.lang.Object
-
- com.carfey.ops.api.bean.user.AbstractUserCreationRequest<UserSaveRequest>
-
- com.carfey.ops.api.bean.system.restore.UserSaveRequest
-
public class UserSaveRequest extends AbstractUserCreationRequest<UserSaveRequest>
Used to create or update a user on aSystemRestoreConfigurationviaSystemRestoreManager.- Since:
- 3.0
- See Also:
UserCreationRequest
-
-
Field Summary
-
Fields inherited from class com.carfey.ops.api.bean.user.AbstractUserCreationRequest
active, password, roles, userName
-
-
Constructor Summary
Constructors Constructor Description UserSaveRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisUpdate()This determines whether to update an existing user with the attributes provided.voidsetUpdate(boolean update)java.lang.StringtoString()UserSaveRequestwithUpdate(boolean update)-
Methods inherited from class com.carfey.ops.api.bean.user.AbstractUserCreationRequest
getPassword, getRoles, getUserName, isActive, setActive, setPassword, setRoles, setUserName, withActive, withPassword, withRoles, withUserName
-
-
-
-
Method Detail
-
isUpdate
public boolean isUpdate()
This determines whether to update an existing user with the attributes provided. If the user exists and this flag is false, the user is not updated. If the user doesn't exist, this flag is ignored and the user is created.- Returns:
- update
-
setUpdate
public void setUpdate(boolean update)
-
withUpdate
public UserSaveRequest withUpdate(boolean update)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractUserCreationRequest<UserSaveRequest>
-
-