asset workspace progress

This commit is contained in:
2026-03-24 13:42:45 +00:00
parent 2d923455f5
commit bb2c33a952
71 changed files with 309 additions and 156 deletions
@@ -0,0 +1,20 @@
package p.packer.dtos;
import java.nio.file.Path;
import java.util.Objects;
public record PackerAssetIdentityDTO(
Integer assetId,
String assetUuid,
String assetName,
Path assetRoot) {
public PackerAssetIdentityDTO {
assetUuid = assetUuid == null ? null : assetUuid.trim();
assetName = Objects.requireNonNull(assetName, "assetName").trim();
assetRoot = Objects.requireNonNull(assetRoot, "assetRoot").toAbsolutePath().normalize();
if (assetName.isBlank()) {
throw new IllegalArgumentException("assetName must not be blank");
}
}
}