Package overit.geocall.basic.bl.usertype
Class BOUserTypeDuplicate
java.lang.Object
overit.geocall.model.DynO
overit.geocall.basic.bl.usertype.BOUserTypeDuplicate
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
Business object representing a user type duplication request and result.
This class serves as a data transfer object (DTO) for the user type duplication functionality. It encapsulates both the input and output data for the duplication process:
- Input: The new user type properties (code, description, etc.) and the ID of the original user type to copy permissions and policies from
- Output: The newly created user type (with generated ID) and the original user type ID for reference
Duplication Workflow:
- UI creates a
BOUserTypeDuplicatewith the new user type data and original ID UserTypeDuplicateEventis launched with this objectBTUserTypeDuplicateprocesses the request:- Creates the new user type
- Copies permissions from the original user type
- Copies authentication policy from the original user type
- Returns a new
BOUserTypeDuplicatewith the created user type and original ID
JSON Serialization: This class is serialized to/from JSON with the following structure:
{
"userType": {
"code": "NEW_ADMIN",
"description": { "en": "New Administrator" },
"isActive": true,
...
},
"originalUserTypeId": 123
}
- Since:
- 12.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the user type object.Gets the ID of the original user type to copy from.voidsetBoUserType(BOUserType boUserType) Sets the user type object.voidsetOriginalUserTypeId(Long originalUserTypeId) Sets the ID of the original user type to copy from.Methods inherited from class overit.geocall.model.DynO
addExtension, extract, extract, fields, from, from, getCriteria, getCriteriaNotExploded, getExtension, getFakeFilter, getUnknownAttributes, getUnknownCriteria, getVariant, getZone, insert, insert, isValid, make, removeCriteria, removeExtensionAttribute, setCriteria, setCriteriaNotExploded, setExtension, setFakeFilter, setUnknownAttributes, setUnknownCriteria, setVariant, setZone, toFlatMap, toFlatMap, toMap, toMap, toString, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initializeMethods inherited from interface overit.geocall.timezone.model.TimeZoned
hasZone
-
Constructor Details
-
BOUserTypeDuplicate
public BOUserTypeDuplicate()
-
-
Method Details
-
getBoUserType
Gets the user type object.- Returns:
- the user type to be created (input) or the newly created user type (output)
-
setBoUserType
Sets the user type object.- Parameters:
boUserType- the user type to be created with the desired properties
-
getOriginalUserTypeId
Gets the ID of the original user type to copy from.- Returns:
- the ID of the user type to copy permissions and authentication policies from
-
setOriginalUserTypeId
Sets the ID of the original user type to copy from.- Parameters:
originalUserTypeId- the ID of the user type to copy permissions and authentication policies from
-