Package callofproject.dev.project.dto
Record Class ProjectAdminUpdateDTO
java.lang.Object
java.lang.Record
callofproject.dev.project.dto.ProjectAdminUpdateDTO
public record ProjectAdminUpdateDTO(@NotNull(message="user id cannot be empty") UUID userId, @NotNull(message="project id cannot be empty") UUID projectId, String projectImage, @NotBlank(message="project name cannot be empty") @NotEmpty(message="project name cannot be empty") String projectName, @NotBlank(message="project summary cannot be empty") @NotEmpty(message="project summary cannot be empty") String projectSummary, @NotBlank(message="project description cannot be empty") @NotEmpty(message="project description cannot be empty") String projectDescription, @NotBlank(message="project aim cannot be empty") @NotEmpty(message="project aim cannot be empty") String projectAim, @NotNull(message="project deadline cannot be empty") LocalDate applicationDeadline, @NotNull(message="expected completion date cannot be empty") LocalDate expectedCompletionDate, @jakarta.validation.constraints.NotNull,@jakarta.validation.constraints.Min(value=2L, message="max participant count cannot be less than 2"),@jakarta.validation.constraints.Max(value=20L, message="max participant count cannot be more than 100") int maxParticipantCount, @NotBlank(message="technical requirements cannot be empty") @NotEmpty(message="technical requirements cannot be empty") String technicalRequirements, @NotBlank(message="special requirements cannot be empty") @NotEmpty(message="special requirements cannot be empty") String specialRequirements, @NotNull(message="project access type cannot be empty") callofproject.dev.data.project.entity.enums.EProjectAccessType projectAccessType, @NotNull(message="project profession level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectProfessionLevel professionLevel, @NotNull(message="project sector cannot be empty") callofproject.dev.data.project.entity.enums.ESector sector, @NotNull(message="project degree cannot be empty") callofproject.dev.data.project.entity.enums.EDegree degree, @NotNull(message="project level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectLevel projectLevel, String adminNote, @NotNull(message="project interview type cannot be empty") callofproject.dev.data.project.entity.enums.EInterviewType interviewType, @NotNull(message="feedback time range cannot be empty") callofproject.dev.data.project.entity.enums.EFeedbackTimeRange feedbackTimeRange, @NotNull(message="start date cannot be empty") LocalDate startDate, List<String> tags)
extends Record
ProjectAdminUpdateDTO
-
Constructor Summary
ConstructorsConstructorDescriptionProjectAdminUpdateDTO
(@NotNull(message="user id cannot be empty") UUID userId, @NotNull(message="project id cannot be empty") UUID projectId, String projectImage, @NotBlank(message="project name cannot be empty") @NotEmpty(message="project name cannot be empty") String projectName, @NotBlank(message="project summary cannot be empty") @NotEmpty(message="project summary cannot be empty") String projectSummary, @NotBlank(message="project description cannot be empty") @NotEmpty(message="project description cannot be empty") String projectDescription, @NotBlank(message="project aim cannot be empty") @NotEmpty(message="project aim cannot be empty") String projectAim, @NotNull(message="project deadline cannot be empty") LocalDate applicationDeadline, @NotNull(message="expected completion date cannot be empty") LocalDate expectedCompletionDate, @jakarta.validation.constraints.NotNull,@jakarta.validation.constraints.Min(value=2L, message="max participant count cannot be less than 2"),@jakarta.validation.constraints.Max(value=20L, message="max participant count cannot be more than 100") int maxParticipantCount, @NotBlank(message="technical requirements cannot be empty") @NotEmpty(message="technical requirements cannot be empty") String technicalRequirements, @NotBlank(message="special requirements cannot be empty") @NotEmpty(message="special requirements cannot be empty") String specialRequirements, @NotNull(message="project access type cannot be empty") callofproject.dev.data.project.entity.enums.EProjectAccessType projectAccessType, @NotNull(message="project profession level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectProfessionLevel professionLevel, @NotNull(message="project sector cannot be empty") callofproject.dev.data.project.entity.enums.ESector sector, @NotNull(message="project degree cannot be empty") callofproject.dev.data.project.entity.enums.EDegree degree, @NotNull(message="project level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectLevel projectLevel, String adminNote, @NotNull(message="project interview type cannot be empty") callofproject.dev.data.project.entity.enums.EInterviewType interviewType, @NotNull(message="feedback time range cannot be empty") callofproject.dev.data.project.entity.enums.EFeedbackTimeRange feedbackTimeRange, @NotNull(message="start date cannot be empty") LocalDate startDate, List<String> tags) Creates an instance of aProjectAdminUpdateDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadminNote
record component.@NotNull(message="project deadline cannot be empty") LocalDate
Returns the value of theapplicationDeadline
record component.@NotNull(message="project degree cannot be empty") callofproject.dev.data.project.entity.enums.EDegree
degree()
Returns the value of thedegree
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull(message="expected completion date cannot be empty") LocalDate
Returns the value of theexpectedCompletionDate
record component.@NotNull(message="feedback time range cannot be empty") callofproject.dev.data.project.entity.enums.EFeedbackTimeRange
Returns the value of thefeedbackTimeRange
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull(message="project interview type cannot be empty") callofproject.dev.data.project.entity.enums.EInterviewType
Returns the value of theinterviewType
record component.@jakarta.validation.constraints.NotNull,@jakarta.validation.constraints.Min(value=2L, message="max participant count cannot be less than 2"),@jakarta.validation.constraints.Max(value=20L, message="max participant count cannot be more than 100") int
Returns the value of themaxParticipantCount
record component.@NotNull(message="project profession level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectProfessionLevel
Returns the value of theprofessionLevel
record component.@NotNull(message="project access type cannot be empty") callofproject.dev.data.project.entity.enums.EProjectAccessType
Returns the value of theprojectAccessType
record component.@NotBlank(message="project aim cannot be empty") @NotEmpty(message="project aim cannot be empty") String
Returns the value of theprojectAim
record component.@NotBlank(message="project description cannot be empty") @NotEmpty(message="project description cannot be empty") String
Returns the value of theprojectDescription
record component.@NotNull(message="project id cannot be empty") UUID
Returns the value of theprojectId
record component.Returns the value of theprojectImage
record component.@NotNull(message="project level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectLevel
Returns the value of theprojectLevel
record component.@NotBlank(message="project name cannot be empty") @NotEmpty(message="project name cannot be empty") String
Returns the value of theprojectName
record component.@NotBlank(message="project summary cannot be empty") @NotEmpty(message="project summary cannot be empty") String
Returns the value of theprojectSummary
record component.@NotNull(message="project sector cannot be empty") callofproject.dev.data.project.entity.enums.ESector
sector()
Returns the value of thesector
record component.@NotBlank(message="special requirements cannot be empty") @NotEmpty(message="special requirements cannot be empty") String
Returns the value of thespecialRequirements
record component.@NotNull(message="start date cannot be empty") LocalDate
Returns the value of thestartDate
record component.tags()
Returns the value of thetags
record component.@NotBlank(message="technical requirements cannot be empty") @NotEmpty(message="technical requirements cannot be empty") String
Returns the value of thetechnicalRequirements
record component.final String
toString()
Returns a string representation of this record class.@NotNull(message="user id cannot be empty") UUID
userId()
Returns the value of theuserId
record component.
-
Constructor Details
-
ProjectAdminUpdateDTO
public ProjectAdminUpdateDTO(@NotNull(message="user id cannot be empty") @NotNull(message="user id cannot be empty") UUID userId, @NotNull(message="project id cannot be empty") @NotNull(message="project id cannot be empty") UUID projectId, String projectImage, @NotBlank(message="project name cannot be empty") @NotEmpty(message="project name cannot be empty") @NotBlank(message="project name cannot be empty") @NotEmpty(message="project name cannot be empty") String projectName, @NotBlank(message="project summary cannot be empty") @NotEmpty(message="project summary cannot be empty") @NotBlank(message="project summary cannot be empty") @NotEmpty(message="project summary cannot be empty") String projectSummary, @NotBlank(message="project description cannot be empty") @NotEmpty(message="project description cannot be empty") @NotBlank(message="project description cannot be empty") @NotEmpty(message="project description cannot be empty") String projectDescription, @NotBlank(message="project aim cannot be empty") @NotEmpty(message="project aim cannot be empty") @NotBlank(message="project aim cannot be empty") @NotEmpty(message="project aim cannot be empty") String projectAim, @NotNull(message="project deadline cannot be empty") @NotNull(message="project deadline cannot be empty") LocalDate applicationDeadline, @NotNull(message="expected completion date cannot be empty") @NotNull(message="expected completion date cannot be empty") LocalDate expectedCompletionDate, @NotNull @Min(value=2L,message="max participant count cannot be less than 2") @Max(value=20L,message="max participant count cannot be more than 100") @jakarta.validation.constraints.NotNull,@jakarta.validation.constraints.Min(value=2L, message="max participant count cannot be less than 2"),@jakarta.validation.constraints.Max(value=20L, message="max participant count cannot be more than 100") int maxParticipantCount, @NotBlank(message="technical requirements cannot be empty") @NotEmpty(message="technical requirements cannot be empty") @NotBlank(message="technical requirements cannot be empty") @NotEmpty(message="technical requirements cannot be empty") String technicalRequirements, @NotBlank(message="special requirements cannot be empty") @NotEmpty(message="special requirements cannot be empty") @NotBlank(message="special requirements cannot be empty") @NotEmpty(message="special requirements cannot be empty") String specialRequirements, @NotNull(message="project access type cannot be empty") @NotNull(message="project access type cannot be empty") callofproject.dev.data.project.entity.enums.EProjectAccessType projectAccessType, @NotNull(message="project profession level cannot be empty") @NotNull(message="project profession level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectProfessionLevel professionLevel, @NotNull(message="project sector cannot be empty") @NotNull(message="project sector cannot be empty") callofproject.dev.data.project.entity.enums.ESector sector, @NotNull(message="project degree cannot be empty") @NotNull(message="project degree cannot be empty") callofproject.dev.data.project.entity.enums.EDegree degree, @NotNull(message="project level cannot be empty") @NotNull(message="project level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectLevel projectLevel, String adminNote, @NotNull(message="project interview type cannot be empty") @NotNull(message="project interview type cannot be empty") callofproject.dev.data.project.entity.enums.EInterviewType interviewType, @NotNull(message="feedback time range cannot be empty") @NotNull(message="feedback time range cannot be empty") callofproject.dev.data.project.entity.enums.EFeedbackTimeRange feedbackTimeRange, @NotNull(message="start date cannot be empty") @NotNull(message="start date cannot be empty") LocalDate startDate, List<String> tags) Creates an instance of aProjectAdminUpdateDTO
record class.- Parameters:
userId
- the value for theuserId
record componentprojectId
- the value for theprojectId
record componentprojectImage
- the value for theprojectImage
record componentprojectName
- the value for theprojectName
record componentprojectSummary
- the value for theprojectSummary
record componentprojectDescription
- the value for theprojectDescription
record componentprojectAim
- the value for theprojectAim
record componentapplicationDeadline
- the value for theapplicationDeadline
record componentexpectedCompletionDate
- the value for theexpectedCompletionDate
record componentmaxParticipantCount
- the value for themaxParticipantCount
record componenttechnicalRequirements
- the value for thetechnicalRequirements
record componentspecialRequirements
- the value for thespecialRequirements
record componentprojectAccessType
- the value for theprojectAccessType
record componentprofessionLevel
- the value for theprofessionLevel
record componentsector
- the value for thesector
record componentdegree
- the value for thedegree
record componentprojectLevel
- the value for theprojectLevel
record componentadminNote
- the value for theadminNote
record componentinterviewType
- the value for theinterviewType
record componentfeedbackTimeRange
- the value for thefeedbackTimeRange
record componentstartDate
- the value for thestartDate
record componenttags
- the value for thetags
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
userId
@NotNull(message="user id cannot be empty") public @NotNull(message="user id cannot be empty") UUID userId()Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-
projectId
@NotNull(message="project id cannot be empty") public @NotNull(message="project id cannot be empty") UUID projectId()Returns the value of theprojectId
record component.- Returns:
- the value of the
projectId
record component
-
projectImage
Returns the value of theprojectImage
record component.- Returns:
- the value of the
projectImage
record component
-
projectName
@NotBlank(message="project name cannot be empty") @NotEmpty(message="project name cannot be empty") public @NotBlank(message="project name cannot be empty") @NotEmpty(message="project name cannot be empty") String projectName()Returns the value of theprojectName
record component.- Returns:
- the value of the
projectName
record component
-
projectSummary
@NotBlank(message="project summary cannot be empty") @NotEmpty(message="project summary cannot be empty") public @NotBlank(message="project summary cannot be empty") @NotEmpty(message="project summary cannot be empty") String projectSummary()Returns the value of theprojectSummary
record component.- Returns:
- the value of the
projectSummary
record component
-
projectDescription
@NotBlank(message="project description cannot be empty") @NotEmpty(message="project description cannot be empty") public @NotBlank(message="project description cannot be empty") @NotEmpty(message="project description cannot be empty") String projectDescription()Returns the value of theprojectDescription
record component.- Returns:
- the value of the
projectDescription
record component
-
projectAim
@NotBlank(message="project aim cannot be empty") @NotEmpty(message="project aim cannot be empty") public @NotBlank(message="project aim cannot be empty") @NotEmpty(message="project aim cannot be empty") String projectAim()Returns the value of theprojectAim
record component.- Returns:
- the value of the
projectAim
record component
-
applicationDeadline
@NotNull(message="project deadline cannot be empty") public @NotNull(message="project deadline cannot be empty") LocalDate applicationDeadline()Returns the value of theapplicationDeadline
record component.- Returns:
- the value of the
applicationDeadline
record component
-
expectedCompletionDate
@NotNull(message="expected completion date cannot be empty") public @NotNull(message="expected completion date cannot be empty") LocalDate expectedCompletionDate()Returns the value of theexpectedCompletionDate
record component.- Returns:
- the value of the
expectedCompletionDate
record component
-
maxParticipantCount
@NotNull @Min(value=2L, message="max participant count cannot be less than 2") @Max(value=20L, message="max participant count cannot be more than 100") public @jakarta.validation.constraints.NotNull,@jakarta.validation.constraints.Min(value=2L, message="max participant count cannot be less than 2"),@jakarta.validation.constraints.Max(value=20L, message="max participant count cannot be more than 100") int maxParticipantCount()Returns the value of themaxParticipantCount
record component.- Returns:
- the value of the
maxParticipantCount
record component
-
technicalRequirements
@NotBlank(message="technical requirements cannot be empty") @NotEmpty(message="technical requirements cannot be empty") public @NotBlank(message="technical requirements cannot be empty") @NotEmpty(message="technical requirements cannot be empty") String technicalRequirements()Returns the value of thetechnicalRequirements
record component.- Returns:
- the value of the
technicalRequirements
record component
-
specialRequirements
@NotBlank(message="special requirements cannot be empty") @NotEmpty(message="special requirements cannot be empty") public @NotBlank(message="special requirements cannot be empty") @NotEmpty(message="special requirements cannot be empty") String specialRequirements()Returns the value of thespecialRequirements
record component.- Returns:
- the value of the
specialRequirements
record component
-
projectAccessType
@NotNull(message="project access type cannot be empty") public @NotNull(message="project access type cannot be empty") callofproject.dev.data.project.entity.enums.EProjectAccessType projectAccessType()Returns the value of theprojectAccessType
record component.- Returns:
- the value of the
projectAccessType
record component
-
professionLevel
@NotNull(message="project profession level cannot be empty") public @NotNull(message="project profession level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectProfessionLevel professionLevel()Returns the value of theprofessionLevel
record component.- Returns:
- the value of the
professionLevel
record component
-
sector
@NotNull(message="project sector cannot be empty") public @NotNull(message="project sector cannot be empty") callofproject.dev.data.project.entity.enums.ESector sector()Returns the value of thesector
record component.- Returns:
- the value of the
sector
record component
-
degree
@NotNull(message="project degree cannot be empty") public @NotNull(message="project degree cannot be empty") callofproject.dev.data.project.entity.enums.EDegree degree()Returns the value of thedegree
record component.- Returns:
- the value of the
degree
record component
-
projectLevel
@NotNull(message="project level cannot be empty") public @NotNull(message="project level cannot be empty") callofproject.dev.data.project.entity.enums.EProjectLevel projectLevel()Returns the value of theprojectLevel
record component.- Returns:
- the value of the
projectLevel
record component
-
adminNote
Returns the value of theadminNote
record component.- Returns:
- the value of the
adminNote
record component
-
interviewType
@NotNull(message="project interview type cannot be empty") public @NotNull(message="project interview type cannot be empty") callofproject.dev.data.project.entity.enums.EInterviewType interviewType()Returns the value of theinterviewType
record component.- Returns:
- the value of the
interviewType
record component
-
feedbackTimeRange
@NotNull(message="feedback time range cannot be empty") public @NotNull(message="feedback time range cannot be empty") callofproject.dev.data.project.entity.enums.EFeedbackTimeRange feedbackTimeRange()Returns the value of thefeedbackTimeRange
record component.- Returns:
- the value of the
feedbackTimeRange
record component
-
startDate
@NotNull(message="start date cannot be empty") public @NotNull(message="start date cannot be empty") LocalDate startDate()Returns the value of thestartDate
record component.- Returns:
- the value of the
startDate
record component
-
tags
Returns the value of thetags
record component.- Returns:
- the value of the
tags
record component
-