Class UserInformationService

java.lang.Object
callofproject.dev.authentication.service.UserInformationService

@Service @Lazy public class UserInformationService extends Object
Service class for managing user information, including education, experience, courses, links, and more.
  • Constructor Details

    • UserInformationService

      public UserInformationService(callofproject.dev.repository.authentication.dal.UserManagementServiceHelper serviceHelper, callofproject.dev.nosql.dal.MatchServiceHelper matchServiceHelper, IEnvironmentClientService environmentClient, MapperConfiguration mapperConfig)
      Constructs a new UserInformationService with the given dependencies.
      Parameters:
      serviceHelper - The UserManagementServiceHelper to be used by this service.
      matchServiceHelper - The MatchServiceHelper to be used by this service.
      environmentClient - The IEnvironmentClientService to interact with the environment.
      mapperConfig - The MapperConfiguration for mapping DTOs to entities.
  • Method Details

    • upsertEducation

      public callofproject.dev.data.common.clas.ResponseMessage<Object> upsertEducation(EducationUpsertDTO dto)
      Upsert education with given dto class.
      Parameters:
      dto - represent the dto class
      Returns:
      MessageResponseDTO.
    • upsertExperience

      public callofproject.dev.data.common.clas.ResponseMessage<Object> upsertExperience(ExperienceUpsertDTO dto)
      Upsert experience with given dto class.
      Parameters:
      dto - represent the dto class
      Returns:
      MessageResponseDTO.
    • upsertCourse

      public callofproject.dev.data.common.clas.ResponseMessage<Object> upsertCourse(CourseUpsertDTO dto)
      Upsert course with given dto class.
      Parameters:
      dto - represent the dto class
      Returns:
      MessageResponseDTO.
    • upsertLink

      public callofproject.dev.data.common.clas.ResponseMessage<Object> upsertLink(LinkUpsertDTO dto)
      Upsert link with given dto class.
      Parameters:
      dto - represent the dto class
      Returns:
      MessageResponseDTO.
    • removeEducation

      public callofproject.dev.data.common.clas.ResponseMessage<Object> removeEducation(UUID userId, UUID id)
      Remove education with given id.
      Parameters:
      userId - represent the user id.
      id - represent the education id.
      Returns:
      MessageResponseDTO.
    • removeCourse

      public callofproject.dev.data.common.clas.ResponseMessage<Object> removeCourse(UUID userId, UUID id)
      Remove course with given id.
      Parameters:
      userId - represent the user id.
      id - represent the course id.
      Returns:
      MessageResponseDTO.
    • removeExperience

      public callofproject.dev.data.common.clas.ResponseMessage<Object> removeExperience(UUID userId, UUID id)
      Remove experience with given id.
      Parameters:
      userId - represent the user id.
      id - represent the experience id.
      Returns:
      MessageResponseDTO.
    • removeLink

      public callofproject.dev.data.common.clas.ResponseMessage<Object> removeLink(UUID userId, long id)
      Remove link with given id.
      Parameters:
      userId - represent the user id.
      id - represent the link id.
      Returns:
      MessageResponseDTO.
    • removeCourseOrganization

      public callofproject.dev.data.common.clas.ResponseMessage<Object> removeCourseOrganization(UUID userId, UUID id)
      Remove course organization with given id.
      Parameters:
      userId - represent the user id.
      id - represent the course organization id.
      Returns:
      MessageResponseDTO.