asset workspace progress
This commit is contained in:
+20
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user