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

public class BOUserTypeDuplicate extends DynO
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:

  1. UI creates a BOUserTypeDuplicate with the new user type data and original ID
  2. UserTypeDuplicateEvent is launched with this object
  3. BTUserTypeDuplicate processes the request:
    • Creates the new user type
    • Copies permissions from the original user type
    • Copies authentication policy from the original user type
  4. Returns a new BOUserTypeDuplicate with 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:
  • Constructor Details

    • BOUserTypeDuplicate

      public BOUserTypeDuplicate()
  • Method Details

    • getBoUserType

      public BOUserType getBoUserType()
      Gets the user type object.
      Returns:
      the user type to be created (input) or the newly created user type (output)
    • setBoUserType

      public void setBoUserType(BOUserType boUserType)
      Sets the user type object.
      Parameters:
      boUserType - the user type to be created with the desired properties
    • getOriginalUserTypeId

      public Long 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

      public void setOriginalUserTypeId(Long originalUserTypeId)
      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