autocomit
This commit is contained in:
@@ -0,0 +1,121 @@
|
||||
package com.ldpv2.controller;
|
||||
|
||||
import com.ldpv2.domain.enums.ApplicationStatus;
|
||||
import com.ldpv2.dto.request.CreateApplicationRequest;
|
||||
import com.ldpv2.dto.request.UpdateApplicationRequest;
|
||||
import com.ldpv2.dto.response.ApplicationResponse;
|
||||
import com.ldpv2.service.ApplicationService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/applications")
|
||||
@Tag(name = "Applications", description = "Application management endpoints")
|
||||
@SecurityRequirement(name = "bearerAuth")
|
||||
public class ApplicationController {
|
||||
|
||||
@Autowired
|
||||
private ApplicationService applicationService;
|
||||
|
||||
@PostMapping
|
||||
@Operation(summary = "Create application", description = "Create a new application")
|
||||
public ResponseEntity<ApplicationResponse> create(@Valid @RequestBody CreateApplicationRequest request) {
|
||||
ApplicationResponse response = applicationService.create(request);
|
||||
return new ResponseEntity<>(response, HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@PutMapping("/{id}")
|
||||
@Operation(summary = "Update application", description = "Update an existing application")
|
||||
public ResponseEntity<ApplicationResponse> update(
|
||||
@PathVariable UUID id,
|
||||
@Valid @RequestBody UpdateApplicationRequest request) {
|
||||
ApplicationResponse response = applicationService.update(id, request);
|
||||
return ResponseEntity.ok(response);
|
||||
}
|
||||
|
||||
@PatchMapping("/{id}/status")
|
||||
@Operation(summary = "Update status", description = "Update application status only")
|
||||
public ResponseEntity<ApplicationResponse> updateStatus(
|
||||
@PathVariable UUID id,
|
||||
@RequestParam ApplicationStatus status) {
|
||||
ApplicationResponse response = applicationService.updateStatus(id, status);
|
||||
return ResponseEntity.ok(response);
|
||||
}
|
||||
|
||||
@GetMapping("/{id}")
|
||||
@Operation(summary = "Get application", description = "Get application by ID")
|
||||
public ResponseEntity<ApplicationResponse> getById(@PathVariable UUID id) {
|
||||
ApplicationResponse response = applicationService.findById(id);
|
||||
return ResponseEntity.ok(response);
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
@Operation(summary = "List applications", description = "Get paginated list of applications")
|
||||
public ResponseEntity<Page<ApplicationResponse>> getAll(
|
||||
@RequestParam(required = false) ApplicationStatus status,
|
||||
@RequestParam(required = false) UUID businessUnitId,
|
||||
@RequestParam(required = false) String name,
|
||||
@RequestParam(defaultValue = "0") int page,
|
||||
@RequestParam(defaultValue = "20") int size,
|
||||
@RequestParam(defaultValue = "name") String sortBy,
|
||||
@RequestParam(defaultValue = "asc") String sortDirection) {
|
||||
|
||||
Sort sort = sortDirection.equalsIgnoreCase("desc")
|
||||
? Sort.by(sortBy).descending()
|
||||
: Sort.by(sortBy).ascending();
|
||||
|
||||
Pageable pageable = PageRequest.of(page, size, sort);
|
||||
|
||||
Page<ApplicationResponse> response;
|
||||
if (status != null || businessUnitId != null || name != null) {
|
||||
response = applicationService.search(status, businessUnitId, name, pageable);
|
||||
} else {
|
||||
response = applicationService.findAll(pageable);
|
||||
}
|
||||
|
||||
return ResponseEntity.ok(response);
|
||||
}
|
||||
|
||||
@GetMapping("/by-status/{status}")
|
||||
@Operation(summary = "Filter by status", description = "Get applications by status")
|
||||
public ResponseEntity<Page<ApplicationResponse>> getByStatus(
|
||||
@PathVariable ApplicationStatus status,
|
||||
@RequestParam(defaultValue = "0") int page,
|
||||
@RequestParam(defaultValue = "20") int size) {
|
||||
|
||||
Pageable pageable = PageRequest.of(page, size);
|
||||
Page<ApplicationResponse> response = applicationService.findByStatus(status, pageable);
|
||||
return ResponseEntity.ok(response);
|
||||
}
|
||||
|
||||
@GetMapping("/by-business-unit/{businessUnitId}")
|
||||
@Operation(summary = "Filter by business unit", description = "Get applications by business unit")
|
||||
public ResponseEntity<Page<ApplicationResponse>> getByBusinessUnit(
|
||||
@PathVariable UUID businessUnitId,
|
||||
@RequestParam(defaultValue = "0") int page,
|
||||
@RequestParam(defaultValue = "20") int size) {
|
||||
|
||||
Pageable pageable = PageRequest.of(page, size);
|
||||
Page<ApplicationResponse> response = applicationService.findByBusinessUnit(businessUnitId, pageable);
|
||||
return ResponseEntity.ok(response);
|
||||
}
|
||||
|
||||
@DeleteMapping("/{id}")
|
||||
@Operation(summary = "Delete application", description = "Delete an application")
|
||||
public ResponseEntity<Void> delete(@PathVariable UUID id) {
|
||||
applicationService.delete(id);
|
||||
return ResponseEntity.noContent().build();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.ldpv2.domain.entity;
|
||||
|
||||
import com.ldpv2.domain.enums.ApplicationStatus;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* Application entity representing software systems
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "application")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Application extends BaseEntity {
|
||||
|
||||
@Column(nullable = false, length = 255)
|
||||
private String name;
|
||||
|
||||
@Column(columnDefinition = "TEXT")
|
||||
private String description;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Column(nullable = false, length = 50)
|
||||
private ApplicationStatus status;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "business_unit_id", nullable = false)
|
||||
private BusinessUnit businessUnit;
|
||||
|
||||
@Column(name = "end_of_life_date")
|
||||
private LocalDate endOfLifeDate;
|
||||
|
||||
@Column(name = "end_of_support_date")
|
||||
private LocalDate endOfSupportDate;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.ldpv2.domain.enums;
|
||||
|
||||
public enum ApplicationStatus {
|
||||
IDEA("Idea"),
|
||||
IN_DEVELOPMENT("In Development"),
|
||||
IN_SERVICE("In Service"),
|
||||
MAINTENANCE("Maintenance"),
|
||||
DECOMMISSIONED("Decommissioned");
|
||||
|
||||
private final String displayName;
|
||||
|
||||
ApplicationStatus(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.ldpv2.dto.request;
|
||||
|
||||
import com.ldpv2.domain.enums.ApplicationStatus;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.UUID;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CreateApplicationRequest {
|
||||
|
||||
@NotBlank(message = "Name is required")
|
||||
@Size(max = 255, message = "Name must not exceed 255 characters")
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
@NotNull(message = "Status is required")
|
||||
private ApplicationStatus status;
|
||||
|
||||
@NotNull(message = "Business unit is required")
|
||||
private UUID businessUnitId;
|
||||
|
||||
private LocalDate endOfLifeDate;
|
||||
|
||||
private LocalDate endOfSupportDate;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.ldpv2.dto.request;
|
||||
|
||||
import com.ldpv2.domain.enums.ApplicationStatus;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.UUID;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class UpdateApplicationRequest {
|
||||
|
||||
@Size(max = 255, message = "Name must not exceed 255 characters")
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
private ApplicationStatus status;
|
||||
|
||||
private UUID businessUnitId;
|
||||
|
||||
private LocalDate endOfLifeDate;
|
||||
|
||||
private LocalDate endOfSupportDate;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.ldpv2.dto.response;
|
||||
|
||||
import com.ldpv2.domain.enums.ApplicationStatus;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.UUID;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ApplicationResponse {
|
||||
private UUID id;
|
||||
private String name;
|
||||
private String description;
|
||||
private ApplicationStatus status;
|
||||
private BusinessUnitSummaryResponse businessUnit;
|
||||
private LocalDate endOfLifeDate;
|
||||
private LocalDate endOfSupportDate;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.ldpv2.dto.response;
|
||||
|
||||
import com.ldpv2.domain.enums.ApplicationStatus;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ApplicationSummaryResponse {
|
||||
private UUID id;
|
||||
private String name;
|
||||
private ApplicationStatus status;
|
||||
private String businessUnitName;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.ldpv2.repository;
|
||||
|
||||
import com.ldpv2.domain.entity.Application;
|
||||
import com.ldpv2.domain.enums.ApplicationStatus;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Repository
|
||||
public interface ApplicationRepository extends JpaRepository<Application, UUID> {
|
||||
Page<Application> findByStatus(ApplicationStatus status, Pageable pageable);
|
||||
Page<Application> findByBusinessUnitId(UUID businessUnitId, Pageable pageable);
|
||||
Page<Application> findByNameContainingIgnoreCase(String name, Pageable pageable);
|
||||
Page<Application> findByStatusAndBusinessUnitId(ApplicationStatus status, UUID businessUnitId, Pageable pageable);
|
||||
|
||||
@Query("SELECT a FROM Application a WHERE " +
|
||||
"(:status IS NULL OR a.status = :status) AND " +
|
||||
"(:businessUnitId IS NULL OR a.businessUnit.id = :businessUnitId) AND " +
|
||||
"(:name IS NULL OR LOWER(a.name) LIKE LOWER(CONCAT('%', :name, '%')))")
|
||||
Page<Application> search(
|
||||
@Param("status") ApplicationStatus status,
|
||||
@Param("businessUnitId") UUID businessUnitId,
|
||||
@Param("name") String name,
|
||||
Pageable pageable
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
package com.ldpv2.service;
|
||||
|
||||
import com.ldpv2.domain.entity.Application;
|
||||
import com.ldpv2.domain.entity.BusinessUnit;
|
||||
import com.ldpv2.domain.enums.ApplicationStatus;
|
||||
import com.ldpv2.dto.request.CreateApplicationRequest;
|
||||
import com.ldpv2.dto.request.UpdateApplicationRequest;
|
||||
import com.ldpv2.dto.response.ApplicationResponse;
|
||||
import com.ldpv2.dto.response.BusinessUnitSummaryResponse;
|
||||
import com.ldpv2.exception.BadRequestException;
|
||||
import com.ldpv2.exception.ResourceNotFoundException;
|
||||
import com.ldpv2.repository.ApplicationRepository;
|
||||
import com.ldpv2.repository.BusinessUnitRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Service
|
||||
public class ApplicationService {
|
||||
|
||||
@Autowired
|
||||
private ApplicationRepository applicationRepository;
|
||||
|
||||
@Autowired
|
||||
private BusinessUnitRepository businessUnitRepository;
|
||||
|
||||
@Transactional
|
||||
public ApplicationResponse create(CreateApplicationRequest request) {
|
||||
// Validate business unit exists
|
||||
BusinessUnit businessUnit = businessUnitRepository.findById(request.getBusinessUnitId())
|
||||
.orElseThrow(() -> new ResourceNotFoundException(
|
||||
"Business unit not found with id: " + request.getBusinessUnitId()));
|
||||
|
||||
// Validate dates if both are provided
|
||||
if (request.getEndOfSupportDate() != null && request.getEndOfLifeDate() != null) {
|
||||
if (request.getEndOfSupportDate().isAfter(request.getEndOfLifeDate())) {
|
||||
throw new BadRequestException(
|
||||
"End of support date must be before end of life date");
|
||||
}
|
||||
}
|
||||
|
||||
Application application = new Application();
|
||||
application.setName(request.getName());
|
||||
application.setDescription(request.getDescription());
|
||||
application.setStatus(request.getStatus());
|
||||
application.setBusinessUnit(businessUnit);
|
||||
application.setEndOfLifeDate(request.getEndOfLifeDate());
|
||||
application.setEndOfSupportDate(request.getEndOfSupportDate());
|
||||
|
||||
application = applicationRepository.save(application);
|
||||
return mapToResponse(application);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public ApplicationResponse update(UUID id, UpdateApplicationRequest request) {
|
||||
Application application = applicationRepository.findById(id)
|
||||
.orElseThrow(() -> new ResourceNotFoundException(
|
||||
"Application not found with id: " + id));
|
||||
|
||||
if (request.getName() != null) {
|
||||
application.setName(request.getName());
|
||||
}
|
||||
|
||||
if (request.getDescription() != null) {
|
||||
application.setDescription(request.getDescription());
|
||||
}
|
||||
|
||||
if (request.getStatus() != null) {
|
||||
application.setStatus(request.getStatus());
|
||||
}
|
||||
|
||||
if (request.getBusinessUnitId() != null) {
|
||||
BusinessUnit businessUnit = businessUnitRepository.findById(request.getBusinessUnitId())
|
||||
.orElseThrow(() -> new ResourceNotFoundException(
|
||||
"Business unit not found with id: " + request.getBusinessUnitId()));
|
||||
application.setBusinessUnit(businessUnit);
|
||||
}
|
||||
|
||||
if (request.getEndOfLifeDate() != null) {
|
||||
application.setEndOfLifeDate(request.getEndOfLifeDate());
|
||||
}
|
||||
|
||||
if (request.getEndOfSupportDate() != null) {
|
||||
application.setEndOfSupportDate(request.getEndOfSupportDate());
|
||||
}
|
||||
|
||||
// Validate dates if both are set
|
||||
if (application.getEndOfSupportDate() != null && application.getEndOfLifeDate() != null) {
|
||||
if (application.getEndOfSupportDate().isAfter(application.getEndOfLifeDate())) {
|
||||
throw new BadRequestException(
|
||||
"End of support date must be before end of life date");
|
||||
}
|
||||
}
|
||||
|
||||
application = applicationRepository.save(application);
|
||||
return mapToResponse(application);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public ApplicationResponse updateStatus(UUID id, ApplicationStatus newStatus) {
|
||||
Application application = applicationRepository.findById(id)
|
||||
.orElseThrow(() -> new ResourceNotFoundException(
|
||||
"Application not found with id: " + id));
|
||||
|
||||
application.setStatus(newStatus);
|
||||
application = applicationRepository.save(application);
|
||||
return mapToResponse(application);
|
||||
}
|
||||
|
||||
public ApplicationResponse findById(UUID id) {
|
||||
Application application = applicationRepository.findById(id)
|
||||
.orElseThrow(() -> new ResourceNotFoundException(
|
||||
"Application not found with id: " + id));
|
||||
return mapToResponse(application);
|
||||
}
|
||||
|
||||
public Page<ApplicationResponse> findAll(Pageable pageable) {
|
||||
return applicationRepository.findAll(pageable).map(this::mapToResponse);
|
||||
}
|
||||
|
||||
public Page<ApplicationResponse> findByStatus(ApplicationStatus status, Pageable pageable) {
|
||||
return applicationRepository.findByStatus(status, pageable).map(this::mapToResponse);
|
||||
}
|
||||
|
||||
public Page<ApplicationResponse> findByBusinessUnit(UUID businessUnitId, Pageable pageable) {
|
||||
return applicationRepository.findByBusinessUnitId(businessUnitId, pageable)
|
||||
.map(this::mapToResponse);
|
||||
}
|
||||
|
||||
public Page<ApplicationResponse> search(ApplicationStatus status, UUID businessUnitId,
|
||||
String name, Pageable pageable) {
|
||||
return applicationRepository.search(status, businessUnitId, name, pageable)
|
||||
.map(this::mapToResponse);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void delete(UUID id) {
|
||||
if (!applicationRepository.existsById(id)) {
|
||||
throw new ResourceNotFoundException("Application not found with id: " + id);
|
||||
}
|
||||
applicationRepository.deleteById(id);
|
||||
}
|
||||
|
||||
private ApplicationResponse mapToResponse(Application application) {
|
||||
BusinessUnitSummaryResponse buSummary = new BusinessUnitSummaryResponse(
|
||||
application.getBusinessUnit().getId(),
|
||||
application.getBusinessUnit().getName()
|
||||
);
|
||||
|
||||
return new ApplicationResponse(
|
||||
application.getId(),
|
||||
application.getName(),
|
||||
application.getDescription(),
|
||||
application.getStatus(),
|
||||
buSummary,
|
||||
application.getEndOfLifeDate(),
|
||||
application.getEndOfSupportDate(),
|
||||
application.getCreatedAt(),
|
||||
application.getUpdatedAt()
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -8,11 +8,11 @@
|
||||
<changeSet id="initial-data" author="ldpv2-team">
|
||||
|
||||
<!-- Insert default admin user -->
|
||||
<!-- Password: admin123 (hashed with BCrypt) -->
|
||||
<!-- Password: admin (hashed with BCrypt) -->
|
||||
<insert tableName="users">
|
||||
<column name="username" value="admin"/>
|
||||
<!-- <column name="password" value="$2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy"/>-->
|
||||
<column name="password" value="$2a$12$mCGWGeNM3r11.yFhPFi22e./YQl2pRTIpJBVUwydScZioE3y6xm3m"/>
|
||||
<!-- BCrypt hash for "admin" -->
|
||||
<column name="password" value="$2a$10$dXJ3SW6G7P50lGmMkkmwe.20cyhQQiNpz5ZeaQ/o6HIYTgYhqCL6e"/>
|
||||
<column name="email" value="admin@ldpv2.com"/>
|
||||
<column name="role" value="ADMIN"/>
|
||||
</insert>
|
||||
|
||||
@@ -13,4 +13,7 @@
|
||||
<!-- Story 1: Business Units -->
|
||||
<include file="db/changelog/v1.0/003-create-business-unit-table.xml"/>
|
||||
|
||||
<!-- Story 2: Applications -->
|
||||
<include file="db/changelog/v1.0/004-create-application-table.xml"/>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||
|
||||
<changeSet id="004-create-application-table" author="ldpv2-team">
|
||||
|
||||
<!-- Create ApplicationStatus enum type -->
|
||||
<sql>
|
||||
CREATE TYPE application_status AS ENUM (
|
||||
'IDEA',
|
||||
'IN_DEVELOPMENT',
|
||||
'IN_SERVICE',
|
||||
'MAINTENANCE',
|
||||
'DECOMMISSIONED'
|
||||
);
|
||||
</sql>
|
||||
|
||||
<!-- Create application table -->
|
||||
<createTable tableName="application">
|
||||
<column name="id" type="UUID" defaultValueComputed="uuid_generate_v4()">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="name" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="description" type="TEXT"/>
|
||||
<column name="status" type="application_status">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="business_unit_id" type="UUID">
|
||||
<constraints nullable="false"
|
||||
foreignKeyName="fk_application_business_unit"
|
||||
references="business_unit(id)"/>
|
||||
</column>
|
||||
<column name="end_of_life_date" type="DATE"/>
|
||||
<column name="end_of_support_date" type="DATE"/>
|
||||
<column name="created_at" type="TIMESTAMP" defaultValueComputed="CURRENT_TIMESTAMP">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="updated_at" type="TIMESTAMP" defaultValueComputed="CURRENT_TIMESTAMP">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
</createTable>
|
||||
|
||||
<!-- Create indexes -->
|
||||
<createIndex tableName="application" indexName="idx_application_status">
|
||||
<column name="status"/>
|
||||
</createIndex>
|
||||
|
||||
<createIndex tableName="application" indexName="idx_application_business_unit">
|
||||
<column name="business_unit_id"/>
|
||||
</createIndex>
|
||||
|
||||
<createIndex tableName="application" indexName="idx_application_name">
|
||||
<column name="name"/>
|
||||
</createIndex>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<!-- Insert sample applications in a separate changeset -->
|
||||
<changeSet id="004-insert-sample-applications" author="ldpv2-team">
|
||||
|
||||
<!-- Insert sample applications -->
|
||||
<sql>
|
||||
-- Customer Portal (Digital Services)
|
||||
INSERT INTO application (name, description, status, business_unit_id, end_of_support_date, end_of_life_date)
|
||||
SELECT
|
||||
'Customer Portal',
|
||||
'External customer-facing portal for self-service',
|
||||
'IN_SERVICE'::application_status,
|
||||
id,
|
||||
'2028-12-31'::DATE,
|
||||
'2030-12-31'::DATE
|
||||
FROM business_unit WHERE name = 'Digital Services';
|
||||
|
||||
-- Internal CRM (Digital Services)
|
||||
INSERT INTO application (name, description, status, business_unit_id, end_of_support_date, end_of_life_date)
|
||||
SELECT
|
||||
'Internal CRM',
|
||||
'Customer relationship management system',
|
||||
'IN_SERVICE'::application_status,
|
||||
id,
|
||||
'2027-06-30'::DATE,
|
||||
'2029-06-30'::DATE
|
||||
FROM business_unit WHERE name = 'Digital Services';
|
||||
|
||||
-- HR Management System (Human Resources)
|
||||
INSERT INTO application (name, description, status, business_unit_id, end_of_support_date, end_of_life_date)
|
||||
SELECT
|
||||
'HR Management System',
|
||||
'Employee data and payroll management',
|
||||
'IN_SERVICE'::application_status,
|
||||
id,
|
||||
'2029-12-31'::DATE,
|
||||
'2031-12-31'::DATE
|
||||
FROM business_unit WHERE name = 'Human Resources';
|
||||
|
||||
-- Financial Reporting Tool (Finance)
|
||||
INSERT INTO application (name, description, status, business_unit_id, end_of_support_date, end_of_life_date)
|
||||
SELECT
|
||||
'Financial Reporting Tool',
|
||||
'Automated financial reporting and analytics',
|
||||
'IN_SERVICE'::application_status,
|
||||
id,
|
||||
'2026-12-31'::DATE,
|
||||
'2028-12-31'::DATE
|
||||
FROM business_unit WHERE name = 'Finance';
|
||||
|
||||
-- Mobile App (Digital Services)
|
||||
INSERT INTO application (name, description, status, business_unit_id)
|
||||
SELECT
|
||||
'Mobile App',
|
||||
'Customer mobile application',
|
||||
'IN_DEVELOPMENT'::application_status,
|
||||
id
|
||||
FROM business_unit WHERE name = 'Digital Services';
|
||||
|
||||
-- Legacy System (Operations)
|
||||
INSERT INTO application (name, description, status, business_unit_id, end_of_life_date)
|
||||
SELECT
|
||||
'Legacy Inventory System',
|
||||
'Old inventory management system - to be decommissioned',
|
||||
'MAINTENANCE'::application_status,
|
||||
id,
|
||||
'2026-06-30'::DATE
|
||||
FROM business_unit WHERE name = 'Operations';
|
||||
|
||||
-- AI Analytics Platform (Digital Services)
|
||||
INSERT INTO application (name, description, status, business_unit_id)
|
||||
SELECT
|
||||
'AI Analytics Platform',
|
||||
'Machine learning based analytics platform',
|
||||
'IDEA'::application_status,
|
||||
id
|
||||
FROM business_unit WHERE name = 'Digital Services';
|
||||
</sql>
|
||||
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,13 +4,18 @@ import { authGuard } from './core/guards/auth.guard';
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
redirectTo: '/business-units',
|
||||
redirectTo: '/dashboard',
|
||||
pathMatch: 'full'
|
||||
},
|
||||
{
|
||||
path: 'login',
|
||||
loadComponent: () => import('./core/auth/login/login.component').then(m => m.LoginComponent)
|
||||
},
|
||||
{
|
||||
path: 'dashboard',
|
||||
canActivate: [authGuard],
|
||||
loadComponent: () => import('./features/dashboard/dashboard.component').then(m => m.DashboardComponent)
|
||||
},
|
||||
{
|
||||
path: 'business-units',
|
||||
canActivate: [authGuard],
|
||||
@@ -37,6 +42,32 @@ export const routes: Routes = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'applications',
|
||||
canActivate: [authGuard],
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadComponent: () => import('./features/applications/application-list/application-list.component')
|
||||
.then(m => m.ApplicationListComponent)
|
||||
},
|
||||
{
|
||||
path: 'new',
|
||||
loadComponent: () => import('./features/applications/application-form/application-form.component')
|
||||
.then(m => m.ApplicationFormComponent)
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
loadComponent: () => import('./features/applications/application-detail/application-detail.component')
|
||||
.then(m => m.ApplicationDetailComponent)
|
||||
},
|
||||
{
|
||||
path: ':id/edit',
|
||||
loadComponent: () => import('./features/applications/application-form/application-form.component')
|
||||
.then(m => m.ApplicationFormComponent)
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'environments',
|
||||
canActivate: [authGuard],
|
||||
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
<div class="container">
|
||||
<div *ngIf="loading" class="loading">Loading...</div>
|
||||
<div *ngIf="error" class="error">{{ error }}</div>
|
||||
|
||||
<div *ngIf="application && !loading" class="detail-card">
|
||||
<div class="header">
|
||||
<h1>{{ application.name }}</h1>
|
||||
<div class="actions">
|
||||
<button (click)="edit()" class="btn-primary">Edit</button>
|
||||
<button (click)="delete()" class="btn-danger">Delete</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="details">
|
||||
<div class="detail-row">
|
||||
<label>Status:</label>
|
||||
<span class="status-badge" [ngClass]="getStatusClass(application.status)">
|
||||
{{ getStatusDisplay(application.status) }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="detail-row">
|
||||
<label>Description:</label>
|
||||
<span>{{ application.description || '-' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="detail-row">
|
||||
<label>Business Unit:</label>
|
||||
<span>{{ application.businessUnit.name }}</span>
|
||||
</div>
|
||||
|
||||
<div class="detail-row">
|
||||
<label>End of Support Date:</label>
|
||||
<span>{{ application.endOfSupportDate ? (application.endOfSupportDate | date:'mediumDate') : '-' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="detail-row">
|
||||
<label>End of Life Date:</label>
|
||||
<span>{{ application.endOfLifeDate ? (application.endOfLifeDate | date:'mediumDate') : '-' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="detail-row">
|
||||
<label>Created:</label>
|
||||
<span>{{ application.createdAt | date:'medium' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="detail-row">
|
||||
<label>Last Updated:</label>
|
||||
<span>{{ application.updatedAt | date:'medium' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button (click)="back()" class="btn-secondary">Back to List</button>
|
||||
</div>
|
||||
</div>
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.loading, .error {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: #f44336;
|
||||
}
|
||||
|
||||
.detail-card {
|
||||
background: white;
|
||||
padding: 2rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 2px solid #f5f5f5;
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.details {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.detail-row {
|
||||
display: flex;
|
||||
padding: 1rem 0;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
|
||||
label {
|
||||
font-weight: 600;
|
||||
width: 250px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
span {
|
||||
flex: 1;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 12px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
|
||||
&.status-idea {
|
||||
background-color: #e3f2fd;
|
||||
color: #1976d2;
|
||||
}
|
||||
|
||||
&.status-in-development {
|
||||
background-color: #fff3e0;
|
||||
color: #f57c00;
|
||||
}
|
||||
|
||||
&.status-in-service {
|
||||
background-color: #e8f5e9;
|
||||
color: #388e3c;
|
||||
}
|
||||
|
||||
&.status-maintenance {
|
||||
background-color: #fff9c4;
|
||||
color: #f57f17;
|
||||
}
|
||||
|
||||
&.status-decommissioned {
|
||||
background-color: #f5f5f5;
|
||||
color: #616161;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-primary, .btn-secondary, .btn-danger {
|
||||
padding: 0.75rem 1.5rem;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #3f51b5;
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
background-color: #303f9f;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: #f5f5f5;
|
||||
color: #333;
|
||||
|
||||
&:hover {
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background-color: #f44336;
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
background-color: #d32f2f;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-application-detail',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
template: `<div class="container"><h1>Application Detail</h1><p class="info-message">ℹ️ Coming in Story 2</p></div>`,
|
||||
styles: [`.container { max-width: 1200px; margin: 2rem auto; padding: 2rem; } .info-message { background: #e3f2fd; padding: 1rem; border-radius: 4px; }`]
|
||||
})
|
||||
export class ApplicationDetailComponent {}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
<div class="container">
|
||||
<h1>{{ isEditMode ? 'Edit Application' : 'Create New Application' }}</h1>
|
||||
|
||||
<form [formGroup]="form" (ngSubmit)="onSubmit()">
|
||||
<div class="form-group">
|
||||
<label for="name">Name *</label>
|
||||
<input
|
||||
id="name"
|
||||
type="text"
|
||||
formControlName="name"
|
||||
[class.error]="form.get('name')?.invalid && form.get('name')?.touched"
|
||||
/>
|
||||
<div class="error-message" *ngIf="form.get('name')?.invalid && form.get('name')?.touched">
|
||||
<span *ngIf="form.get('name')?.errors?.['required']">Name is required</span>
|
||||
<span *ngIf="form.get('name')?.errors?.['maxlength']">Name must not exceed 255 characters</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="description">Description</label>
|
||||
<textarea
|
||||
id="description"
|
||||
formControlName="description"
|
||||
rows="4"
|
||||
></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="status">Status *</label>
|
||||
<select
|
||||
id="status"
|
||||
formControlName="status"
|
||||
[class.error]="form.get('status')?.invalid && form.get('status')?.touched"
|
||||
>
|
||||
<option *ngFor="let status of statusOptions" [value]="status">
|
||||
{{ getStatusDisplay(status) }}
|
||||
</option>
|
||||
</select>
|
||||
<div class="error-message" *ngIf="form.get('status')?.invalid && form.get('status')?.touched">
|
||||
Status is required
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="businessUnitId">Business Unit *</label>
|
||||
<select
|
||||
id="businessUnitId"
|
||||
formControlName="businessUnitId"
|
||||
[class.error]="form.get('businessUnitId')?.invalid && form.get('businessUnitId')?.touched"
|
||||
>
|
||||
<option value="">Select a business unit</option>
|
||||
<option *ngFor="let bu of businessUnits" [value]="bu.id">
|
||||
{{ bu.name }}
|
||||
</option>
|
||||
</select>
|
||||
<div class="error-message" *ngIf="form.get('businessUnitId')?.invalid && form.get('businessUnitId')?.touched">
|
||||
Business unit is required
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label for="endOfSupportDate">End of Support Date</label>
|
||||
<input
|
||||
id="endOfSupportDate"
|
||||
type="date"
|
||||
formControlName="endOfSupportDate"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="endOfLifeDate">End of Life Date</label>
|
||||
<input
|
||||
id="endOfLifeDate"
|
||||
type="date"
|
||||
formControlName="endOfLifeDate"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="error-message" *ngIf="error">
|
||||
{{ error }}
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="button" (click)="cancel()" class="btn-secondary">Cancel</button>
|
||||
<button type="submit" [disabled]="form.invalid || loading" class="btn-primary">
|
||||
{{ loading ? 'Saving...' : 'Save' }}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
|
||||
h1 {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
form {
|
||||
background: white;
|
||||
padding: 2rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="date"],
|
||||
select,
|
||||
textarea {
|
||||
width: 100%;
|
||||
padding: 0.75rem;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
font-size: 1rem;
|
||||
font-family: inherit;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: #3f51b5;
|
||||
}
|
||||
|
||||
&.error {
|
||||
border-color: #f44336;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
justify-content: flex-end;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.btn-primary, .btn-secondary {
|
||||
padding: 0.75rem 1.5rem;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #3f51b5;
|
||||
color: white;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background-color: #303f9f;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
background-color: #ccc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: #f5f5f5;
|
||||
color: #333;
|
||||
|
||||
&:hover {
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
}
|
||||
|
||||
.error-message {
|
||||
color: #f44336;
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-application-form',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
template: `<div class="container"><h1>Application Form</h1><p class="info-message">ℹ️ Coming in Story 2</p></div>`,
|
||||
styles: [`.container { max-width: 1200px; margin: 2rem auto; padding: 2rem; } .info-message { background: #e3f2fd; padding: 1rem; border-radius: 4px; }`]
|
||||
})
|
||||
export class ApplicationFormComponent {}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Applications</h1>
|
||||
<button (click)="createNew()" class="btn-primary">Create New Application</button>
|
||||
</div>
|
||||
|
||||
<div class="filters">
|
||||
<div class="filter-row">
|
||||
<div class="filter-group">
|
||||
<label>Search by name:</label>
|
||||
<input
|
||||
type="text"
|
||||
[(ngModel)]="searchQuery"
|
||||
(ngModelChange)="onSearchChange($event)"
|
||||
placeholder="Search applications..."
|
||||
class="search-input"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="filter-group">
|
||||
<label>Status:</label>
|
||||
<select [(ngModel)]="selectedStatus" (ngModelChange)="onFilterChange()" class="filter-select">
|
||||
<option value="">All Statuses</option>
|
||||
<option *ngFor="let status of statusOptions" [value]="status">
|
||||
{{ getStatusDisplay(status) }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="filter-group">
|
||||
<label>Business Unit:</label>
|
||||
<select [(ngModel)]="selectedBusinessUnitId" (ngModelChange)="onFilterChange()" class="filter-select">
|
||||
<option value="">All Business Units</option>
|
||||
<option *ngFor="let bu of businessUnits" [value]="bu.id">
|
||||
{{ bu.name }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="loading" class="loading">Loading...</div>
|
||||
<div *ngIf="error" class="error">{{ error }}</div>
|
||||
|
||||
<div *ngIf="!loading && applications.length > 0" class="table-container">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Status</th>
|
||||
<th>Business Unit</th>
|
||||
<th>End of Life</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr *ngFor="let app of applications">
|
||||
<td><strong>{{ app.name }}</strong></td>
|
||||
<td>
|
||||
<span class="status-badge" [ngClass]="getStatusClass(app.status)">
|
||||
{{ getStatusDisplay(app.status) }}
|
||||
</span>
|
||||
</td>
|
||||
<td>{{ app.businessUnit.name }}</td>
|
||||
<td>{{ app.endOfLifeDate ? (app.endOfLifeDate | date:'mediumDate') : '-' }}</td>
|
||||
<td class="actions">
|
||||
<button (click)="viewDetails(app.id)" class="btn-sm">View</button>
|
||||
<button (click)="edit(app.id)" class="btn-sm">Edit</button>
|
||||
<select
|
||||
(change)="changeStatus(app.id, $any($event.target).value)"
|
||||
class="btn-sm status-select"
|
||||
[value]="app.status">
|
||||
<option disabled selected>Change Status</option>
|
||||
<option *ngFor="let status of statusOptions" [value]="status">
|
||||
{{ getStatusDisplay(status) }}
|
||||
</option>
|
||||
</select>
|
||||
<button (click)="delete(app.id)" class="btn-sm btn-danger">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div *ngIf="!loading && applications.length === 0" class="empty">
|
||||
No applications found. Click "Create New Application" to get started.
|
||||
</div>
|
||||
|
||||
<div *ngIf="totalPages > 1" class="pagination">
|
||||
<button (click)="previousPage()" [disabled]="page === 0">Previous</button>
|
||||
<span>Page {{ page + 1 }} of {{ totalPages }} ({{ totalElements }} total)</span>
|
||||
<button (click)="nextPage()" [disabled]="page >= totalPages - 1">Next</button>
|
||||
</div>
|
||||
</div>
|
||||
+203
@@ -0,0 +1,203 @@
|
||||
.container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.filters {
|
||||
background: white;
|
||||
padding: 1.5rem;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 1.5rem;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.filter-row {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.search-input,
|
||||
.filter-select {
|
||||
width: 100%;
|
||||
padding: 0.75rem;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
font-size: 1rem;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: #3f51b5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #3f51b5;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: #303f9f;
|
||||
}
|
||||
}
|
||||
|
||||
.loading, .error, .empty {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: #f44336;
|
||||
}
|
||||
|
||||
.table-container {
|
||||
overflow-x: auto;
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
|
||||
th, td {
|
||||
padding: 1rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: #f5f5f5;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 12px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
|
||||
&.status-idea {
|
||||
background-color: #e3f2fd;
|
||||
color: #1976d2;
|
||||
}
|
||||
|
||||
&.status-in-development {
|
||||
background-color: #fff3e0;
|
||||
color: #f57c00;
|
||||
}
|
||||
|
||||
&.status-in-service {
|
||||
background-color: #e8f5e9;
|
||||
color: #388e3c;
|
||||
}
|
||||
|
||||
&.status-maintenance {
|
||||
background-color: #fff9c4;
|
||||
color: #f57f17;
|
||||
}
|
||||
|
||||
&.status-decommissioned {
|
||||
background-color: #f5f5f5;
|
||||
color: #616161;
|
||||
}
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
padding: 0.5rem 1rem;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
background-color: #2196f3;
|
||||
color: white;
|
||||
font-size: 0.875rem;
|
||||
|
||||
&:hover {
|
||||
background-color: #1976d2;
|
||||
}
|
||||
|
||||
&.btn-danger {
|
||||
background-color: #f44336;
|
||||
|
||||
&:hover {
|
||||
background-color: #d32f2f;
|
||||
}
|
||||
}
|
||||
|
||||
&.status-select {
|
||||
background-color: #9c27b0;
|
||||
|
||||
&:hover {
|
||||
background-color: #7b1fa2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-top: 2rem;
|
||||
|
||||
button {
|
||||
padding: 0.5rem 1rem;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
background: white;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-application-list',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
template: `
|
||||
<div class="container">
|
||||
<h1>Applications</h1>
|
||||
<p class="info-message">
|
||||
ℹ️ Application management will be implemented in Story 2.
|
||||
</p>
|
||||
<p>Coming soon: Create and manage applications, track lifecycle status, and link to business units.</p>
|
||||
</div>
|
||||
`,
|
||||
styles: [`
|
||||
.container { max-width: 1200px; margin: 2rem auto; padding: 2rem; }
|
||||
.info-message { background: #e3f2fd; padding: 1rem; border-radius: 4px; border-left: 4px solid #2196f3; }
|
||||
`]
|
||||
})
|
||||
export class ApplicationListComponent {}
|
||||
@@ -0,0 +1,71 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import {
|
||||
Application,
|
||||
ApplicationStatus,
|
||||
CreateApplicationRequest,
|
||||
UpdateApplicationRequest
|
||||
} from '../../shared/models/application.model';
|
||||
import { Page } from '../../shared/models/environment.model';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ApplicationService {
|
||||
private readonly API_URL = '/api/applications';
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
getApplications(
|
||||
filters?: {
|
||||
status?: ApplicationStatus;
|
||||
businessUnitId?: string;
|
||||
name?: string;
|
||||
},
|
||||
page: number = 0,
|
||||
size: number = 20,
|
||||
sortBy: string = 'name',
|
||||
sortDirection: string = 'asc'
|
||||
): Observable<Page<Application>> {
|
||||
let params = new HttpParams()
|
||||
.set('page', page.toString())
|
||||
.set('size', size.toString())
|
||||
.set('sortBy', sortBy)
|
||||
.set('sortDirection', sortDirection);
|
||||
|
||||
if (filters?.status) {
|
||||
params = params.set('status', filters.status);
|
||||
}
|
||||
if (filters?.businessUnitId) {
|
||||
params = params.set('businessUnitId', filters.businessUnitId);
|
||||
}
|
||||
if (filters?.name) {
|
||||
params = params.set('name', filters.name);
|
||||
}
|
||||
|
||||
return this.http.get<Page<Application>>(this.API_URL, { params });
|
||||
}
|
||||
|
||||
getApplication(id: string): Observable<Application> {
|
||||
return this.http.get<Application>(`${this.API_URL}/${id}`);
|
||||
}
|
||||
|
||||
createApplication(data: CreateApplicationRequest): Observable<Application> {
|
||||
return this.http.post<Application>(this.API_URL, data);
|
||||
}
|
||||
|
||||
updateApplication(id: string, data: UpdateApplicationRequest): Observable<Application> {
|
||||
return this.http.put<Application>(`${this.API_URL}/${id}`, data);
|
||||
}
|
||||
|
||||
updateStatus(id: string, status: ApplicationStatus): Observable<Application> {
|
||||
return this.http.patch<Application>(`${this.API_URL}/${id}/status`, null, {
|
||||
params: { status }
|
||||
});
|
||||
}
|
||||
|
||||
deleteApplication(id: string): Observable<void> {
|
||||
return this.http.delete<void>(`${this.API_URL}/${id}`);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<div class="dashboard">
|
||||
<header class="dashboard-header">
|
||||
<div class="container">
|
||||
<div class="header-content">
|
||||
<div class="branding">
|
||||
<h1>LDPv2</h1>
|
||||
<p class="subtitle">Lifecycle Data Platform</p>
|
||||
</div>
|
||||
<div class="user-menu">
|
||||
<span class="user-info" *ngIf="currentUser">
|
||||
<span class="user-icon">👤</span>
|
||||
<span class="username">{{ currentUser.username }}</span>
|
||||
<span class="role-badge">{{ currentUser.role }}</span>
|
||||
</span>
|
||||
<button (click)="logout()" class="btn-logout">Logout</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="dashboard-main">
|
||||
<div class="container">
|
||||
<section class="welcome-section">
|
||||
<h2>Welcome back, {{ currentUser?.username }}! 👋</h2>
|
||||
<p>Manage your applications, environments, and business units from one place.</p>
|
||||
</section>
|
||||
|
||||
<section class="stats-section">
|
||||
<div class="stats-grid">
|
||||
<div class="stat-card" *ngFor="let stat of stats">
|
||||
<div class="stat-icon">{{ stat.icon }}</div>
|
||||
<div class="stat-content">
|
||||
<div class="stat-value">{{ stat.value }}</div>
|
||||
<div class="stat-label">{{ stat.label }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="features-section">
|
||||
<h3>Quick Access</h3>
|
||||
<div class="features-grid">
|
||||
<div
|
||||
class="feature-card"
|
||||
*ngFor="let feature of features"
|
||||
(click)="navigate(feature.route)"
|
||||
[style.border-left-color]="feature.color">
|
||||
<div class="feature-icon">{{ feature.icon }}</div>
|
||||
<div class="feature-content">
|
||||
<h4>{{ feature.title }}</h4>
|
||||
<p>{{ feature.description }}</p>
|
||||
</div>
|
||||
<div class="feature-arrow">→</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="getting-started">
|
||||
<h3>Getting Started</h3>
|
||||
<div class="steps-grid">
|
||||
<div class="step-card">
|
||||
<div class="step-number">1</div>
|
||||
<h4>Create Business Units</h4>
|
||||
<p>Organize your applications by business units</p>
|
||||
<button (click)="navigate('/business-units')" class="btn-link">
|
||||
Go to Business Units →
|
||||
</button>
|
||||
</div>
|
||||
<div class="step-card">
|
||||
<div class="step-number">2</div>
|
||||
<h4>Add Applications</h4>
|
||||
<p>Register your applications and track their lifecycle</p>
|
||||
<button (click)="navigate('/applications')" class="btn-link">
|
||||
Go to Applications →
|
||||
</button>
|
||||
</div>
|
||||
<div class="step-card">
|
||||
<div class="step-number">3</div>
|
||||
<h4>Configure Environments</h4>
|
||||
<p>Set up deployment environments</p>
|
||||
<button (click)="navigate('/environments')" class="btn-link">
|
||||
Go to Environments →
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="dashboard-footer">
|
||||
<div class="container">
|
||||
<p>LDPv2 - Lifecycle Data Platform v2 | © 2026</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -0,0 +1,280 @@
|
||||
.dashboard {
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
padding: 1.5rem 0;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
|
||||
.header-content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.branding h1 {
|
||||
color: white;
|
||||
font-size: 2rem;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.branding .subtitle {
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.user-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: white;
|
||||
|
||||
.user-icon { font-size: 1.5rem; }
|
||||
.username { font-weight: 500; }
|
||||
.role-badge {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 12px;
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-logout {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
color: white;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
padding: 0.5rem 1.5rem;
|
||||
border-radius: 20px;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-main {
|
||||
flex: 1;
|
||||
padding: 3rem 0;
|
||||
}
|
||||
|
||||
.welcome-section {
|
||||
text-align: center;
|
||||
color: white;
|
||||
margin-bottom: 3rem;
|
||||
|
||||
h2 {
|
||||
font-size: 2.5rem;
|
||||
margin: 0 0 1rem 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1.2rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: white;
|
||||
padding: 2rem;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
transition: transform 0.3s ease;
|
||||
|
||||
&:hover { transform: translateY(-5px); }
|
||||
|
||||
.stat-icon { font-size: 3rem; }
|
||||
.stat-value {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
}
|
||||
.stat-label {
|
||||
color: #666;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.features-section {
|
||||
margin-bottom: 3rem;
|
||||
|
||||
h3 {
|
||||
color: white;
|
||||
font-size: 1.8rem;
|
||||
margin-bottom: 1.5rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
background: white;
|
||||
padding: 2rem;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
border-left: 4px solid;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.feature-icon { font-size: 3rem; }
|
||||
.feature-content {
|
||||
flex: 1;
|
||||
|
||||
h4 {
|
||||
margin: 0 0 0.5rem 0;
|
||||
color: #333;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
color: #666;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.feature-arrow {
|
||||
font-size: 1.5rem;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
.getting-started {
|
||||
h3 {
|
||||
color: white;
|
||||
font-size: 1.8rem;
|
||||
margin-bottom: 1.5rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.steps-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.step-card {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
padding: 2rem;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
|
||||
.step-number {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 700;
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
color: #333;
|
||||
margin: 0 0 0.5rem 0;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #666;
|
||||
margin: 0 0 1rem 0;
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #667eea;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
transition: color 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
color: #764ba2;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-footer {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
padding: 1.5rem 0;
|
||||
text-align: center;
|
||||
color: white;
|
||||
margin-top: auto;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.dashboard-header .header-content {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.welcome-section h2 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.stats-grid,
|
||||
.features-grid,
|
||||
.steps-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Router } from '@angular/router';
|
||||
import { AuthService } from '../../core/auth/auth.service';
|
||||
import { User } from '../../shared/models/user.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
templateUrl: './dashboard.component.html',
|
||||
styleUrls: ['./dashboard.component.scss']
|
||||
})
|
||||
export class DashboardComponent implements OnInit {
|
||||
currentUser: User | null = null;
|
||||
|
||||
features = [
|
||||
{
|
||||
title: 'Business Units',
|
||||
description: 'Manage organizational business units',
|
||||
icon: '🏢',
|
||||
route: '/business-units',
|
||||
color: '#3f51b5'
|
||||
},
|
||||
{
|
||||
title: 'Applications',
|
||||
description: 'Manage applications and their lifecycle',
|
||||
icon: '📱',
|
||||
route: '/applications',
|
||||
color: '#009688'
|
||||
},
|
||||
{
|
||||
title: 'Environments',
|
||||
description: 'Manage deployment environments',
|
||||
icon: '🌍',
|
||||
route: '/environments',
|
||||
color: '#ff9800'
|
||||
}
|
||||
];
|
||||
|
||||
stats = [
|
||||
{ label: 'Business Units', value: '4', icon: '🏢' },
|
||||
{ label: 'Applications', value: '7', icon: '📱' },
|
||||
{ label: 'Environments', value: '4', icon: '🌍' }
|
||||
];
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
private authService: AuthService
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.currentUser = this.authService.getCurrentUser();
|
||||
}
|
||||
|
||||
navigate(route: string): void {
|
||||
this.router.navigate([route]);
|
||||
}
|
||||
|
||||
logout(): void {
|
||||
this.authService.logout();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
export enum ApplicationStatus {
|
||||
IDEA = 'IDEA',
|
||||
IN_DEVELOPMENT = 'IN_DEVELOPMENT',
|
||||
IN_SERVICE = 'IN_SERVICE',
|
||||
MAINTENANCE = 'MAINTENANCE',
|
||||
DECOMMISSIONED = 'DECOMMISSIONED'
|
||||
}
|
||||
|
||||
export interface Application {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
status: ApplicationStatus;
|
||||
businessUnit: { id: string; name: string };
|
||||
endOfLifeDate?: Date;
|
||||
endOfSupportDate?: Date;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface CreateApplicationRequest {
|
||||
name: string;
|
||||
description?: string;
|
||||
status: ApplicationStatus;
|
||||
businessUnitId: string;
|
||||
endOfLifeDate?: Date;
|
||||
endOfSupportDate?: Date;
|
||||
}
|
||||
|
||||
export interface UpdateApplicationRequest {
|
||||
name?: string;
|
||||
description?: string;
|
||||
status?: ApplicationStatus;
|
||||
businessUnitId?: string;
|
||||
endOfLifeDate?: Date;
|
||||
endOfSupportDate?: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user