Class PermissionMapperImpl

java.lang.Object
com.alpaca.mapper.impl.PermissionMapperImpl
All Implemented Interfaces:
GenericMapper<Permission,PermissionResponseDTO,PermissionRequestDTO>, IPermissionMapper

@Component public class PermissionMapperImpl extends Object implements IPermissionMapper
Implementation of IPermissionMapper focused on converting between Permission entities and their associated request and response DTOs.

Responsibilities include:

  • Mapping a single Permission entity to a PermissionResponseDTO.
  • Converting a PermissionRequestDTO into a Permission entity.
  • Handling collections of Permission entities to produce lists of PermissionResponseDTOs.
  • Gracefully handling null or empty inputs by returning null or empty collections as appropriate.

This class is annotated with Component to enable Spring's dependency injection and uses Lombok's RequiredArgsConstructor for constructor-based injection (if required in future).

See Also: