Commit 3392c4bd authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge branch 'develop' into 'master'

Release: merge 'develop' into 'master' created by Enriko Käsper

See merge request teis/common-api-gateway!120
parents 929e6502 2334bab6
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AssessedBusinessTypePublicDto {
@NotNull
private UUID businessTypeId;
@NotNull
private boolean primary;
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BusinessTypePublicDto {
private UUID id;
private String name;
private ClassifierItemLightDto category;
private String description;
private ClassifierItemLightDto status;
private ObjectStatus objectStatus;
private List<RelatedBusinessTypePublicDto> relatedBusinessTypes;
private List<BusinessTypeRiskFactorPublicDto> businessTypeRiskFactors;
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BusinessTypePublicLightDto {
private UUID id;
private String name;
private ClassifierItemLightDto category;
private String description;
private ClassifierItemLightDto status;
private ObjectStatus objectStatus;
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto;
import ee.sm.ti.teis.commongateway.riskassessment.riskfactor.dto.RiskFactorPublicDto;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BusinessTypeRiskFactorPublicDto {
private UUID id;
private UUID businessTypeId;
private RiskFactorPublicDto riskFactor;
private ObjectStatus objectStatus;
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RelatedBusinessTypeDto {
private UUID id;
private UUID primaryBusinessTypeId;
private UUID secondaryBusinessTypeId;
private BusinessTypePublicDto businessType;
private ObjectStatus objectStatus;
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RelatedBusinessTypePublicDto {
private UUID id;
private BusinessTypePublicDto primaryBusinessType;
private BusinessTypePublicDto secondaryBusinessType;
private ObjectStatus objectStatus;
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RiskFactorDto {
private UUID id;
private String name;
private String occurrence;
private String impact;
private Boolean general;
private ClassifierItemLightDto category;
private Long seqNo;
private ClassifierItemLightDto status;
private ObjectStatus objectStatus;
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.request;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
import static ee.sm.ti.teis.commongateway.riskassessment.businesstype.request.BusinessTypePublicRequest.Parameters;
public class BusinessTypePublicRequest extends AbstractDTO<Parameters, ErrorDTO> {
public static final String ROUTING_KEY = "api.BusinessTypePublicRequest";
@Override
public String routingKey() {
return ROUTING_KEY;
}
@Data
@AllArgsConstructor
@NoArgsConstructor
public static class Parameters {
private UUID id;
private Boolean includeInactive;
private Boolean includeRiskFactors;
}
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.request;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
public class BusinessTypesPublicRequest extends AbstractDTO<Boolean, ErrorDTO> {
public static final String ROUTING_KEY = "api.BusinessTypesPublicRequest";
@Override
public String routingKey() {
return ROUTING_KEY;
}
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.response;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto.BusinessTypePublicDto;
public class BusinessTypePublicResponse extends AbstractDTO<BusinessTypePublicDto, ErrorDTO> {
public static final String ROUTING_KEY = "api.BusinessTypePublicResponse";
@Override
public String routingKey() {
return ROUTING_KEY;
}
}
package ee.sm.ti.teis.commongateway.riskassessment.businesstype.response;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto.BusinessTypePublicLightDto;
import java.util.List;
public class BusinessTypesPublicResponse extends AbstractDTO<List<BusinessTypePublicLightDto>, ErrorDTO> {
public static final String ROUTING_KEY = "api.BusinessTypesPublicResponse";
@Override
public String routingKey() {
return ROUTING_KEY;
}
}
package ee.sm.ti.teis.commongateway.riskassessment.riskassessment;
import ee.sm.ti.teis.commongateway.riskassessment.businesstype.dto.AssessedBusinessTypePublicDto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CreateRiskAssessmentDto {
private RiskAssessmentPublicDto riskAssessment;
private List<AssessedBusinessTypePublicDto> assessedBusinessType;
}
package ee.sm.ti.teis.commongateway.riskassessment.riskassessment;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
import java.time.LocalDate;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RiskAssessmentPublicDto {
@NotBlank
private String title;
private UUID employerId;
private boolean external;
private ClassifierItemLightDto status;
private LocalDate lastChangeDate;
private ObjectStatus objectStatus;
}
package ee.sm.ti.teis.commongateway.riskassessment.riskassessment.request;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import ee.sm.ti.teis.commongateway.riskassessment.riskassessment.CreateRiskAssessmentDto;
public class CreateRiskAssessmentPublicRequest extends AbstractDTO<CreateRiskAssessmentDto, ErrorDTO> {
public static final String ROUTING_KEY = "api.CreateRiskAssessmentPublicRequest";
@Override
public String routingKey() {
return ROUTING_KEY;
}
}
package ee.sm.ti.teis.commongateway.riskassessment.riskassessment.response;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import ee.sm.ti.teis.commongateway.riskassessment.riskassessment.RiskAssessmentPublicDto;
public class CreateRiskAssessmentPublicResponse extends AbstractDTO<RiskAssessmentPublicDto, ErrorDTO> {
public static final String ROUTING_KEY = "api.CreateRiskAssessmentPublicResponse";
@Override
public String routingKey() {
return ROUTING_KEY;
}
}
package ee.sm.ti.teis.commongateway.riskassessment.riskfactor.dto;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RiskFactorPublicDto {
private UUID id;
private String name;
private String occurrence;
private String impact;
private Boolean general;
private ClassifierItemLightDto category;
private Long seqNo;
private ClassifierItemLightDto status;
private ObjectStatus objectStatus;
}
package ee.sm.ti.teis.commongateway.riskassessment.riskfactor.request;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
public class RiskFactorsPublicRequest extends AbstractDTO<Boolean, ErrorDTO> {
public static final String ROUTING_KEY = "api.RiskFactorsPublicRequest";
@Override
public String routingKey() {
return ROUTING_KEY;
}
}
package ee.sm.ti.teis.commongateway.riskassessment.riskfactor.response;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import ee.sm.ti.teis.commongateway.riskassessment.riskfactor.dto.RiskFactorPublicDto;
import java.util.List;
public class RiskFactorsPublicResponse extends AbstractDTO<List<RiskFactorPublicDto>, ErrorDTO> {
public static final String ROUTING_KEY = "api.RiskFactorsPublicResponse";
@Override
public String routingKey() {
return ROUTING_KEY;
}
}
package ee.sm.ti.teis.commongateway.role;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
public class TestRoleDefinitionsRequest extends AbstractDTO<TestRoleDefinitionsRequest.Parameters, ErrorDTO> {
public static final String ROUTING_KEY = "api.TestRoleDefinitionsRequest";
@Override
public String routingKey() {
return ROUTING_KEY;
}
@Data
@AllArgsConstructor
@NoArgsConstructor
public static class Parameters {
private String roleCode;
private String roleType;
private String objectStatus;
}
}
package ee.sm.ti.teis.commongateway.role;
import ee.sm.ti.teis.AbstractDTO;
import ee.sm.ti.teis.ErrorDTO;
import java.util.List;
public class TestRoleDefinitionsResponse extends AbstractDTO<List<RoleDefinitionPublicDto>, ErrorDTO> {
public static final String ROUTING_KEY = "api.TestRoleDefinitionsResponse";
@Override
public String routingKey() {
return ROUTING_KEY;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment